/* =========================================================
   UAB „Medingė“ — Editorial Luxury design system
   Warm paper cream, deep espresso, muted ember accent.
   Fraunces variable serif display + Instrument Sans body.
   Double-Bezel architecture, fluid-island navigation.
   ========================================================= */

:root {
  /* Palette — warm, tactile, industrial heritage */
  --paper:     #F5F1EA;   /* bg */
  --paper-2:   #EFE9DD;   /* elevated card surface */
  --paper-3:   #E6DECE;   /* double-bezel outer shell */
  --ink:       #1C1816;   /* near-black espresso — not pure #000 */
  --ink-80:    rgba(28, 24, 22, 0.80);
  --ink-60:    rgba(28, 24, 22, 0.60);
  --ink-40:    rgba(28, 24, 22, 0.40);
  --ink-12:    rgba(28, 24, 22, 0.12);
  --ink-06:    rgba(28, 24, 22, 0.06);
  --ink-04:    rgba(28, 24, 22, 0.04);

  --steel:     #8C8278;   /* warm mid-gray */
  --line:      #D9D3C8;   /* hairline rule */
  --line-soft: #E8E1D2;

  /* Single accent — steel blue, sampled from the Medingė wordmark roof */
  --ember:       #7E9DBA;   /* primary brand — steel blue from logo */
  --ember-deep:  #5C7B97;   /* hover/active — darker steel */
  --ember-soft:  #E6EDF3;   /* focus ring tint */

  /* Dark surface family — espresso, not jarring black */
  --espresso:     #1C1816;
  --espresso-2:   #2A2220;
  --espresso-3:   #3A2F2C;
  --cream-on-ink: #EAE1D1;

  /* Type */
  --serif:  'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:   'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Radius scale — varied, not uniform */
  --r-xs:  8px;
  --r-sm:  14px;
  --r-md:  22px;
  --r-lg:  32px;
  --r-xl:  44px;
  --r-pill: 999px;

  /* Shadow scale — warm-tinted, never pure black */
  --sh-xs: 0 1px 2px rgba(28, 24, 22, 0.05);
  --sh-sm: 0 2px 8px rgba(28, 24, 22, 0.06), 0 1px 2px rgba(28, 24, 22, 0.04);
  --sh-md: 0 12px 32px rgba(28, 24, 22, 0.08), 0 2px 8px rgba(28, 24, 22, 0.05);
  --sh-lg: 0 24px 56px rgba(28, 24, 22, 0.12), 0 4px 12px rgba(28, 24, 22, 0.06);
  --sh-inset-hi: inset 0 1px 0 rgba(255, 250, 240, 0.55);

  /* Motion */
  --ease-out-apple: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-apple:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast:   240ms;
  --dur-med:    420ms;
  --dur-slow:   720ms;
  --dur-reveal: 900ms;

  /* Layout */
  --container: 1280px;
  --gutter:    24px;
  --nav-h:     72px;
  --nav-gap:   24px;

  /* Z-index scale */
  --z-grain:   2;
  --z-nav:     40;
  --z-overlay: 60;
  --z-modal:   80;
}

* { box-sizing: border-box; }
*::selection { background: var(--ember); color: var(--paper); }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--nav-gap) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }

p { margin: 0 0 12px; color: var(--ink-80); }

button { font-family: inherit; }

/* =========================================================
   Film-grain overlay — fixed, pointer-events-none
   Breaks digital flatness without impacting interaction.
   ========================================================= */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Container
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { left: 16px; top: 16px; z-index: var(--z-modal); }

/* =========================================================
   Typography
   ========================================================= */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ember);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  color: var(--ember);
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 30;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-3);
  color: var(--ink);
  border: 1px solid var(--ink-12);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
}
.eyebrow--dark {
  background: rgba(234, 225, 209, 0.08);
  color: var(--cream-on-ink);
  border-color: rgba(234, 225, 209, 0.14);
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-80);
  max-width: 62ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 56ch;
  margin: 0;
}

