/* Shivani Nandini Designs — site styles
   Direction: "The place carries it" · Newsreader · bone / sage / chocolate
   House rules: no gradients (except the text scrim on photos), no shadows at rest,
   no hairlines, no eyebrow labels, square corners. */

:root {
  --bg: #e7e2d8;           /* lime plaster */
  --surface: #dcd5c8;
  --ink: #2a1d17;          /* chocolate */
  --muted: #5e4f45;
  --accent: #4b5e43;       /* deep sage, the action */
  --accent-hover: #3c4c35;
  --accent-ink: #ffffff;

  /* material fields, light to dark: plaster, sage, teak, oxblood, nero */
  --plaster: #e7e2d8;  --plaster-ink: #2a1d17;
  --sage: #5d6b50;     --sage-ink: #ffffff;
  --teak: #6a4428;     --teak-ink: #f4ede3;
  --oxblood: #5e211e;  --oxblood-ink: #f6ece6;
  --nero: #1c1816;     --nero-ink: #efe9e1;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-sub: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  --step-display: clamp(3.4rem, 1rem + 8.4vw, 9.5rem);

  --margin: clamp(16px, 2.6vw, 40px);
  --gap: clamp(16px, 1.6vw, 24px);
  --section: clamp(72px, 8vw, 124px);
  --frame: 10px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t-fast: 160ms;
  --t-med: 420ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: var(--step-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }

h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; }
.display { font-size: var(--step-display); font-weight: 300; letter-spacing: -0.05em; line-height: 0.9; }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.5; }
h3 { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
.soft { color: var(--muted); }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fields */
.f-plaster { background: var(--plaster); color: var(--plaster-ink); }
.f-sage { background: var(--sage); color: var(--sage-ink); --muted: rgba(255,255,255,0.86); }
.f-teak { background: var(--teak); color: var(--teak-ink); --muted: rgba(244,237,227,0.82); }
.f-oxblood { background: var(--oxblood); color: var(--oxblood-ink); --muted: rgba(246,236,230,0.82); }
.f-nero { background: var(--nero); color: var(--nero-ink); --muted: rgba(239,233,225,0.78); }
.f-surface { background: var(--surface); }

/* buttons: square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-small); font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn.light { background: var(--plaster); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ink:hover { background: #000; }
.link-arrow { display: inline-flex; gap: 0.4em; align-items: baseline; text-decoration: none; font-weight: 500; }
.link-arrow span { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- top bar (inner pages + after the home hero) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--margin);
  background: var(--bar-bg, var(--bg)); color: var(--bar-ink, var(--ink));
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform var(--t-med) var(--ease);
}
.bar[data-hidden="true"] { transform: translateY(-110%); }
.bar .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.bar .mark svg { width: 34px; height: 34px; }
.bar .mark b { font-weight: 400; font-size: var(--step-body); letter-spacing: -0.01em; white-space: nowrap; }
.bar nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.bar nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; }
.bar nav a[aria-current="page"], .bar nav a:hover { text-decoration: underline; }
.bar .btn { min-height: 44px; padding: 0 18px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; font-size: var(--step-small); font-weight: 500; }
@media (max-width: 960px) {
  .bar nav { display: none; }
  .bar .btn { display: none; }
  .menu-btn { display: block; }
  .bar.open nav { display: block; position: fixed; inset: 62px 0 auto 0; background: var(--bar-bg, var(--bg)); padding: 12px var(--margin) 28px; }
  .bar.open nav ul { flex-direction: column; gap: 4px; }
  .bar.open nav a { font-size: var(--step-lead); display: block; padding: 8px 0; }
}
main.inner { padding-top: 72px; }

/* ---------- HOME HERO: photograph + material swatch column ---------- */
.hero { height: 100svh; min-height: 620px; padding: var(--frame); display: grid; grid-template-columns: 5fr 1fr; gap: 0; background: var(--bg); }
.hero-panel { position: relative; overflow: hidden; height: 100%; }
.hero-panel picture, .hero-panel img { width: 100%; height: 100%; object-fit: cover; }
.hero-panel img { object-position: 50% 62%; transform-origin: 50% 60%; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-panel::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 58%; /* taste-skill-ignore: neutral scrim under the headline */ background: linear-gradient(rgba(20,14,10,0.62), rgba(20,14,10,0)); pointer-events: none; }
.hero-top { position: absolute; z-index: 2; left: 28px; right: 28px; top: 26px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.hero-top .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hero-top .mark svg { width: 46px; height: 46px; }
.hero-top .mark b { font-weight: 400; font-size: var(--step-body); letter-spacing: -0.01em; }
@media (max-width: 760px) { .hero-top a.ig { display: none; } }
.hero-top a.ig { font-size: var(--step-small); font-weight: 500; text-decoration: none; }
.hero-top a.ig:hover { text-decoration: underline; }
.hero h1 { position: absolute; z-index: 2; left: 28px; right: 28px; top: 19%; color: #fff; max-width: 11ch; }
.hero-foot { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: #fff; }
.hero-foot p { max-width: 40ch; margin: 0; font-size: var(--step-body); line-height: 1.45; padding: 14px 18px; background: rgba(20,14,10,0.55); }
.swatches { display: grid; grid-template-rows: repeat(5, 1fr); height: 100%; }
.swatches a { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; text-decoration: none; font-size: var(--step-small); font-weight: 500; transition: padding var(--t-fast) var(--ease); }
.swatches a span.m { font-size: var(--step-small); font-weight: 400; color: inherit; opacity: 0.86; }
.swatches a:hover { padding-left: 28px; text-decoration: underline; }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; grid-template-columns: 1fr; padding: 8px; }
  .hero-panel { height: 72svh; min-height: 480px; }
  .hero h1 { top: 15%; left: 20px; right: 20px; }
  .hero-top { left: 20px; right: 20px; top: 18px; }
  .hero-top .mark b { display: none; }
  .hero-foot { left: 20px; right: 20px; bottom: 20px; }
  .hero-foot p { display: none; }
  .hero-foot .btn { width: 100%; }
  .swatches { grid-template-rows: none; grid-template-columns: 1fr; }
  .swatches a { flex-direction: row; align-items: center; min-height: 54px; padding: 0 18px; font-size: 0.95rem; }
}
.hero-intro { display: none; }
@media (max-width: 760px) { .hero-intro { display: block; padding: 40px var(--margin) 0; } }

/* ---------- section scaffolding ---------- */
.sec { padding-block: var(--section); }
.sec-head { margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head p { margin-top: 24px; }

/* ---------- WORK: one slide, two neighbours ---------- */
.project { margin-bottom: clamp(96px, 12vw, 200px); }
.project:last-child { margin-bottom: 0; }
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: calc((100vw - min(73vw, 1046px)) / 2); scroll-padding-inline: calc((100vw - min(73vw, 1046px)) / 2); }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 min(73vw, 1046px); margin: 0; scroll-snap-align: center; aspect-ratio: 1046 / 600; overflow: hidden; background: var(--surface); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.strip a:hover img { transform: scale(1.025); }
.strip-ctrl { display: flex; gap: 8px; }
.strip-ctrl button { width: 44px; height: 44px; border: 0; background: var(--surface); cursor: pointer; font-size: 1.1rem; transition: background-color var(--t-fast) var(--ease); }
.strip-ctrl button:hover { background: var(--ink); color: var(--bg); }
.facts-row { margin-top: 26px; align-items: start; row-gap: 10px; }
.facts-row .n { grid-column: 1 / span 3; }
.facts-row .n h3 { font-size: var(--step-lead); }
.facts-row .n .link-arrow { margin-top: 14px; font-size: var(--step-small); }
.facts-row .c4 { grid-column: 4 / span 3; }
.facts-row .c7 { grid-column: 7 / span 3; }
.facts-row .c10 { grid-column: 10 / span 3; display: flex; justify-content: space-between; gap: 12px; }
.facts-row .lbl { display: block; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 760px) {
  .strip { gap: 10px; padding-inline: 11vw; scroll-padding-inline: 11vw; }
  .strip figure { flex-basis: 78vw; aspect-ratio: 4 / 5; }
  .facts-row .n { grid-column: 1 / span 12; }
  .facts-row .c4, .facts-row .c7 { grid-column: span 6; }
  .facts-row .c10 { grid-column: 1 / span 12; }
  .strip-ctrl { display: none; }
}

/* ---------- MATERIALS (the live thing) ---------- */
.materials { align-items: center; row-gap: 40px; }
.mat-view { grid-column: 1 / span 7; margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.mat-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms var(--ease), transform 900ms var(--ease); }
.mat-view img[hidden] { display: block; opacity: 0; transform: scale(1.04); pointer-events: none; }
.mat-side { grid-column: 9 / span 4; }
.mat-side h2 { margin-bottom: 24px; }
.mat-list { list-style: none; margin: 32px 0 28px; padding: 0; display: grid; gap: 6px; }
.mat-list button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: var(--step-lead); letter-spacing: -0.01em; transition: background-color var(--t-fast) var(--ease); }
.mat-list button i { flex: 0 0 34px; height: 34px; display: block; }
.mat-list button:hover { background: rgba(255,255,255,0.14); }
.mat-list button[aria-pressed="true"] { background: rgba(255,255,255,0.22); }
.mat-note { min-height: 4.8em; }
@media (max-width: 860px) {
  .mat-view { grid-column: 1 / -1; aspect-ratio: 4 / 4.4; }
  .mat-side { grid-column: 1 / -1; }
  .mat-list button { font-size: 1.15rem; padding: 10px; }
}

/* ---------- SHOWCASE (atelier): close-up with column card ---------- */
.showcase-frame { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.showcase-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-frame .grid { position: relative; height: 100%; padding-inline: var(--margin); align-items: center; }
.col-card { grid-column: var(--col, 2) / span 3; background: var(--ink); color: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 52svh; }
.col-card h2, .col-card h3 { font-size: var(--step-sub); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.col-card p { margin: 0; color: rgba(231,226,216,0.86); font-size: var(--step-small); }
.col-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-top: auto; }
.col-card .btn { width: 100%; }
@media (max-width: 860px) {
  .showcase-frame { height: auto; min-height: 0; }
  .showcase-frame > img { position: relative; height: 70svh; }
  .showcase-frame .grid { display: block; padding: 0; }
  .col-card { min-height: 0; padding: 24px var(--margin) 28px; }
  .col-card img { display: none; }
}

/* ---------- FEATURES: rows with margin photographs ---------- */
.rows-head { min-height: 38svh; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-content: center; }
.rows-head h2 { grid-column: 5 / span 7; }
.rows-head p { grid-column: 5 / span 6; margin-top: 28px; }
.feat { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; margin-top: clamp(56px, 6vw, 96px); }
.feat .t { grid-column: 5 / span 4; }
.feat .t h3 { font-size: var(--step-sub); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 18px; }
.feat .t p { max-width: 36ch; }
.feat figure { grid-column: 10 / span 3; margin: 0; justify-self: end; width: var(--w, 100%); }
.feat figure img { width: 100%; aspect-ratio: var(--r, 4/5); object-fit: cover; }
@media (max-width: 860px) {
  .rows-head h2, .rows-head p { grid-column: 1 / -1; }
  .rows-head { min-height: 0; padding-bottom: 8px; }
  .feat .t, .feat figure { grid-column: 1 / -1; }
  .feat figure { margin-top: 20px; justify-self: var(--js, start); width: var(--mw, 100%); }
}

/* ---------- ABOUT: wide photo, colour tile, facts ---------- */
.about .lead { grid-column: 1 / span 7; margin-top: 24px; }
.about h2 { grid-column: 1 / span 9; }
.mosaic { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 16px; row-gap: 16px; align-items: start; }
.mosaic .ph { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mosaic .ph img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .ph .over { position: absolute; top: 0; right: 0; width: min(360px, 46%); background: var(--bg); color: var(--ink); padding: 22px; font-size: var(--step-body); }
.mosaic .ph .over p { margin: 0; }
.mosaic .side { grid-column: 9 / span 4; }
.map-tile { background: var(--oxblood); color: var(--oxblood-ink); aspect-ratio: 4 / 3.1; position: relative; }
.map-tile svg { width: 100%; height: 100%; display: block; }
.map-tile svg text { font-family: "Newsreader", Georgia, serif; font-size: 14px; fill: currentColor; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 22px; }
.kv div b { display: block; font-weight: 300; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1; }
.kv div span { font-size: var(--step-small); color: var(--muted); }
.founders { margin-top: clamp(64px, 7vw, 112px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 48px; }
.founder { grid-column: span 6; }
.founder h3 { font-size: var(--step-sub); font-weight: 300; letter-spacing: -0.035em; }
.founder .role { margin: 10px 0 18px; font-weight: 500; }
@media (max-width: 860px) {
  .about h2, .about .lead { grid-column: 1 / -1; }
  .mosaic .ph, .mosaic .side { grid-column: 1 / -1; }
  .mosaic .ph { aspect-ratio: 4 / 3; overflow: visible; }
  .mosaic .ph .over { position: static; width: auto; padding: 18px 0 0; background: none; color: inherit; }
  .founder { grid-column: 1 / -1; }
}

/* ---------- HOW IT WORKS: photographs down a diagonal ---------- */
.diag { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); position: relative; }
.diag .heading { grid-column: 7 / span 6; grid-row: 1; align-self: start; }
.diag .s1 { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.diag .s1t { grid-column: 5 / span 3; grid-row: 2; align-self: start; margin-top: 40px; }
.diag .s2 { grid-column: 6 / span 3; grid-row: 3; margin-top: 60px; }
.diag .s2t { grid-column: 9 / span 4; grid-row: 3; margin-top: 60px; align-self: start; }
.diag .s3 { grid-column: 7 / span 6; grid-row: 4; margin-top: 140px; }
.diag .s3t { grid-column: 2 / span 4; grid-row: 4; margin-top: 140px; align-self: start; }
.diag figure { margin: 0; }
.diag figure img { width: 100%; object-fit: cover; }
.diag .s1 img { aspect-ratio: 3 / 4; }
.diag .s2 img { aspect-ratio: 1 / 1; }
.diag .s3 img { aspect-ratio: 16 / 10; }
.diag p b { font-weight: 500; }
.diag .heading p { margin-top: 24px; }
@media (max-width: 860px) {
  .diag { display: block; }
  .diag .heading { margin-bottom: 40px; }
  .diag figure { margin-top: 48px; }
  .diag .s2 { width: 62%; margin-left: auto; }
  .diag .s3 { width: 78%; }
  .diag .s1t, .diag .s2t, .diag .s3t { margin-top: 18px; }
}

/* ---------- CONTACT: visit card on a photograph ---------- */
.visit { position: relative; min-height: 120svh; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.visit-card { position: sticky; top: 92px; margin: 60px var(--margin) 60px auto; width: 400px; max-width: calc(100% - 2 * var(--margin)); background: var(--bg); color: var(--ink); padding: 32px 32px 0; display: flex; flex-direction: column; }
.visit-card h2 { font-size: var(--step-sub); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 18px; }
.visit-card address { font-style: normal; margin-bottom: 18px; }
.visit-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 24px; }
.visit-card dt { color: var(--muted); }
.visit-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.visit-card .btn { margin-inline: -32px; width: calc(100% + 64px); min-height: 56px; }
@media (max-width: 760px) {
  .visit { min-height: 0; display: flex; flex-direction: column; }
  .visit > img { position: relative; height: 70svh; }
  .visit-card { position: relative; top: auto; margin: -80px var(--margin) 0; width: auto; }
}

/* ---------- FOOTER: contact as the headline ---------- */
.foot { min-height: 72svh; display: flex; flex-direction: column; padding: 40px var(--margin) 28px; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); font-size: var(--step-small); }
.foot-top .notes { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-top .notes p { margin: 0; }
.foot-top .top { grid-column: 11 / span 2; justify-self: end; }
.foot-top .mark { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-bottom: 14px; }
.foot-top .mark svg { width: 30px; height: 30px; }
.foot-big { margin-top: auto; padding-top: 56px; }
.foot-big .lbl { display: block; margin-bottom: 8px; font-size: var(--step-lead); color: var(--muted); }
.foot-big a { display: inline-block; font-size: clamp(2.6rem, 0.4rem + 9.6vw, 10.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 0.95; text-decoration: none; white-space: nowrap; }
.foot-big a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.foot-meta { margin-top: 40px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; font-size: var(--step-small); }
.foot-meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { text-decoration: underline; }
.foot-meta .r { text-align: right; }
@media (max-width: 760px) {
  .foot { min-height: 0; }
  .foot-top .notes { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 12px; }
  .foot-top .top { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
  .foot-big a { font-size: 12vw; }
  .foot-meta { grid-template-columns: 1fr; }
  .foot-meta .r { text-align: left; }
}

/* ---------- INNER PAGES ---------- */
.page-head { padding: clamp(56px, 8vw, 120px) var(--margin) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: var(--step-display); font-weight: 300; letter-spacing: -0.05em; line-height: 0.9; max-width: 14ch; }
.page-head .lead { margin-top: 28px; max-width: 46ch; }
.crumbs { font-size: var(--step-small); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.full { width: 100%; height: 88svh; min-height: 520px; object-fit: cover; }

/* project index: alternating big rows */
.p-row { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; padding-inline: var(--margin); margin-bottom: clamp(96px, 11vw, 180px); text-decoration: none; }
.p-row figure { margin: 0; grid-column: 1 / span 8; overflow: hidden; }
.p-row figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 900ms var(--ease); }
.p-row:hover figure img { transform: scale(1.025); }
.p-row .txt { grid-column: 9 / span 4; }
.p-row:nth-child(even) figure { grid-column: 5 / span 8; grid-row: 1; }
.p-row:nth-child(even) .txt { grid-column: 1 / span 4; grid-row: 1; }
.p-row h2 { font-size: var(--step-sub); }
.p-row .meta { margin: 14px 0 16px; color: var(--muted); }
.p-row:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
@media (max-width: 860px) {
  .p-row figure, .p-row .txt, .p-row:nth-child(even) figure, .p-row:nth-child(even) .txt { grid-column: 1 / -1; grid-row: auto; }
  .p-row .txt { margin-top: 20px; }
  .p-row figure img { aspect-ratio: 4 / 5; }
}

/* project detail */
.pd-intro { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 40px; padding: var(--section) var(--margin) 0; }
.pd-intro .story { grid-column: 1 / span 7; }
.pd-intro .story p { max-width: 58ch; }
.pd-intro dl { grid-column: 9 / span 4; margin: 0; display: grid; gap: 18px; align-content: start; }
.pd-intro dt { font-size: var(--step-small); color: var(--muted); }
.pd-intro dd { margin: 2px 0 0; }
.gal { padding: var(--section) var(--margin) 0; }
.gal h2 { margin-bottom: clamp(36px, 4vw, 60px); }
.gal-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gap); align-items: start; }
.gal-grid figure { margin: 0; overflow: hidden; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 900ms var(--ease); }
.gal-grid figure:hover img { transform: scale(1.02); }
.gal-grid figure:nth-child(6n+1) { grid-column: 1 / span 7; aspect-ratio: 4 / 5; }
.gal-grid figure:nth-child(6n+2) { grid-column: 8 / span 5; aspect-ratio: 4 / 5; margin-top: 18vh; }
.gal-grid figure:nth-child(6n+3) { grid-column: 2 / span 5; aspect-ratio: 1 / 1; }
.gal-grid figure:nth-child(6n+4) { grid-column: 7 / span 6; aspect-ratio: 3 / 4; margin-top: 10vh; }
.gal-grid figure:nth-child(6n+5) { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
.gal-grid figure:nth-child(6n) { grid-column: 5 / span 8; aspect-ratio: 16 / 11; margin-top: 6vh; }
.gal-grid figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 8px; }
.gal-grid.small figure { aspect-ratio: 3 / 4 !important; margin-top: 0 !important; grid-column: span 3 !important; }
.split .gal-grid.small img { aspect-ratio: 3 / 4; }
@media (max-width: 760px) {
  .gal-grid figure, .gal-grid figure:nth-child(n) { grid-column: 1 / -1; margin-top: 0; aspect-ratio: 4 / 5; }
  .gal-grid figure:nth-child(3n+2) { grid-column: 3 / -1; }
  .gal-grid.small figure { grid-column: span 6 !important; }
  .pd-intro .story, .pd-intro dl { grid-column: 1 / -1; }
}

/* before / after compare */
.compare { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; bottom: 16px; padding: 6px 12px; background: rgba(20,14,10,0.7); color: #fff; font-size: var(--step-small); }
.compare .tag.b { left: 16px; } .compare .tag.a { right: 16px; }
@media (min-width: 900px) { .compare { aspect-ratio: 16 / 11; } }

.next { display: block; text-decoration: none; padding: var(--section) var(--margin); margin-top: var(--section); }
.next .small { display: block; margin-bottom: 12px; }
.next b { font-weight: 300; font-size: var(--step-head); letter-spacing: -0.05em; line-height: 0.9; display: block; }
.next:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }

/* atelier pieces: staggered editorial columns */
.pieces { padding: 0 var(--margin); columns: 3 320px; column-gap: var(--gap); }
.piece { break-inside: avoid; margin: 0 0 clamp(48px, 5vw, 80px); }
.piece:nth-child(3n+2) { padding-top: 0; }
.piece img { width: 100%; object-fit: cover; aspect-ratio: 3 / 4; background: var(--surface); }
.piece:nth-child(4n+1) img { aspect-ratio: 4 / 5; }
.piece:nth-child(4n+3) img { aspect-ratio: 2 / 3; }
.piece h3 { margin-top: 18px; font-size: var(--step-lead); font-weight: 300; letter-spacing: -0.02em; }
.piece .kind { color: var(--muted); font-size: var(--step-small); margin: 6px 0 10px; }
.piece p { font-size: var(--step-body); }
.piece .link-arrow { font-size: var(--step-small); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--margin) clamp(40px, 5vw, 64px); }
.filters button { border: 0; background: var(--surface); padding: 10px 18px; cursor: pointer; font-size: var(--step-small); font-weight: 500; transition: background-color var(--t-fast) var(--ease); }
.filters button:hover { background: #cfc6b6; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* text page blocks */
.split { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 40px; padding: var(--section) var(--margin) 0; align-items: start; }
.split .l { grid-column: 1 / span 5; }
.split .r { grid-column: 7 / span 6; }
.split .l figure, .split .r figure { margin: 0; }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split h2 { margin-bottom: 28px; }
@media (max-width: 860px) { .split .l, .split .r { grid-column: 1 / -1; } }

.steps { list-style: none; margin: 0; padding: 0 var(--margin); }
.steps li { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; padding-block: clamp(48px, 6vw, 96px); }
.steps li:nth-child(odd) { background: transparent; }
.steps li figure { margin: 0; grid-column: 1 / span 5; }
.steps li figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps li .t { grid-column: 7 / span 5; }
.steps li:nth-child(even) figure { grid-column: 8 / span 5; grid-row: 1; }
.steps li:nth-child(even) .t { grid-column: 1 / span 5; grid-row: 1; }
.steps h2 { font-size: var(--step-sub); margin-bottom: 10px; }
.steps .when { color: var(--muted); margin-bottom: 20px; display: block; }
@media (max-width: 860px) { .steps li figure, .steps li .t, .steps li:nth-child(even) figure, .steps li:nth-child(even) .t { grid-column: 1 / -1; grid-row: auto; } .steps li .t { margin-top: 20px; } }

.faq { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); }
.faq h2 { grid-column: 1 / span 4; }
.faq .qs { grid-column: 6 / span 7; }
.faq details { background: var(--surface); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-size: var(--step-lead); letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; }
@media (max-width: 860px) { .faq h2, .faq .qs { grid-column: 1 / -1; } .faq h2 { margin-bottom: 32px; } }

/* contact form */
.form-wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 48px; padding: 0 var(--margin); }
.form-wrap form { grid-column: 1 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-wrap aside { grid-column: 9 / span 4; }
.fld { display: grid; gap: 8px; }
.fld.wide { grid-column: 1 / -1; }
.fld label, .fld legend { font-size: var(--step-body); font-weight: 500; }
.fld input, .fld select, .fld textarea { font: inherit; font-size: var(--step-body); padding: 14px 14px; border: 1px solid #b9ad9b; border-radius: 0; background: #f3efe8; color: var(--ink); width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.fld fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips label, label.chips { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 10px 16px; background: var(--surface); font-size: var(--step-body); font-weight: 500; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .small { flex-basis: 100%; }
@media (max-width: 860px) { .form-wrap form, .form-wrap aside { grid-column: 1 / -1; } .form-wrap form { grid-template-columns: 1fr; } }

.map-embed { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.4); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(15,11,9,0.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; top: 14px; right: 14px; background: var(--bg); color: var(--ink); border: 0; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; }

/* floating WhatsApp button */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; background: var(--accent); color: #fff; text-decoration: none; font-size: var(--step-small); font-weight: 500; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.wa:hover { background: var(--accent-hover); transform: translateY(-2px); }
.wa svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .wa { width: 52px; padding: 0; justify-content: center; right: 12px; bottom: 12px; } .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- motion: entrances ---------- */
.js .rise { transform: translateY(28px); transition: transform 620ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .hero-panel img { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
