/* =========================================================
   Datum Interiors — styles
   Palette: white, ink, one grey for secondary text, one hairline.
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #5e5e5e;     /* secondary text, captions */
  --line: #e4e4e4;      /* hairlines */
  --surface: #f5f5f5;   /* image placeholders */

  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(88px, 12vw, 168px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type primitives ---------- */
.eyebrow,
.label {
  font: 500 12px/1.4 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 2px;
  font: 500 15px/1 var(--body); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #2b2b2b; border-color: #2b2b2b; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
/* Blur lives on a pseudo-element so it doesn't become the containing block for the fixed mobile nav */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 30px; height: 19px; }
.logo__word { font: 500 19px/1 var(--display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.logo__sub { font: 400 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { font-size: 15px; text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__call-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.header__phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 120px); }
.hero .eyebrow { margin-bottom: clamp(20px, 3vw, 32px); }

.hero__title {
  font: 500 clamp(2.75rem, 8.4vw, 8.75rem)/.96 var(--display);
  letter-spacing: -.045em;
  margin-left: -.05em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }

.hero__row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  margin-top: clamp(32px, 4.5vw, 64px);
  align-items: end;
}
.hero__lede { grid-column: 1 / span 6; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); }
.hero__ctas { grid-column: 8 / -1; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* Signature: the ceiling section line */
.hero__media { margin-top: clamp(56px, 7vw, 104px); }
.section-line {
  display: block; width: 100%; height: clamp(48px, 6vw, 84px);
  overflow: visible;
}
.section-line path {
  fill: none; stroke: var(--ink); stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.section-line .dims path { stroke: var(--ink-2); stroke-width: 1; }
.section-labels {
  position: relative; height: 26px;
  font: 400 11px/26px var(--mono); letter-spacing: .04em; color: var(--ink-2);
}
.section-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

.hero__img { overflow: hidden; background: var(--surface); aspect-ratio: 21 / 9; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.caption { padding-top: 14px; font: 400 13px/1.5 var(--body); color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.section > .wrap { position: relative; }
.section > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line);
}
.section .label { padding-top: 24px; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.grid-12 > .label { grid-column: 1 / span 3; }

/* About */
.about__body { grid-column: 4 / -1; padding-top: 20px; }
.statement {
  font: 400 clamp(1.5rem, 2.9vw, 2.6rem)/1.22 var(--display);
  letter-spacing: -.025em;
  max-width: 22em;
}
.principles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: clamp(56px, 7vw, 96px);
}
.principles li { border-top: 1px solid var(--ink); padding-top: 20px; }
.principles h3 { font: 500 16px/1.3 var(--body); margin-bottom: 8px; }
.principles p { font-size: 15px; color: var(--ink-2); }

/* Services */
.service-list { grid-column: 4 / -1; padding-top: 12px; }
.service {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.service__icon { width: 80px; height: 40px; overflow: visible; }
.service__icon path { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: miter; }
.service h3 {
  font: 400 clamp(1.35rem, 2.1vw, 1.9rem)/1.15 var(--display); letter-spacing: -.02em;
  transition: transform .5s var(--ease);
}
.service p { font-size: 15px; color: var(--ink-2); max-width: 30em; }
.service:hover h3 { transform: translateX(8px); }

/* Work / gallery */
.work__head { align-items: end; }
.work__intro { grid-column: 4 / span 6; padding-top: 20px; font-size: 17px; color: var(--ink-2); }

.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 72px) 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
.project--wide { grid-column: 1 / -1; }
.project__img {
  display: block; width: 100%; overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 3; cursor: zoom-in;
}
.project--wide .project__img { aspect-ratio: 16 / 7; }
.project__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.project__img:hover img { transform: scale(1.035); }
.project figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 16px;
}
.project h3 { font: 500 17px/1.3 var(--body); }
.project figcaption p { font-size: 14px; color: var(--ink-2); text-align: right; }

/* Why */
.why__head { grid-column: 1 / span 5; }
.why__lead {
  margin-top: 20px;
  font: 400 clamp(1.75rem, 3.4vw, 3rem)/1.08 var(--display); letter-spacing: -.03em;
  max-width: 9em;
}
.why__list { grid-column: 6 / -1; padding-top: 20px; }
.why__list > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.why__list > div:first-child { padding-top: 4px; }
.why__list dt { font: 500 18px/1.35 var(--body); }
.why__list dd { color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact { padding-bottom: var(--section); }
.contact__info { grid-column: 1 / span 6; }
.contact__title {
  margin-top: 20px;
  font: 400 clamp(1.75rem, 3.4vw, 3rem)/1.08 var(--display); letter-spacing: -.03em;
  max-width: 13em;
}
.contact__direct { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 20px; justify-items: start; }
.contact__phone { display: grid; gap: 4px; text-decoration: none; }
.contact__k { font-size: 13px; color: var(--ink-2); }
.contact__v {
  font: 400 clamp(1.6rem, 2.8vw, 2.4rem)/1.1 var(--display); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
  padding-bottom: 2px;
}
.contact__phone:hover .contact__v { background-size: 100% 1px; }
.contact__hours { font-size: 14px; color: var(--ink-2); max-width: 26em; }

.form { grid-column: 8 / -1; padding-top: 28px; display: grid; gap: 28px; align-content: start; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field input,
.field select {
  width: 100%; height: 48px; padding: 0;
  font: 400 18px/1 var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .25s var(--ease);
}
.field input::placeholder { color: #a6a6a6; }
.field input:hover, .field select:hover { border-bottom-color: var(--ink-2); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible { outline: none; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
  border-right: 1.25px solid var(--ink); border-bottom: 1.25px solid var(--ink);
  transform: translateY(-75%) rotate(45deg); pointer-events: none;
}
.field select:invalid { color: #a6a6a6; }
.field select option { color: var(--ink); }
.field__error { display: none; font-size: 13px; margin-top: 8px; color: var(--ink); }
.field.has-error input, .field.has-error select { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.has-error .field__error { display: block; }
.field.has-error .field__error::before { content: "— "; }

.form .btn { margin-top: 8px; }
.form__note { font-size: 13px; color: var(--ink-2); margin-top: -12px; }
.form__note a { color: var(--ink); }
.form__status { font-size: 14px; min-height: 1px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 80px; font-size: 15px; } /* bottom room for the WhatsApp button */
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 16px; color: var(--ink-2); max-width: 20em; }
.footer__h { font: 500 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.footer address { font-style: normal; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__base {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 72px; padding-block: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--ink); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(0,0,0,.5); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(255,255,255,.97);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: rgba(255,255,255,.9); }
.lightbox__close { justify-self: end; padding: 20px var(--gutter); font-size: 14px; letter-spacing: .04em; }
.lightbox img { width: 100%; height: 100%; max-height: calc(100vh - 140px); object-fit: contain; padding-inline: var(--gutter); }
.lightbox__cap { padding: 16px var(--gutter) 24px; font-size: 14px; color: var(--ink-2); text-align: center; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Motion (only when JS is available)
   ========================================================= */
.js .reveal-load {
  opacity: 0; transform: translateY(24px);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}
.js .hero__title .reveal-load { transform: translateY(105%); opacity: 1; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js .hero__img img { transform: scale(1.06); transition: transform 2.2s var(--ease); }
.js .hero__img.is-in img { transform: none; }

.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-in .draw, .js .is-in.draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease); }
.js .service .draw { transition-duration: 1.4s; }
.js .section-line .dims, .js .section-labels { opacity: 0; transition: opacity .8s var(--ease) 1.6s; }
.js .hero__media.is-in .dims, .js .hero__media.is-in .section-labels { opacity: 1; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-load { opacity: 1; transform: none; }
  .js .hero__title .reveal-load { transform: none; }
  .js .draw { stroke-dashoffset: 0; }
  .js .hero__img img { transform: none; }
  .js .section-line .dims, .js .section-labels { opacity: 1; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .service { grid-template-columns: 96px minmax(0, 1fr); }
  .service p { grid-column: 2; }
  .why__list > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; margin-right: -10px; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 24px var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a {
    font: 400 28px/1.2 var(--display); letter-spacing: -.02em;
    padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav .nav__call-mobile { display: block; font: 500 16px/1.4 var(--body); letter-spacing: 0; border: 0; margin-top: 24px; }

  .grid-12, .hero__row { display: block; }
  .hero__lede { max-width: 36em; }
  .hero__ctas { justify-content: flex-start; margin-top: 28px; }
  .hero__img { aspect-ratio: 4 / 3; }
  .section-labels span:nth-child(3) { display: none; }

  .about__body, .service-list, .work__intro, .why__list { padding-top: 24px; }
  .why__head { margin-bottom: 8px; }

  .gallery { grid-template-columns: 1fr; }
  .project--wide .project__img { aspect-ratio: 4 / 3; }

  .contact__info { margin-bottom: 48px; }
  .form { padding-top: 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__img { aspect-ratio: 4 / 5; }
  .section-labels { font-size: 10px; }
  .section-labels span:nth-child(2), .section-labels span:nth-child(4) { display: none; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .service p { grid-column: auto; }
  .project figcaption { display: block; }
  .project figcaption p { text-align: left; margin-top: 2px; }
  .footer__base { flex-direction: column; }
  .wa-float { width: 54px; height: 54px; }
  .header .logo__sub { display: none; }
}