/* =========================================================
   Button — pill + nested circular trailing icon
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out-apple),
    background-color var(--dur-fast) var(--ease-out-apple),
    color var(--dur-fast) var(--ease-out-apple),
    border-color var(--dur-fast) var(--ease-out-apple);
}
.btn:active { transform: scale(0.98); }

.btn__icon {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition:
    transform var(--dur-med) var(--ease-out-apple),
    background-color var(--dur-med) var(--ease-out-apple);
}
.btn__icon svg { width: 13px; height: 13px; }

.btn:hover .btn__icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  padding-right: 6px;
}
.btn--primary:hover { background: var(--espresso-2); color: var(--paper); }
.btn--primary .btn__icon { background: rgba(245, 241, 234, 0.14); }

.btn--ember {
  background: var(--ember);
  color: var(--paper);
  padding-right: 6px;
}
.btn--ember:hover { background: var(--ember-deep); color: var(--paper); }
.btn--ember .btn__icon { background: rgba(245, 241, 234, 0.18); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-12);
  padding-right: 22px;
}
.btn--ghost:hover { background: var(--paper-3); color: var(--ink); border-color: var(--ink-12); }

.btn--ghost-on-ink {
  background: transparent;
  color: var(--cream-on-ink);
  border-color: rgba(234, 225, 209, 0.24);
  padding-right: 22px;
}
.btn--ghost-on-ink:hover { background: rgba(234, 225, 209, 0.08); }

.btn--text {
  padding: 8px 2px;
  background: transparent;
  color: var(--ink);
  gap: 10px;
}
.btn--text .btn__icon { background: var(--paper-3); color: var(--ink); }
.btn--text:hover { color: var(--ember); }
.btn--text:hover .btn__icon { background: var(--ember); color: var(--paper); transform: translate(2px, -1px) scale(1.05); }

/* =========================================================
   Fluid-Island Navigation
   Floating glass pill, never glued to top
   ========================================================= */
.nav-spacer { height: calc(var(--nav-h) + var(--nav-gap) + 8px); }

.nav {
  position: fixed;
  top: var(--nav-gap);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1120px;
  z-index: var(--z-nav);
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  background: rgba(245, 241, 234, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(28, 24, 22, 0.08);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm), var(--sh-inset-hi);
  height: var(--nav-h);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
@media (min-width: 1024px) { .nav__links { display: inline-flex; } }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-80);
  border-radius: var(--r-pill);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out-apple),
    background-color var(--dur-fast) var(--ease-out-apple);
}
.nav__link:hover { color: var(--ink); background: var(--ink-06); }
.nav__link--active { color: var(--ink); background: var(--ink-06); }
.nav__link--active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--ember);
  border-radius: 2px;
}

.nav__item { position: relative; display: inline-flex; }
.nav__link--menu::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--dur-fast) var(--ease-out-apple);
  opacity: 0.7;
}
.nav__item:hover .nav__link--menu::after,
.nav__item:focus-within .nav__link--menu::after { transform: rotate(-135deg) translateY(1px); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 320px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md), var(--sh-inset-hi);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) var(--ease-out-apple),
    transform var(--dur-fast) var(--ease-out-apple),
    visibility 0s linear var(--dur-fast);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav__dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  transition: background-color var(--dur-fast) var(--ease-out-apple),
              color var(--dur-fast) var(--ease-out-apple);
}
.nav__dropdown a small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: 0.01em;
}
.nav__dropdown a:hover { background: var(--paper-2); color: var(--ember); }
.nav__dropdown a:hover small { color: var(--ink-60); }

.nav__cta {
  display: none;
  margin-left: 8px;
}
@media (min-width: 1024px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out-apple);
}
.nav__toggle:hover { background: var(--espresso-2); }
.nav__toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-med) var(--ease-out-apple),
              opacity var(--dur-fast) var(--ease-out-apple);
}
.nav__toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.nav__toggle span:nth-child(2) { transform: translate(-50%,  0px); }
.nav__toggle span:nth-child(3) { transform: translate(-50%,  6px); }
.nav__toggle.is-open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }
@media (min-width: 1024px) { .nav__toggle { display: none; } }

/* Mobile full-screen overlay menu */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-med) var(--ease-out-apple),
    visibility 0s linear var(--dur-med);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--nav-gap) + 48px) 24px 48px;
  overflow-y: auto;
}
.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.nav__overlay nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.nav__overlay a,
.nav__overlay summary {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition:
    color var(--dur-fast) var(--ease-out-apple),
    opacity var(--dur-reveal) var(--ease-out-apple),
    transform var(--dur-reveal) var(--ease-out-apple);
}
.nav__overlay.is-open a,
.nav__overlay.is-open summary { opacity: 1; transform: translateY(0); }
.nav__overlay.is-open a:nth-child(1), .nav__overlay.is-open details:nth-child(1) summary { transition-delay: 80ms; }
.nav__overlay.is-open a:nth-child(2), .nav__overlay.is-open details:nth-child(2) summary { transition-delay: 140ms; }
.nav__overlay.is-open a:nth-child(3), .nav__overlay.is-open details:nth-child(3) summary { transition-delay: 200ms; }
.nav__overlay.is-open a:nth-child(4), .nav__overlay.is-open details:nth-child(4) summary { transition-delay: 260ms; }
.nav__overlay.is-open a:nth-child(5), .nav__overlay.is-open details:nth-child(5) summary { transition-delay: 320ms; }

