@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* Local Typography System: Aspekta (Headings) & Diga (Hero Italic Accent) */
@font-face {
  font-family: 'Aspekta';
  src: url('/assets/fonts/aspekta/AspektaVF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Diga';
  src: url('/assets/fonts/diga/variable/diga_i.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Diga';
  src: url('/assets/fonts/diga/variable/diga_r.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Palette (Derived from blueprint & calibrated for contrast) */
  --paper: #f5f4f0;
  --surface: #ffffff;
  --ink: #171918;
  --muted: #545754;
  /* 5.5:1 contrast on paper */
  --muted-light: #767975;
  /* 4.5:1 text-tertiary on paper */
  --line: #d9d9d3;
  --line-strong: #c2c3bc;
  /* 3:1 non-text contrast for inputs/controls */
  --copper: #a85f3d;
  --copper-hover: #8f4d2f;
  --copper-pale: #f0ded3;
  --dark: #202522;
  --dark-surface: #2a302c;

  /* Typography System: Aspekta (headings), Diga (hero italic accent), Inter (UI/body), IBM Plex Mono (labels/technical) */
  --font-display: 'Aspekta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif-italic: 'Diga', Georgia, serif;
  --serif: var(--font-display);
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Elevation Shadows (Refactoring UI two-layer depth) */
  --shadow-sm: 0 1px 2px rgba(23, 25, 24, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(23, 25, 24, 0.06), 0 2px 4px -1px rgba(23, 25, 24, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(23, 25, 24, 0.08), 0 4px 8px -2px rgba(23, 25, 24, 0.04);
  --shadow-3d: 0 24px 48px -12px rgba(32, 37, 34, 0.22), 0 12px 24px -8px rgba(32, 37, 34, 0.12);

  /* Motion & Transitions Tokens (jakubantalik/transitions-polish) */
  --ease-smooth-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-normal: 260ms;
  --duration-slow: 380ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Typography Hierarchy */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw + 0.4rem, 4.5rem);
  max-width: 820px;
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.12;
}

.hero-line {
  display: block;
}

.hero-line--sans {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.12;
}

.hero-line--serif-terracotta {
  display: block;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--copper);
  line-height: 1.05;
  margin-top: 0.06em;
  margin-bottom: 0.06em;
}

.hero-sans-lead {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.12;
}

.hero-serif-italic {
  display: block;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--copper);
  line-height: 1.05;
  margin-top: 0.08em;
}

h2 {
  /* Keep major section headings clearly below the page hero across all five pages. */
  font-size: clamp(1.7rem, 2.6vw + 0.2rem, 2.75rem);
  max-width: 720px;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.15rem, 1.4vw + 0.3rem, 1.38rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.25;
}

p {
  color: var(--muted);
  max-width: 620px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* Button & Link Affordances */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-smooth-out),
    background var(--duration-fast) var(--ease-smooth-out),
    color var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn.dark {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.btn.dark:hover {
  background: #121513;
  border-color: #121513;
}

.btn.copper {
  background: var(--copper);
  color: #ffffff;
  border-color: var(--copper);
}

.btn.copper:hover {
  background: var(--copper-hover);
  border-color: var(--copper-hover);
}

.btn.text {
  border: 0;
  padding: 13px 4px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn.text:hover {
  background: transparent;
  color: var(--copper);
  transform: translateX(4px);
  box-shadow: none;
}

.arrow {
  font-size: 15px;
  line-height: 0;
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

.btn.text:hover .arrow {
  transform: translateX(3px);
}

/* Topbar */
.topbar {
  border-bottom: 1px solid var(--line);
  font: 500 14px / 1.4 var(--mono);
  color: var(--muted);
  padding: 10px 0;
  background: var(--paper);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.topbar a:hover {
  color: var(--ink);
}

.topbar .topbar-sep {
  opacity: 0.45;
  margin: 0 8px;
}

/* Header & Sticky Navigation */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--duration-fast) var(--ease-smooth-out);
}

.navin {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 8px 6px;
}

.logo {
  font: 700 22px var(--serif);
  letter-spacing: -0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}

.logo--standalone {
  margin-left: 4px;
}

.logo-img {
  width: auto;
  height: 80px;
  max-width: 140px;
  max-height: 84px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.logo--standalone .logo-img {
  height: 80px;
  max-height: 84px;
  max-width: 140px;
}

.logo-mark {
  width: auto;
  height: 40px;
  max-height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.logo:hover .logo-img,
.logo:hover .logo-mark {
  transform: scale(1.05);
}

.logo span {
  color: var(--copper);
}

.links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-family: var(--body);
  font-size: 14px;
}

.links a:not(.btn) {
  font-family: var(--body);
  color: var(--muted);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-smooth-out);
}

.links a:not(.btn):hover,
.links a.active:not(.btn) {
  color: var(--ink);
}

.links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
}

.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

/* Shared hero rhythm across Home and all inner pages */
.hero {
  padding: 56px 0;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(1.95rem, 3.1vw + 0.25rem, 3.25rem);
  max-width: 680px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

/* Home Page 3-Line Headline Architecture */
.hero .hero-line {
  display: block;
}

.hero .hero-line--sans {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw + 0.25rem, 3.15rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.14;
  white-space: nowrap;
}

.hero .hero-line--serif-terracotta {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.35rem, 4.1vw + 0.35rem, 4.15rem);
  letter-spacing: -0.015em;
  color: var(--copper);
  line-height: 1.05;
  margin-top: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .hero .hero-line--sans,
  .hero .hero-line--serif-terracotta {
    white-space: normal;
  }
}

/* Editorial Hero Headline Architecture (Sans-Serif Lead + Large Italic-Serif Accent) */
.hero-sans-lead {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.9vw + 0.25rem, 2.95rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
}

.hero-serif-italic {
  display: block;
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw + 0.3rem, 4rem);
  letter-spacing: -0.02em;
  color: var(--copper);
  line-height: 1.05;
  margin-top: 4px;
}

.hero p {
  font-size: 17px;
  margin: 18px 0 24px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font: 500 12px var(--mono);
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

/* 3D Multi-Device Stage - Proportional 30% Vertical Reduction */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 360px;
  margin-left: auto;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cutout {
  width: 138%;
  max-width: none;
  height: auto;
  margin-left: -19%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 28px rgba(32, 37, 34, 0.14));
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(13deg) rotateZ(2deg) scale(0.88);
  transform-origin: center center;
  transition: transform 0.45s var(--ease-smooth-out);
  animation: heroStageFloat 7.5s ease-in-out infinite;
}

.hero-visual:hover .hero-stage {
  transform: rotateY(-14deg) rotateX(9deg) rotateZ(0.8deg) translateY(-4px) scale(0.88);
}

@keyframes heroStageFloat {
  0%, 100% {
    transform: rotateY(-20deg) rotateX(13deg) rotateZ(2deg) translateY(0);
  }
  50% {
    transform: rotateY(-16deg) rotateX(15deg) rotateZ(1.2deg) translateY(-14px);
  }
}

/* 3D Base Platform Underneath Devices */
.hero-platform {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 12px;
  height: 190px;
  transform: rotateX(74deg) translateZ(-95px);
  transform-style: preserve-3d;
  background: radial-gradient(ellipse at 50% 50%, #d8dbd3 0%, #c4c7bf 45%, rgba(245, 244, 240, 0) 74%);
  border-radius: 50%;
  box-shadow: 0 8px 0px #b2b6ad,
              0 16px 0px #94988e,
              0 38px 60px rgba(23, 25, 24, 0.35);
  pointer-events: none;
  z-index: 0;
}

.hero-platform::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 95, 61, 0.4);
}

/* Shared Device Physical Chassis */
.device {
  position: absolute;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.device-bezel {
  position: relative;
  background: #191c1a;
  box-sizing: border-box;
  overflow: hidden;
}

.device-screen {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 35%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 1. Tablet Device (Positioned Behind Desktop with Visible Spacing) */
.device-tablet {
  left: -10px;
  top: 0px;
  width: 335px;
  z-index: 1;
  transform: translate3d(-75px, -50px, -140px) rotateY(12deg) rotateX(-4deg);
  transition: transform 0.45s var(--ease-smooth-out);
}

.hero-visual:hover .device-tablet {
  transform: translate3d(-95px, -60px, -170px) rotateY(15deg) rotateX(-2deg);
}

.device-tablet .device-bezel {
  padding: 10px;
  border-radius: 18px;
  border: 1.5px solid #525854;
  background: linear-gradient(145deg, #2e3430 0%, #1a1e1b 100%);
  /* Thick 3D extruded side edge */
  box-shadow: -2px 2px 0px #2a2e2b,
              -4px 4px 0px #212522,
              -6px 6px 0px #181c19,
              -8px 8px 0px #101211,
              0 25px 45px rgba(23, 25, 24, 0.42);
}

.device-tablet .device-camera {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39403b;
  margin: 0 auto 6px;
  box-shadow: inset 0 0 2px #0a0c0a;
}

.device-tablet .device-screen {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  max-height: 230px;
}

.device-tablet .device-screen img {
  object-position: top center;
}

/* 2. Desktop Device (Large Main Screen in Foreground Center) */
.device-desktop {
  left: 55px;
  top: 35px;
  width: 455px;
  z-index: 3;
  transform: translate3d(15px, 5px, 35px) rotateY(-2deg) rotateX(2deg);
  transition: transform 0.45s var(--ease-smooth-out);
}

.hero-visual:hover .device-desktop {
  transform: translate3d(18px, 0px, 45px) rotateY(-1deg) rotateX(1deg);
}

.device-desktop .device-bezel {
  padding: 8px 8px 14px 8px;
  border-radius: 14px;
  border: 1.5px solid #4a514c;
  background: linear-gradient(145deg, #292f2b 0%, #151816 100%);
  /* Heavy physical frame extrusion and ground/back shadows */
  box-shadow: -2px 2px 0px #262a27,
              -5px 5px 0px #1f2220,
              -8px 8px 0px #171917,
              -11px 11px 0px #0f1110,
              0 35px 65px -10px rgba(23, 25, 24, 0.52),
              0 15px 30px rgba(23, 25, 24, 0.3);
}

.device-desktop .device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  color: #929690;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.device-desktop .window-dots {
  display: flex;
  gap: 5px;
}

.device-desktop .window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.device-desktop .window-dots span:nth-child(1) { background: #d35f5f; }
.device-desktop .window-dots span:nth-child(2) { background: #e0b04a; }
.device-desktop .window-dots span:nth-child(3) { background: #5dbb63; }

.device-desktop .browser-address {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 12px;
  border-radius: 4px;
  color: #c4c7c0;
  font-size: 8.5px;
}

.device-desktop .camera-lens {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39403b;
  box-shadow: inset 0 0 2px #0a0c0a;
}

.device-desktop .device-screen {
  border-radius: 6px;
  max-height: 250px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.device-desktop .device-screen img {
  object-position: top center;
}

.device-desktop .device-chin {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.device-desktop .device-logo-mark {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.desktop-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2px;
  transform: translateZ(-20px) rotateX(-12deg);
}

.stand-neck {
  width: 44px;
  height: 38px;
  background: linear-gradient(180deg, #9ca097 0%, #767a72 100%);
  border-left: 1px solid #c2c5bc;
  border-right: 1px solid #5a5d57;
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.stand-foot {
  width: 130px;
  height: 8px;
  background: linear-gradient(180deg, #c7cac2 0%, #9aa095 100%);
  border-radius: 3px 3px 6px 6px;
  box-shadow: 0 8px 16px rgba(23, 25, 24, 0.3),
              -2px 2px 0px #5e625a;
}

/* 3. Mobile Device (Vertical Phone Positioned in Front on the Right) */
.device-mobile {
  right: 6px;
  bottom: 8px;
  width: 146px;
  z-index: 6;
  transform: translate3d(85px, 35px, 170px) rotateY(-14deg) rotateX(7deg);
  transition: transform 0.45s var(--ease-smooth-out);
}

.hero-visual:hover .device-mobile {
  transform: translate3d(105px, 30px, 210px) rotateY(-10deg) rotateX(5deg);
}

.device-mobile .device-bezel {
  padding: 8px 7px 10px 7px;
  border-radius: 28px;
  border: 1.8px solid #525853;
  background: linear-gradient(145deg, #252b27 0%, #101311 100%);
  /* Heavy front extruded edge and deep shadow over desktop */
  box-shadow: -2px 2px 0px #222623,
              -5px 5px 0px #1a1e1b,
              -8px 8px 0px #121513,
              -11px 11px 0px #0a0c0a,
              0 32px 58px -6px rgba(23, 25, 24, 0.65);
}

.device-mobile .device-notch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-bottom: 5px;
}

.device-mobile .speaker-grille {
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: #3c423e;
}

.device-mobile .front-lens {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #252a27;
  box-shadow: inset 0 0 1px #050605;
}

.device-mobile .device-screen {
  border-radius: 20px;
  aspect-ratio: 9 / 19;
  height: 250px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.device-mobile .device-screen img {
  object-position: top center;
}

.device-mobile .home-indicator {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  margin: 6px auto 0;
}

/* Badge retained with authentic Amanix styling and 3D depth */
.hero-badge {
  position: absolute;
  right: -5px;
  bottom: 8px;
  background: var(--copper);
  color: #ffffff;
  padding: 14px 18px;
  font: 600 11px var(--mono);
  letter-spacing: 0.06em;
  box-shadow: 0 14px 30px -4px rgba(168, 95, 61, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  transform: translate3d(15px, 10px, 210px);
  pointer-events: auto;
}

/* Factual Proof Strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--paper);
}

.stripin {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.strip span {
  font: 500 12px var(--mono);
  color: var(--muted);
}

/* Standard Section Layouts */
.section {
  padding: 125px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 55px;
}

.section-head p {
  margin: 0;
}

.section-head--services {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 50px;
  align-items: start;
}

.section-head-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
}

.scope-index {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.scope-index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.scope-market {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.scope-tags {
  font: 500 13px var(--mono);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.scope-dot {
  color: var(--copper);
  font-weight: 700;
}

.section-head-side p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Services Overview */
.services-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.service-list {
  border-top: 1.5px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 30px;
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--duration-fast) var(--ease-smooth-out),
    padding-left var(--duration-fast) var(--ease-smooth-out);
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.6);
  padding-left: 18px;
}

.service-row .num {
  font: 600 13px var(--mono);
  color: var(--copper);
}

.service-row h3 {
  font-size: 1.25rem;
}

.service-row p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.service-row .arrow {
  color: var(--copper);
}

.feature {
  background: var(--dark);
  color: #ffffff;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 24px;
  overflow: hidden;
  border: 1px solid #333a35;
  box-shadow: var(--shadow-md);
}

.feature .services-secondary-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #c9cec8;
  font-size: 13px;
  line-height: 1.55;
}

.feature h3 {
  color: #ffffff;
  margin: 10px 0 14px;
  font-size: 1.45rem;
}

.feature p {
  color: #c9cec8;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.feature .eyebrow {
  color: #e1a487;
}

.feature-image-button {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: #f0ded3;
  font: 500 12px var(--mono);
  cursor: zoom-in;
  width: 100%;
  align-self: start;
  margin-top: 2px;
}

.feature > div {
  padding-top: 2px;
}

.feature img {
  margin-top: 0;
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
  transition: transform var(--duration-normal) var(--ease-smooth-out);
}

.feature img:hover {
  transform: scale(1.015);
}

.feature-image-button span {
  display: inline-block;
  margin-top: 10px;
  color: #f0ded3;
  transition: color var(--duration-fast) var(--ease-smooth-out);
}

.feature-image-button:hover span {
  color: #ffffff;
}

/* Projects Showcase */
.projects {
  background: var(--surface);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: stretch;
}

.project {
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.project.small img {
  aspect-ratio: 16/10;
}

.project-copy {
  padding: 20px 8px 10px;
}

.project-copy h3 {
  margin: 8px 0 0;
}

.project-copy p {
  font-size: 14.5px;
  margin: 8px 0 0;
}

/* Process Grid - Static Editorial Layout */
.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 40px;
}

.process-scroll-container {
  position: relative;
  width: 100%;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  border-top: 1.5px solid var(--ink);
  padding: 34px 0 0;
  margin: 0;
}

.step {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0;
}

.step b {
  font: 600 13px var(--mono);
  color: var(--copper);
  display: inline-block;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.22rem;
  margin: 0 0 10px;
}

.step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* About / Story */
.about {
  background: var(--copper-pale);
}

.about > .wrap,
.about-story > .wrap {
  width: min(1200px, calc(100% - 96px));
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}

.about-grid > div,
.about-story-grid > div {
  align-self: start;
  margin-top: 0;
}

.portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-grid h2 {
  max-width: none;
  margin-bottom: 24px;
}

.about-grid p {
  max-width: none;
  font-size: 16px;
  margin-bottom: 20px;
}

.about-copy {
  max-width: 760px;
}


/* Audit / Conversion */
.audit {
  background: var(--dark);
  color: #ffffff;
}

.audit h2 {
  color: #ffffff;
}

.audit p {
  color: #c9cec8;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.audit-list {
  border-top: 1px solid #59615b;
  margin-top: 32px;
}

.audit-list div {
  padding: 15px 0;
  border-bottom: 1px solid #59615b;
  font: 500 13px var(--mono);
  color: #dfe3dc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-list div::before {
  content: '✓';
  color: var(--copper);
  font-weight: 700;
}

.audit-form {
  background: #ffffff;
  color: var(--ink);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.audit-form label {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13.5px;
  margin: 0 0 7px;
  color: var(--ink);
}

.audit-form input,
.audit-form select,
.audit-form textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  padding: 13px 14px;
  font: 15px var(--body);
  margin-bottom: 18px;
  background: #ffffff;
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(168, 95, 61, 0.15);
  outline: none;
}

.audit-form textarea {
  min-height: 110px;
  resize: vertical;
}

.company-confirmation {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.form-privacy-notice {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-privacy-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Page Hero & Service Hero (Balanced Editorial 2-Column Grid - Compact) */
.page-hero,
.service-hero {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero-grid,
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.page-hero-grid > div:first-child,
.service-hero-grid > div:first-child {
  padding-top: 0;
}

.page-hero-grid h1,
.service-hero-grid h1 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-hero-grid .hero-sans-lead,
.service-hero-grid .hero-sans-lead {
  font-size: clamp(1.65rem, 2.6vw + 0.2rem, 2.7rem);
  font-weight: 600;
  line-height: 1.14;
}

.page-hero-grid .hero-serif-italic,
.service-hero-grid .hero-serif-italic {
  font-size: clamp(2.1rem, 3.5vw + 0.25rem, 3.65rem);
  line-height: 1.06;
  margin-top: 4px;
  color: var(--copper);
}

/* Keep every page hero on the same black / copper / black line rhythm as Home. */
.page-hero-grid .hero-line--sans,
.service-hero-grid .hero-line--sans {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw + 0.25rem, 3.15rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.14;
  white-space: nowrap;
}

.page-hero-grid .hero-line--serif-terracotta,
.service-hero-grid .hero-line--serif-terracotta {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.35rem, 4.1vw + 0.35rem, 4.15rem);
  letter-spacing: -0.015em;
  color: var(--copper);
  line-height: 1.05;
  margin-top: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .page-hero-grid .hero-line--sans,
  .page-hero-grid .hero-line--serif-terracotta,
  .service-hero-grid .hero-line--sans,
  .service-hero-grid .hero-line--serif-terracotta {
    white-space: normal;
  }
}

.page-hero-side,
.service-hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-hero-side p,
.service-hero-side p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 100%;
  margin: 0;
}

.hero-quick-links {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--ink);
  margin-top: 6px;
}

.hero-quick-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  font: 600 13px var(--mono);
  color: var(--ink);
  transition: color var(--duration-fast) var(--ease-smooth-out),
    background var(--duration-fast) var(--ease-smooth-out),
    padding-left var(--duration-fast) var(--ease-smooth-out);
}

.hero-quick-links a:hover {
  color: var(--copper);
  background: rgba(255, 255, 255, 0.5);
  padding-left: 12px;
}

.hero-quick-links a span {
  color: var(--copper);
  font-size: 14px;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.hero-quick-links a:hover span {
  transform: translate(2px, -2px);
}

/* Two-Column Desktop Jump Navigation for Services (Noticeably Less Crowded) */
.hero-quick-links--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  border-top: 1.5px solid var(--ink);
  margin-top: 8px;
}

.hero-quick-links--two-col a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font: 600 12.5px var(--mono);
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-smooth-out),
    padding-left var(--duration-fast) var(--ease-smooth-out);
}

.hero-quick-links--two-col a:hover {
  color: var(--copper);
  padding-left: 6px;
}

.hero-quick-links--two-col a span {
  color: var(--copper);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 680px) {
  .hero-quick-links--two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Service Detail Sections (Less Crowded & Spaced) */
.service-detail {
  padding: 68px 0;
}

.service-detail.alt {
  background: var(--surface);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-detail-grid.reverse img {
  order: 1;
}

.service-detail h2 {
  margin: 16px 0 22px;
}

.service-detail p {
  font-size: 16.5px;
}

.service-detail ul {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.service-detail li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.service-detail li::before {
  content: '↗';
  color: var(--copper);
  margin-right: 12px;
  font-weight: 600;
}

.service-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--copper);
  margin-top: 24px;
  padding: 8px 0;
  min-height: 44px;
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.service-action:hover {
  color: var(--copper-hover);
  transform: translateX(4px);
}

.service-detail img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.service-cta {
  background: var(--dark);
  color: #ffffff;
  padding: 80px 0;
}

.service-cta h2 {
  color: #ffffff;
  margin: 16px 0 30px;
}

/* About Page Specifics */
.about-story {
  padding: 115px 0;
  background: #ffffff;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.about-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-story h2 {
  max-width: none;
  margin: 16px 0 24px;
}

.about-story p {
  max-width: none;
}


.about-values {
  padding: 115px 0;
}

.about-values h2 {
  margin: 16px 0 50px;
}

.values-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1.5px solid var(--ink);
}

.values-grid article,
.principle-grid>div {
  padding: 26px 25px 18px 0;
  border-right: 1px solid var(--line);
}

.values-grid article:last-child,
.principle-grid>div:last-child {
  border-right: 0;
}

.values-grid span,
.principle-grid b {
  font: 600 12px var(--mono);
  color: var(--copper);
}

.values-grid h3,
.principle-grid h3 {
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.values-grid p,
.principle-grid p {
  font-size: 14.5px;
  margin: 0;
}

.about-process {
  padding: 115px 0;
  background: var(--copper-pale);
}

.about-process h2 {
  margin: 16px 0 50px;
}

/* Projects Page Specifics */
.project-list {
  padding: 115px 0;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 65px;
  align-items: center;
  padding: 0 0 95px;
  margin-bottom: 95px;
  border-bottom: 1px solid var(--line);
}

.project-feature.reverse-project {
  grid-template-columns: 0.85fr 1.15fr;
}

.reverse-project .project-image {
  order: 2;
}

.project-image {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.project-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-info h2 {
  margin: 16px 0 22px;
}

.project-info p {
  font-size: 15px;
  margin-bottom: 12px;
}

.project-info strong {
  color: var(--ink);
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.sample-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.sample-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sample-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  object-position: center;
  background: #fbfbf9;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  transition: transform var(--duration-normal) var(--ease-smooth-out);
}

.sample-card:hover img {
  transform: scale(1.015);
}

.sample-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sample-copy h3 {
  margin: 12px 0 8px;
}

.sample-copy p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sample-copy .zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px var(--mono);
  color: var(--copper);
  margin-top: 14px;
}

/* Contact Page Specifics */
.contact-section {
  padding: 115px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-grid h2 {
  margin: 16px 0 22px;
}

.contact-grid p {
  font-size: 16.5px;
}

.contact-notes {
  border-top: 1.5px solid var(--ink);
  margin-top: 40px;
}

.contact-notes div {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}

.contact-notes b {
  font: 600 12px var(--mono);
  color: var(--copper);
}

.contact-form {
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-preview {
  font: 600 11px var(--mono);
  color: var(--copper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form label {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13.5px;
  margin: 0 0 7px;
  color: var(--ink);
}

.contact-form label span {
  color: var(--muted-light);
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  padding: 13px 14px;
  font: 15px var(--body);
  margin-bottom: 18px;
  background: #ffffff;
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(168, 95, 61, 0.15);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-bottom {
  padding: 115px 0;
  background: var(--copper-pale);
}

.contact-bottom h2 {
  margin: 16px 0 20px;
}

.contact-bottom p {
  font-size: 16px;
}

/* Location Page Specifics */
.location-intro {
  padding: 115px 0;
  background: #ffffff;
}

.location-note {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 50px;
}

.location-note h2 {
  margin: 16px 0 0;
}

.location-note p {
  margin: 0;
  font-size: 16.5px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.location-card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.location-card>img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.location-card-content {
  padding: 32px;
}

.location-card h2 {
  font-size: 2.2rem;
  margin: 14px 0 18px;
}

.location-card p {
  font-size: 15px;
}

.location-list {
  border-top: 1px solid var(--line);
  margin: 25px 0 30px;
}

.location-list span {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}

.location-list span::before {
  content: '↗';
  color: var(--copper);
  margin-right: 12px;
  font-weight: 600;
}

.location-principles {
  padding: 115px 0;
  background: var(--copper-pale);
}

.location-principles h2 {
  margin: 16px 0 50px;
}

.location-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink);
  gap: 18px;
}

.location-principle-grid>div {
  padding: 26px 25px 18px 0;
  border-right: 1px solid var(--line);
}

.location-principle-grid>div:last-child {
  border-right: 0;
}

.location-principle-grid b {
  font: 600 12px var(--mono);
  color: var(--copper);
}

.location-principle-grid h3 {
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.location-principle-grid p {
  font-size: 14.5px;
  margin: 0;
}

/* Modal Dialog */
.diagram-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 25, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 500;
}

.diagram-modal.is-open {
  display: flex;
  animation: modalFadeIn var(--duration-fast) var(--ease-smooth-out);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.diagram-modal img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}

.diagram-close {
  position: absolute;
  top: 22px;
  right: 28px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.diagram-close:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .diagram-modal {
    padding: 16px;
  }

  .diagram-close {
    top: 12px;
    right: 12px;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
  }

  .diagram-modal img {
    max-width: 96vw;
    max-height: 82vh;
  }
}

/* Footer (Original Light Paper Palette) */
.footer {
  padding: 68px 0 34px;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 4px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 140px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--duration-fast) var(--ease-smooth-out);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease-smooth-out);
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--copper);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  transition: color var(--duration-fast) var(--ease-smooth-out);
  text-decoration: none;
}

a.footer-contact-item:hover {
  color: var(--copper);
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(168, 95, 61, 0.12);
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted-light);
}

.footer-copy {
  margin: 0;
}

.footer-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease-smooth-out);
}

.footer-legal a:hover {
  color: var(--copper);
}

.legal-sep {
  color: var(--line);
}

/* Floating Contact Bubble */
.float-chat-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--copper);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(168, 95, 61, 0.42);
  z-index: 99;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.float-chat-btn:hover {
  transform: scale(1.08) translateY(-2px);
  background: var(--copper-hover);
  box-shadow: 0 12px 28px rgba(168, 95, 61, 0.55);
}
/* Frequently Asked Questions (FAQ) */
.faq-section {
  padding: 96px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.faq-header .eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
}

.faq-header h2 .highlight {
  color: var(--copper);
}

.faq-header p {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-question-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-question-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--copper-pale);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  flex-shrink: 0;
}

.faq-question-text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  transition: color var(--duration-fast);
}

.faq-summary:hover .faq-question-text {
  color: var(--copper);
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--duration-normal) var(--ease-smooth-out),
              color var(--duration-fast);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--copper);
}

.faq-content {
  padding: 0 26px 24px 68px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-content p {
  margin: 0;
}

@media (max-width: 680px) {
  .services-lead,
  .feature {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding: 64px 0;
  }
  .faq-summary {
    padding: 18px 20px;
    gap: 14px;
  }
  .faq-question-text {
    font-size: 1rem;
  }
  .faq-content {
    padding: 0 20px 20px 20px;
    font-size: 14.5px;
  }
  .faq-question-icon {
    display: none;
  }
}

/* Responsive Rules */
@media (max-width: 850px) {
  .wrap {
    width: min(100% - 32px, 600px);
  }

  .topbar {
    display: none;
  }

  .navin {
    height: 68px;
  }

  .logo-img,
  .logo--standalone .logo-img {
    height: 56px;
    max-height: 60px;
  }

  .links {
    display: none;
  }

  .menu {
    display: block;
  }

  .links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: menuSlideDown var(--duration-fast) var(--ease-smooth-out);
  }

  .links.open a {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 16px;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero,
  .page-hero,
  .service-hero {
    padding: 40px 0 44px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.75rem, 6vw, 2.45rem);
    line-height: 1.08;
  }

  .hero-grid,
  .page-hero-grid,
  .service-hero-grid,
  .services-lead,
  .about-grid,
  .audit-grid,
  .project-grid,
  .service-detail-grid,
  .about-story-grid,
  .project-feature,
  .project-feature.reverse-project,
  .sample-grid,
  .contact-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .services-lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
  }

  .page-hero-grid > div:first-child,
  .service-hero-grid > div:first-child {
    padding-top: 0;
  }

  .service-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .service-detail-grid > div {
    order: 1;
  }

  .service-detail-grid > img {
    order: 2 !important;
  }

  .reverse-project .project-image {
    order: 0;
  }

  .about-photo {
    max-width: 360px;
    margin-inline: auto;
  }

  .contact-form,
  .audit-form {
    padding: 28px 22px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .audit-form input,
  .audit-form select,
  .audit-form textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .hero-visual {
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 16px auto 0;
    perspective: 1300px;
    padding: 0;
  }

  .hero-cutout {
    width: 142%;
    margin-left: -21%;
  }

  .hero-stage {
    transform: rotateY(-14deg) rotateX(8deg) rotateZ(1deg) scale(0.78);
    transform-origin: center center;
  }

  .hero-badge {
    right: 0;
    bottom: 4px;
    padding: 10px 14px;
    font-size: 10px;
    transform: translateZ(110px);
  }

  .section,
  .page-hero,
  .service-hero,
  .service-detail,
  .service-cta,
  .about-story,
  .about-values,
  .about-process,
  .project-list,
  .contact-section,
  .contact-bottom,
  .location-intro,
  .location-principles {
    padding: 58px 0;
  }

  .section-head,
  .location-note {
    display: block;
    margin-bottom: 35px;
  }

  .section-head--services {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head-side {
    padding-top: 0;
  }

  .section-head p,
  .location-note p {
    margin-top: 18px;
  }

  .service-row {
    grid-template-columns: 38px 1fr 22px;
  }

  .service-row p {
    grid-column: 2 / -1;
  }

  .process-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  /* Static vertical timeline on tablet and mobile */
  .process-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line-strong);
    overflow: visible;
  }

  .step {
    position: relative;
    padding-left: 44px;
    padding-bottom: 28px;
    border: none;
    margin: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: var(--line);
  }

  .step:last-child::before {
    display: none;
  }

  .step::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--copper);
  }

  .step b {
    margin-bottom: 4px;
  }

  .step h3 {
    font-size: 1.15rem;
    margin: 0 0 6px;
  }

  .step p {
    font-size: 14px;
    line-height: 1.55;
  }

  .values-grid,
  .principle-grid,
  .location-principle-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .values-grid article,
  .principle-grid>div,
  .location-principle-grid>div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, 560px);
  }

  .contact-form,
  .audit-form {
    padding: 22px 16px;
  }

  .faq-summary {
    padding: 16px;
    gap: 12px;
  }

  .faq-content {
    padding: 0 16px 20px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero {
    overflow: hidden;
  }

  .hero-visual {
    width: 100%;
    max-width: 330px;
    height: auto;
    perspective: 1100px;
    margin: 12px auto 0;
  }

  .hero-cutout {
    width: 148%;
    margin-left: -24%;
  }

  .hero-stage {
    width: 300px;
    height: 230px;
    margin: 0 auto;
    transform: rotateY(-10deg) rotateX(6deg) rotateZ(1deg) scale(0.74);
    transform-origin: center center;
  }

  .hero-platform {
    left: 0;
    right: 0;
    bottom: 4px;
    height: 120px;
    transform: rotateX(78deg) translateZ(-40px);
  }

  .device-tablet {
    width: 210px;
    left: 0px;
    top: 10px;
    transform: translate3d(-25px, -15px, -80px) rotateY(6deg) rotateX(-2deg);
  }

  .device-tablet .device-screen {
    max-height: 160px;
  }

  .device-desktop {
    width: 270px;
    left: 24px;
    top: 25px;
    transform: translate3d(5px, 0px, 20px) rotateY(-1deg);
  }

  .device-desktop .device-screen {
    max-height: 165px;
  }

  .device-mobile {
    width: 105px;
    right: 6px;
    bottom: 12px;
    transform: translate3d(30px, 15px, 90px) rotateY(-8deg) rotateX(4deg);
  }

  .device-mobile .device-screen {
    height: 175px;
  }

  .hero-badge {
    right: 0;
    bottom: 2px;
    padding: 8px 12px;
    font-size: 9px;
    transform: translateZ(105px);
  }
}

@media (max-width: 380px) {
  .hero-stage {
    transform: rotateY(-8deg) rotateX(5deg) scale(0.66);
  }

  .hero-visual {
    height: auto;
  }

  .hero-cutout {
    width: 154%;
    margin-left: -27%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-stage {
    animation: none !important;
  }

  .hero-visual:hover .hero-stage {
    transform: rotateY(-20deg) rotateX(12deg) rotateZ(2deg) !important;
  }

  .btn,
  .project,
  .service-row,
  .feature img,
  .sample-card,
  .location-card {
    transition: none !important;
  }
}
