/* ============================================================
   DS Studio by Daniela — site styles
   Palette taken from the built work: concrete porcelain, walnut,
   plaster white, near-black.
   ============================================================ */

:root {
  /* Palette taken directly from the logo artwork:
     black · #776F67 · #B0A69A · #C5B6AA · #CEC8C4 · #E8E2D9        */
  --ink:        #1C1A17;   /* logo black, warmed a touch            */
  --ink-soft:   #454039;
  --muted:      #736B61;
  --plaster:    #F7F4F0;   /* warm paper, sits under the greiges    */
  --concrete:   #E8E2D9;   /* lightest logo tone                    */
  --concrete-2: #EFEBE4;
  --walnut:     #776F67;   /* darkest logo taupe — the accent       */
  --greige:     #8A7F72;   /* labels on light                       */
  --greige-lt:  #B0A69A;   /* labels on dark                        */
  --line:       #DED7CE;

  --display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans:    'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- type ---------- */
.eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--greige);
  margin: 0 0 1.1rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
p  { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-soft); }
.small { font-size: .85rem; color: var(--muted); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,244,240,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .name {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  line-height: 1.25; max-width: 8rem;
}
@media (max-width: 480px) { .brand .name { display: none; } .brand img { height: 26px; } }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2rem); }
.nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--walnut); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.lang {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.lang button {
  font: inherit; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .34rem .62rem; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--plaster); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 4px 0; }

@media (max-width: 780px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--plaster);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: .5rem var(--pad) 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - 69px)); visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); visibility: visible; }
  .nav a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--plaster); padding: .7rem 1.1rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(540px, 84vh, 820px); display: flex; align-items: flex-end; }
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(28,26,23,.90) 0%, rgba(28,26,23,.58) 38%, rgba(28,26,23,.30) 68%, rgba(28,26,23,.36) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vw, 5rem); width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: #D6CCC0; }
.hero p { color: rgba(255,255,255,.86); max-width: 46ch; margin-top: 1.4rem; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 18ch; }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }

/* ---------- project cards ---------- */
.projects { display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.pcard { text-decoration: none; display: block; }
.pcard .frame { overflow: hidden; background: var(--concrete); }
.pcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.pcard:hover img, .pcard:focus-visible img { transform: scale(1.035); }
.pcard .meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: .9rem; }
.pcard h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.pcard .tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--greige); white-space: nowrap; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.pcard.wide { grid-column: 1 / -1; }
.pcard.wide img { aspect-ratio: 21/9; }
@media (max-width: 780px) { .pcard.wide img { aspect-ratio: 4/3; } }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- dark band ---------- */
.band { background: var(--ink); color: var(--plaster); }
.band h2, .band h3 { color: var(--plaster); }
.band p { color: rgba(232,226,217,.76); }
.band .eyebrow { color: var(--greige-lt); }
.band-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 0; }
.band-split img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.band-split .txt { padding: clamp(2.2rem, 5vw, 4.5rem); }
@media (max-width: 900px) { .band-split { grid-template-columns: 1fr; } }

.trades {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: 0; margin: 1.6rem 0 0; list-style: none;
}
.trades li {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--greige-lt); border: 1px solid rgba(176,166,154,.45); padding: .34rem .7rem; border-radius: 999px;
}

/* ---------- before / after slider (signature) ---------- */
.ba {
  position: relative; overflow: hidden; background: var(--concrete);
  aspect-ratio: 4/3; touch-action: pan-y; cursor: ew-resize; user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--plaster); z-index: 3; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(22,21,15,.25);
}
.ba .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--plaster); box-shadow: 0 2px 14px rgba(22,21,15,.3);
}
.ba .handle::before {
  content: "\2039\00a0\203a"; position: absolute; top: 50%; left: 50%; z-index: 4;
  transform: translate(-50%, -52%); font-size: 1.1rem; color: var(--ink); letter-spacing: .1em;
}
.ba .lbl {
  position: absolute; bottom: .9rem; z-index: 4; font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: #fff; background: rgba(22,21,15,.62);
  padding: .3rem .6rem; backdrop-filter: blur(4px);
}
.ba .lbl.l { left: .9rem; } .ba .lbl.r { right: .9rem; }

/* ---------- project detail ---------- */
.project { padding-top: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 84px; }
.project + .project { border-top: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin: 1.4rem 0 2.2rem; padding: 0; list-style: none; }
.facts li { min-width: 8rem; }
.facts dt, .facts .k {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--greige); margin-bottom: .3rem;
}
.facts .v { font-size: .95rem; color: var(--ink); }
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem; margin-top: .7rem; }
.gal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--concrete); }
.seq { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 780px) { .seq { grid-template-columns: 1fr; } }
.seq figure { margin: 0; }
.seq img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.seq figcaption {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--greige); padding-top: .55rem;
}

/* ---------- process ---------- */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stage { background: #FCFAF7; padding: 1.4rem 1.2rem 1.6rem; }
.stage.on { background: #635B53; }
.stage.on h3, .stage.on .dur { color: var(--concrete); }
.stage.on p { color: rgba(232,226,217,.72); }
.stage .num { font-size: .62rem; letter-spacing: .18em; color: var(--greige); }
.stage.on .num { color: var(--concrete); }
.stage h3 { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin: .7rem 0 .25rem; letter-spacing: 0; }
.stage .dur { font-size: .78rem; color: var(--greige); margin-bottom: .7rem; }
.stage p { font-size: .82rem; margin: 0; line-height: 1.5; }

/* ---------- materials strip ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
blockquote {
  margin: 0 0 1.8rem; padding: 0 0 0 1.3rem; border-left: 2px solid var(--walnut);
  font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; color: var(--ink);
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .4rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: .72rem .85rem; border-radius: 2px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--walnut); outline-offset: 1px; border-color: var(--walnut); }
textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.6rem;
  font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--plaster); border: 1px solid var(--ink);
  padding: .95rem 1.7rem; cursor: pointer; text-decoration: none; border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--walnut); border-color: var(--walnut); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--plaster); }
.band .btn { background: var(--plaster); color: var(--ink); border-color: var(--plaster); }
.band .btn:hover { background: var(--walnut); color: var(--plaster); border-color: var(--walnut); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .who { font-weight: 600; }
.contact-list .role { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--greige); margin: .2rem 0 .5rem; }
.contact-list a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-bottom-color: var(--walnut); color: var(--walnut); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(232,226,217,.68); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-foot a { color: rgba(232,226,217,.82); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .mark img { height: 132px; width: auto; display: block; margin-bottom: .4rem; }
.foot-links { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; }
.legal { border-top: 1px solid rgba(232,226,217,.16); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .72rem; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

:focus-visible { outline: 2px solid var(--walnut); outline-offset: 2px; }