.nav__overlay a:hover,
.nav__overlay summary:hover { color: var(--ember); }

.nav__overlay summary::-webkit-details-marker { display: none; }
.nav__overlay summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__overlay summary::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-med) var(--ease-out-apple);
}
.nav__overlay details[open] summary::after { transform: rotate(-135deg); }
.nav__overlay details a {
  font-size: clamp(18px, 2.5vw, 22px);
  font-family: var(--sans);
  font-weight: 500;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-80);
}

.nav__overlay-meta {
  margin-top: auto;
  padding-top: 32px;
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.7;
}
.nav__overlay-meta strong { color: var(--ink); font-weight: 500; }

body.menu-open { overflow: hidden; }

/* =========================================================
   Hero — Editorial Split
   Massive serif display on left, image stack on right
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h) - var(--nav-gap) - 8px);
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.hero__copy { max-width: 780px; }
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__stats {
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
@media (min-width: 720px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stats div { margin: 0; }
.hero__stats dt {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0 0 8px;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__stats dd small {
  display: inline;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-60);
  letter-spacing: 0;
  margin-left: 4px;
}

/* Image stack — asymmetric, offset, with depth */
.hero__stack {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.hero__stack-outer {
  /* Double-Bezel outer shell */
  position: absolute;
  inset: 0;
  padding: 10px;
  background: var(--paper-3);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md), var(--sh-inset-hi);
}
.hero__stack-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  background-color: var(--paper-2);
}
.hero__stack-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-out-apple);
}
.hero__stack:hover .hero__stack-img { transform: scale(1.03); }

.hero__stack-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,24,22,0) 50%, rgba(28,24,22,0.55) 100%);
}

.hero__chip {
  /* Floating "since 1992" chip overlapping the image */
  position: absolute;
  left: -10px;
  bottom: -14px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-2deg);
}
.hero__chip strong {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ember);
}
.hero__chip-rule { width: 1px; height: 22px; background: var(--ink-12); }

.hero__badge {
  position: absolute;
  right: -12px;
  top: 24px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--cream-on-ink);
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: var(--sh-md);
}

/* =========================================================
   Sections — heavy macro-whitespace
   ========================================================= */
.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}
.section--ink {
  background: var(--espresso);
  color: var(--cream-on-ink);
}
.section--ink p { color: rgba(234, 225, 209, 0.78); }

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 820px;
}
.section__head--split {
  grid-template-columns: 1fr;
  max-width: 100%;
  align-items: end;
}
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1.3fr 1fr; }
}

/* =========================================================
   Bento grid — asymmetric service cards (Double-Bezel)
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
}
@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
}

/* Double-Bezel card — outer shell + inner core */
.shell {
  position: relative;
  padding: 8px;
  background: var(--paper-3);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition:
    transform var(--dur-med) var(--ease-out-apple),
    box-shadow var(--dur-med) var(--ease-out-apple),
    border-color var(--dur-med) var(--ease-out-apple);
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.shell:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--ink-12);
}
.shell__core {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: calc(var(--r-lg) - 8px);
  box-shadow: var(--sh-inset-hi);
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.shell--ink {
  background: var(--espresso-3);
  border-color: rgba(234, 225, 209, 0.1);
}
.shell--ink .shell__core { background: var(--espresso); color: var(--cream-on-ink); }

/* Bento placements */
.bento--services .bento__feature { grid-column: span 1; grid-row: span 2; }
.bento--services .bento__item    { grid-column: span 1; }
@media (min-width: 720px) {
  .bento--services .bento__feature { grid-column: span 3; grid-row: span 2; }
  .bento--services .bento__item    { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .bento--services .bento__feature { grid-column: span 4; grid-row: span 2; }
  .bento--services .bento__item    { grid-column: span 2; }
}

.svc-card .shell__core {
  padding: 28px;
  justify-content: flex-end;
  gap: 20px;
}
.svc-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-out-apple),
              filter var(--dur-med) var(--ease-out-apple);
  filter: saturate(0.85) contrast(1.02);
}
.shell:hover .svc-card__img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.svc-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,24,22,0.10) 40%, rgba(28,24,22,0.85) 100%);
}
.svc-card__content {
  position: relative;
  color: var(--paper);
  display: flex; flex-direction: column; gap: 10px;
}
.svc-card__num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.7);
}
.svc-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}
.svc-card__desc {
  color: rgba(245, 241, 234, 0.78);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 50ch;
}
.svc-card__arrow {
  align-self: flex-start;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245, 241, 234, 0.16);
  border: 1px solid rgba(245, 241, 234, 0.22);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--paper);
  transition: transform var(--dur-med) var(--ease-out-apple),
              background-color var(--dur-fast) var(--ease-out-apple);
}
.svc-card__arrow svg { width: 14px; height: 14px; }
.shell:hover .svc-card__arrow { transform: translate(3px, -2px); background: var(--ember); }

/* Feature card — larger type */
.svc-card--feature .svc-card__title {
  font-size: clamp(32px, 4.4vw, 56px);
}
.svc-card--feature .svc-card__desc { font-size: 15px; max-width: 44ch; }

/* =========================================================
   Process timeline — horizontal, numbered with Fraunces
   ========================================================= */
.process {
  position: relative;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px)  { .process { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.process__step {
  position: relative;
  padding: 32px 0 0 0;
}
@media (min-width: 1024px) {
  .process__step::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 0;
    right: -24px;
    height: 1px;
    background: var(--line);
  }
  .process__step:last-child::before { display: none; }
}
.process__step::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ember);
  box-sizing: border-box;
}
.process__num {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ember);
  margin: 14px 0 16px;
}
.process__step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.process__step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-60);
  margin: 0;
  max-width: 34ch;
}

/* =========================================================
   Tech spec cells — espresso section
   ========================================================= */
.tech {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px)  { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech { grid-template-columns: repeat(4, 1fr); } }

.tech-cell {
  position: relative;
  padding: 28px;
  background: var(--espresso-2);
  border: 1px solid rgba(234, 225, 209, 0.08);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  box-shadow: inset 0 1px 0 rgba(234, 225, 209, 0.05);
  transition: background-color var(--dur-med) var(--ease-out-apple),
              border-color var(--dur-med) var(--ease-out-apple);
}
.tech-cell:hover {
  background: var(--espresso-3);
  border-color: rgba(234, 225, 209, 0.14);
}
.tech-cell__id {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(234, 225, 209, 0.5);
  text-transform: uppercase;
}
.tech-cell__code {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 6px 0 12px;
}
.tech-cell h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: rgba(234, 225, 209, 0.78);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.tech-cell p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(234, 225, 209, 0.65);
  margin: 0;
}
.tech-cell__spec {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 225, 209, 0.1);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(234, 225, 209, 0.5);
  letter-spacing: 0.04em;
}

/* =========================================================
   Projects bento — masonry-style use cases
   ========================================================= */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .projects {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: dense;
    gap: 20px;
  }
}
.proj-card {
  position: relative;
  grid-column: span 1;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--ink-12);
  box-shadow: var(--sh-sm);
  display: flex;
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur-med) var(--ease-out-apple),
              box-shadow var(--dur-med) var(--ease-out-apple);
}
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
@media (min-width: 720px) {
  .proj-card { grid-column: span 2; }
  .proj-card--wide { grid-column: span 3; min-height: 340px; }
  .proj-card--tall { grid-column: span 2; grid-row: span 2; min-height: 580px; }
}
.proj-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.82);
  transition: transform var(--dur-slow) var(--ease-out-apple),
              filter var(--dur-med) var(--ease-out-apple);
}
.proj-card:hover .proj-card__img { transform: scale(1.05); filter: saturate(1); }
.proj-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,24,22,0) 45%, rgba(28,24,22,0.85) 100%);
}
.proj-card__content {
  position: relative;
  margin-top: auto;
  padding: 20px 22px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj-card__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 241, 234, 0.7);
}
.proj-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0;
}
.proj-card__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.8);
  margin: 4px 0 0;
  max-width: 52ch;
}

/* =========================================================
   ES parama — two feature blocks
   ========================================================= */
.parama {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .parama { grid-template-columns: 1fr 1fr; gap: 24px; } }

.parama__card {
  padding: 8px;
  background: var(--paper-3);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm), var(--sh-inset-hi);
}
.parama__inner {
  padding: 36px 32px;
  background: var(--paper);
  border-radius: calc(var(--r-lg) - 8px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.parama__card--ink { background: var(--espresso-3); border-color: rgba(234, 225, 209, 0.1); }
.parama__card--ink .parama__inner { background: var(--espresso); color: var(--cream-on-ink); }
.parama__card--ink .parama__meta { color: rgba(234, 225, 209, 0.55); }
.parama__card--ink p { color: rgba(234, 225, 209, 0.78); }

.parama__amount {
  display: inline-flex; align-items: baseline;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--ember-soft);
  color: var(--ember-deep);
  border-radius: var(--r-sm);
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.parama__amount small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}
.parama__card--ink .parama__amount {
  background: rgba(234, 225, 209, 0.1);
  color: var(--cream-on-ink);
}
.parama__card--ink .parama__amount small { color: rgba(234, 225, 209, 0.6); }
.parama__card--ink .h3 { color: var(--paper); }
.parama__meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-60);
}
.parama__card--ink .parama__meta { border-color: rgba(234, 225, 209, 0.14); }

/* =========================================================
   Gallery strip — horizontal scroll
   ========================================================= */
.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 28vw, 340px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px calc((100vw - var(--container)) / 2 + var(--gutter)) 8px;
  margin: 0 calc(-1 * var(--gutter));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
@media (min-width: 1320px) {
  .gallery-strip { padding-left: max(24px, calc((100vw - var(--container)) / 2)); padding-right: max(24px, calc((100vw - var(--container)) / 2)); }
}

.gal {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-2);
  scroll-snap-align: start;
  box-shadow: var(--sh-sm);
}
.gal__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-out-apple),
              filter var(--dur-med) var(--ease-out-apple);
  filter: saturate(0.85);
}
.gal:hover .gal__img { transform: scale(1.04); filter: saturate(1); }
.gal__caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 8px 12px;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* =========================================================
   Contact CTA — Editorial Split
   ========================================================= */
.contact-split {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-split { grid-template-columns: 1.1fr 1fr; gap: 72px; }
}
.contact-rows { display: grid; gap: 0; margin-top: 16px; }
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) { .contact-row { grid-template-columns: 160px 1fr; gap: 20px; align-items: baseline; } }
.contact-row dt {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0;
}
.contact-row dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.contact-row dd a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-12);
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-out-apple),
              text-decoration-color var(--dur-fast) var(--ease-out-apple);
}
.contact-row dd a:hover { color: var(--ember); text-decoration-color: var(--ember); }

.contact-card {
  padding: 10px;
  background: var(--paper-3);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md), var(--sh-inset-hi);
}
.contact-card__inner {
  padding: 32px 28px;
  background: var(--paper);
  border-radius: calc(var(--r-lg) - 10px);
}
.contact-card__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px;
}
.contact-card__map {
  margin-top: 20px;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--r-lg) - 18px);
  overflow: hidden;
  border: 1px solid var(--ink-12);
}
.contact-card__map iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   Form (contact page)
   ========================================================= */
.form-card {
  padding: 10px;
  background: var(--paper-3);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm), var(--sh-inset-hi);
}
.form-card__inner {
  padding: 36px 32px;
  background: var(--paper);
  border-radius: calc(var(--r-lg) - 10px);
}
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-out-apple),
              box-shadow var(--dur-fast) var(--ease-out-apple);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--ember-soft);
}

/* =========================================================
   Brand logo (image) — nav + footer
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.brand__logo {
  display: block;
  height: 34px;
  width: auto;
}
.brand--chip {
  padding: 10px 16px;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--sh-inset-hi);
  border: 1px solid rgba(234, 225, 209, 0.08);
}
.brand--chip .brand__logo { height: 30px; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--ink-60); }

/* =========================================================
   Footer — minimal, not a link farm
   ========================================================= */
.footer {
  position: relative;
  background: var(--espresso);
  color: var(--cream-on-ink);
  padding: clamp(72px, 10vw, 112px) 0 32px;
}
.footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; }
}


.footer__lede {
  max-width: 42ch;
  color: rgba(234, 225, 209, 0.78);
  margin: 20px 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.footer__heading {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234, 225, 209, 0.5);
  margin: 0 0 18px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list a,
.footer__list li {
  color: rgba(234, 225, 209, 0.86);
  font-size: 15px;
  transition: color var(--dur-fast) var(--ease-out-apple);
  line-height: 1.5;
}
.footer__list a:hover { color: var(--ember); }

.footer__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 225, 209, 0.1);
  color: rgba(234, 225, 209, 0.5);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Page header (inner pages)
   ========================================================= */
.page-head {
  padding: clamp(120px, 14vw, 180px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-40);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.crumbs a { color: var(--ink-60); }
.crumbs a:hover { color: var(--ember); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); }
.crumbs span.sep { color: var(--ink-40); }

/* =========================================================
   Reveal animations (IntersectionObserver toggles .is-revealed)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity var(--dur-reveal) var(--ease-out-apple),
    transform var(--dur-reveal) var(--ease-out-apple),
    filter var(--dur-reveal) var(--ease-out-apple);
  will-change: transform, opacity;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }
.reveal--d4 { transition-delay: 320ms; }

/* =========================================================
   Focus
   ========================================================= */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  html { scroll-behavior: auto; }
}
