@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --amber: #f2a93b;
  --amber-hover: #f7bf63;
  --amber-dark: #90500f;
  --ink: #2b2c2a;
  --muted: #555650;
  --charcoal: #25292b;
  --deep: #1d2021;
  --surface: #f4f0e9;
  --surface-soft: #fbf8f3;
  --line: #e6dfd4;
  --heading: "Barlow Semi Condensed", Bahnschrift, "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.6 Barlow, Arial, Helvetica, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid #1b5962; outline-offset: 3px; }
.hero :focus-visible, .page-hero :focus-visible, .featured-project :focus-visible, .contact-section :focus-visible, .site-footer :focus-visible { outline-color: var(--amber-hover); }
.contact-card :focus-visible { outline-color: #1b5962; }
section[id], article[id] { scroll-margin-top: 24px; }

.top-bar { background: var(--amber); color: var(--ink); }
.top-bar-inner { min-height: 34px; padding-block: 6px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.top-bar a:hover { text-decoration: underline; }
.site-header { position: relative; z-index: 20; height: 97px; background: var(--surface-soft); }
.site-header::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 45px; border-block: 1px solid var(--line); background: linear-gradient(var(--surface), var(--surface-soft) 50%, var(--surface)); }
.header-inner { height: 97px; position: relative; display: flex; align-items: flex-start; }
.logo-panel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 220px; width: 220px; height: 77px; margin-right: auto; background: linear-gradient(var(--surface-soft), var(--surface) 72%, var(--line)); box-shadow: 0 0 3px rgba(0,0,0,.26); transform: skew(25deg); }
.logo-panel .brand-mark, .logo-panel .brand-type { transform: skew(-25deg); }
.logo-panel .brand-mark { width: 47px; flex: 0 0 auto; }
.brand-type { display: flex; white-space: nowrap; font: 700 21px/1 "Trebuchet MS", Arial, sans-serif; letter-spacing: -.055em; }
.brand-type strong { font-weight: 700; }
.logo-panel .brand-type strong:first-child { color: var(--ink); }
.logo-panel .brand-type strong:last-child { color: #ac5b0e; }
.main-nav { position: relative; z-index: 2; margin-top: 27px; }
.main-nav ul { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; margin-right: 9px; padding-bottom: 26px; }
.main-nav a { position: relative; display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
.main-nav a:focus-visible { outline: none; }
.main-nav a:focus-visible span { text-decoration: underline 2px; text-underline-offset: 5px; }
.main-nav a span { position: relative; z-index: 0; display: block; padding: 0 18px; line-height: 44px; }
.main-nav a span::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: -6px; width: 100%; height: 51px; background: linear-gradient(var(--surface-soft), var(--surface) 72%, var(--line)); box-shadow: 0 0 3px rgba(0,0,0,.26); transform: skew(25deg); transition: height .25s ease-in, left .25s ease-in, background .25s ease-in; }
.main-nav li.selected a span::before, .main-nav li:hover a span::before, .main-nav li:focus-within a span::before { left: -6px; height: 77px; background: linear-gradient(var(--amber) 85%, #d58a27); box-shadow: 0 3px 3px -1px rgba(0,0,0,.26); }
.header-cta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 52px; height: 51px; margin-top: 25px; background: linear-gradient(var(--amber) 85%, #d58a27); color: var(--ink); font-size: 19px; transform: skew(25deg); }
.header-cta span { display: block; transform: skew(-25deg); }
.header-cta svg { display: block; width: 23px; height: 23px; }
.header-cta:hover { background: var(--amber-hover); }
.header-cta[aria-current="page"] { background: var(--amber-hover); box-shadow: 0 3px 3px -1px rgba(0,0,0,.26); }
.menu-toggle { display: none; }

.page-hero { overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 30%, #39403f 0, transparent 40%), var(--charcoal); }
.page-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 340px; padding-block: 70px; }
.page-hero-inner > div { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { margin: 0 0 20px; font: 700 clamp(48px, 5.5vw, 78px)/1.05 var(--heading); letter-spacing: -.012em; }
.page-hero-inner > div > p:last-child { max-width: 610px; margin: 0; color: #e0e2de; font-size: clamp(17px, 1.5vw, 20px); }
.page-hero-mark { flex: 0 0 auto; width: clamp(150px, 17vw, 240px); opacity: .16; user-select: none; }
.page-cta { background: var(--surface-soft); }
.page-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-cta h2 { margin: 0; font: 700 clamp(34px, 3.5vw, 50px)/1.12 var(--heading); letter-spacing: -.01em; }
.page-cta .eyebrow { margin-bottom: 10px; }
.inline-link { margin-left: 6px; border-bottom: 2px solid var(--amber); color: var(--ink); font-weight: 700; }
.inline-link:hover { color: var(--amber-dark); }
.error-code { flex: 0 0 auto; color: rgba(255,255,255,.1); font: 700 clamp(110px, 14vw, 200px)/1 var(--heading); letter-spacing: -.02em; user-select: none; }
.error-code span { color: rgba(242,169,59,.35); }
.notfound-section { background: #fff; }
.notfound-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 32px; padding: 0; list-style: none; }
.notfound-links a { display: block; height: 100%; padding: 26px 26px 28px; border: 1px solid var(--line); border-top: 4px solid var(--amber); background: var(--surface-soft); transition: transform .2s, border-color .2s; }
.notfound-links a:hover { transform: translateY(-3px); border-color: var(--amber); }
.notfound-links h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font: 700 23px/1.2 var(--heading); }
.notfound-links h3 span { color: var(--amber-dark); font-size: 18px; }
.notfound-links p { margin: 0; color: var(--muted); font-size: 14px; }

.hero { overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 40%, #39403f 0, transparent 40%), var(--charcoal); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: 64px; min-height: 590px; padding-block: 68px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--amber-dark); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: var(--amber-hover); }
.hero h1 { max-width: 690px; margin: 0 0 22px; font: 700 clamp(52px, 5vw, 79px)/1.04 var(--heading); letter-spacing: -.012em; }
.hero h1 span { color: var(--amber); }
.hero-subtitle { max-width: 560px; margin: 0; color: #e0e2de; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 50px; padding: 0 22px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--amber); color: var(--ink); }
.button-primary:hover { background: var(--amber-hover); }
.button-ghost { border: 1px solid #a5aaa5; color: #fff; }
.button-ghost:hover { background: #3b4242; }

.hero-visual { --preview-accent: var(--amber); --preview-wash: #dfe7e0; --preview-shape: #b4c7b6; --preview-shape-deep: #a4b6aa; --preview-glow: rgba(242,169,59,.16); min-width: 0; min-height: 445px; position: relative; display: flex; align-items: center; }
.hero-visual[data-theme="sage"] { --preview-accent: #79ab8d; --preview-wash: #e1eee5; --preview-shape: #9ec5a9; --preview-shape-deep: #79a987; --preview-glow: rgba(121,171,141,.2); }
.hero-visual[data-theme="blue"] { --preview-accent: #6aaacb; --preview-wash: #e1edf2; --preview-shape: #96bfd1; --preview-shape-deep: #6f9db6; --preview-glow: rgba(106,170,203,.2); }
.hero-visual::before { content: ""; position: absolute; width: 350px; height: 350px; right: -38px; top: 0; border-radius: 50%; background: var(--preview-glow); filter: blur(50px); transition: background .3s ease; }
.preview-window { position: relative; z-index: 1; width: min(100%, 575px); margin: 0 32px 12px auto; overflow: hidden; border: 9px solid #171b1c; border-radius: 16px; background: #fff; box-shadow: 0 28px 55px rgba(0,0,0,.32); transition: transform .3s ease, box-shadow .3s ease; }
.hero-visual:hover .preview-window { transform: translateY(-7px) rotate(-1deg); box-shadow: 0 36px 60px rgba(0,0,0,.38); }
.preview-toolbar { height: 34px; display: flex; align-items: center; gap: 16px; padding-inline: 14px; background: #ede9e1; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b6b0a7; }
.preview-address { width: 32%; height: 6px; border-radius: 6px; background: #d5cfc5; }
.preview-content { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 20px; min-height: 300px; padding: 36px; background: var(--surface-soft); }
.preview-content-copy { display: flex; flex-direction: column; align-items: flex-start; }
.preview-kicker { width: 52%; height: 7px; margin-bottom: 17px; background: var(--preview-accent); transition: background .3s ease; }
.preview-heading { width: 96%; height: 20px; margin-bottom: 8px; border-radius: 3px; background: var(--charcoal); }
.preview-heading.short { width: 70%; margin-bottom: 18px; }
.preview-line { width: 92%; height: 7px; margin-bottom: 7px; border-radius: 4px; background: #c9cac5; }
.preview-line.narrow { width: 74%; }
.preview-button { width: 52%; height: 26px; margin-top: 18px; background: var(--preview-accent); transition: background .3s ease; }
.preview-graphic { position: relative; height: 225px; overflow: hidden; border-radius: 8px; background: var(--preview-wash); transition: background .3s ease; }
.preview-graphic::before { content: ""; position: absolute; width: 175px; height: 175px; right: -34px; top: -34px; border-radius: 50%; background: var(--preview-shape); transition: background .3s ease; }
.preview-graphic::after { content: ""; position: absolute; width: 125px; height: 125px; left: -20px; bottom: -42px; border-radius: 50%; background: var(--preview-shape-deep); transition: background .3s ease; }
.preview-graphic span { position: absolute; z-index: 1; left: 21%; width: 58%; height: 14px; border-radius: 10px; background: #fbf8f3; transform: rotate(-25deg); }
.preview-graphic span:nth-child(1) { top: 36%; }
.preview-graphic span:nth-child(2) { top: 49%; width: 72%; }
.preview-graphic span:nth-child(3) { top: 62%; width: 44%; }
.preview-bottom { display: flex; gap: 12px; padding: 16px 36px; }
.preview-bottom span { height: 24px; flex: 1; border-radius: 3px; background: #ecece6; }
.preview-bottom span:nth-child(2) { background: var(--preview-wash); transition: background .3s ease; }
.preview-phone { position: absolute; z-index: 2; width: 132px; height: 254px; right: -6px; bottom: 18px; padding: 22px 12px 12px; border: 8px solid #151819; border-radius: 25px; background: var(--surface-soft); box-shadow: 0 20px 32px rgba(0,0,0,.28); transition: transform .3s ease; }
.hero-visual:hover .preview-phone { transform: translate(3px,-4px) rotate(2deg); }
.phone-notch { position: absolute; top: 4px; left: 39px; width: 38px; height: 5px; border-radius: 5px; background: #525657; }
.phone-block { height: 82px; margin-bottom: 15px; background: var(--preview-shape); transition: background .3s ease; }
.phone-line { height: 7px; margin-bottom: 6px; border-radius: 5px; background: #9b9d95; }
.phone-line.short { width: 70%; }
.phone-tile { height: 24px; margin-top: 11px; background: var(--preview-accent); transition: background .3s ease; }
.phone-tile.pale { margin-top: 7px; background: #ece2cf; }
.preview-controls { position: absolute; z-index: 3; left: 0; bottom: -17px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--deep); border: 1px solid #5c6260; box-shadow: 0 9px 20px rgba(0,0,0,.18); }
.preview-controls > span { margin-right: 4px; color: #e0e2de; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-swatch { width: 21px; height: 21px; padding: 0; border: 2px solid var(--deep); border-radius: 50%; box-shadow: 0 0 0 1px #9ca29c; }
.preview-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; }
.preview-swatch:focus-visible { outline-color: #fff; }
.swatch-amber { background: var(--amber); }
.swatch-sage { background: #79ab8d; }
.swatch-blue { background: #6aaacb; }

.section { padding-block: 84px; }
.section-heading { max-width: 710px; margin-bottom: 38px; }
.section-heading h2, .about-section h2, .contact-section h2 { margin: 0 0 15px; font: 700 clamp(36px, 3.5vw, 52px)/1.12 var(--heading); letter-spacing: -.01em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.portfolio-section { background: var(--surface); }
.featured-project { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 550px; overflow: hidden; background: #303a30; color: #f7f5ee; }
.featured-project::before { content: ""; position: absolute; width: 410px; height: 410px; right: -95px; top: -120px; border: 1px solid rgba(246,238,221,.18); border-radius: 50%; }
.featured-copy { position: relative; z-index: 2; align-self: center; padding: 58px 0 58px 64px; }
.featured-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; color: #f5b788; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.featured-brand img { width: 52px; height: 52px; border-radius: 50%; background: #f4f1e7; }
.featured-project h3 { margin: 0 0 10px; font: 700 clamp(52px, 5vw, 78px)/1 var(--heading); letter-spacing: -.015em; }
.featured-lead { margin: 0 0 16px; color: #f5b788; font: 700 clamp(23px, 2vw, 29px)/1.25 var(--heading); }
.featured-description { max-width: 480px; margin: 0 0 23px; color: #e5e9df; font-size: 16px; line-height: 1.7; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 31px; padding: 0; list-style: none; }
.featured-tags li { padding: 7px 11px; border: 1px solid #798675; color: #f1f3ed; font-size: 11px; font-weight: 700; }
.featured-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 0 19px; background: #f5b788; color: #263026; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.featured-link:hover { background: #ffd2ad; }
.featured-media { position: relative; min-width: 0; min-height: 550px; background: radial-gradient(circle at 45% 55%, #596d53 0, transparent 52%); }
.featured-phone { position: absolute; width: min(235px, 42%); aspect-ratio: 9 / 17; overflow: hidden; border: 8px solid #171b19; border-radius: 27px; background: #f4f1e7; box-shadow: 0 24px 42px rgba(0,0,0,.35); transition: transform .3s ease; }
.featured-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.featured-phone-back { z-index: 1; left: 17%; top: 78px; transform: rotate(-8deg); }
.featured-phone-front { z-index: 2; right: 17%; top: 47px; transform: rotate(7deg); }
.featured-project:hover .featured-phone-back, .featured-project:focus-within .featured-phone-back { transform: rotate(-5deg) translateY(-6px); }
.featured-project:hover .featured-phone-front, .featured-project:focus-within .featured-phone-front { transform: rotate(4deg) translateY(-10px); }
.projects-section { background: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface-soft); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--charcoal); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-body { flex: 1; padding: 24px 28px 30px; border-top: 4px solid var(--amber); }
.project-type { margin: 0 0 8px; color: var(--amber-dark); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 10px; font: 700 27px/1.15 var(--heading); }
.project-body > p:not(.project-type) { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.project-tags li { padding: 5px 10px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; }

/* CSS stand-ins for project screenshots: replace the .project-illustration element with an <img> inside .project-media. */
.project-illustration { background: radial-gradient(circle at 78% 22%, #3b4342 0, transparent 55%), var(--charcoal); }
.project-illustration::before { content: ""; position: absolute; inset: 14% 10% 0; border-radius: 10px 10px 0 0; background: var(--surface-soft); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.project-illustration::after { content: ""; position: absolute; top: 14%; left: 10%; right: 10%; height: 9%; border-radius: 10px 10px 0 0; background: #ede9e1; }
.project-illustration > * { position: absolute; z-index: 1; }
.illustration-pattern span { left: 22%; top: 34%; width: 38%; height: 58%; border: 2px dashed #c2703d; border-radius: 42% 58% 18% 26% / 30% 34% 18% 22%; }
.illustration-pattern span:nth-child(2) { left: 26%; top: 40%; width: 30%; height: 48%; border-color: #79ab8d; }
.illustration-pattern span:nth-child(3) { left: 30%; top: 46%; width: 22%; height: 38%; border-color: #6aaacb; }
.illustration-pattern i { right: 17%; bottom: 14%; width: 20%; height: 10%; background: var(--amber); }
.illustration-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 5%; padding: 29% 17% 0; }
.illustration-catalog span { position: relative; aspect-ratio: 4 / 3; border-top: 5px solid #79ab8d; background: #e6dfd4; }
.illustration-catalog span:nth-child(2n) { border-top-color: var(--amber); background: #ece6dc; }
.illustration-catalog span:nth-child(3n) { border-top-color: #6aaacb; }
.illustration-thermo::before { background: #1b1e20; }
.illustration-thermo::after { background: #2b2f31; }
.illustration-thermo { display: flex; align-items: flex-end; gap: 5%; padding: 0 18% 9%; }
.illustration-thermo span { position: relative; flex: 1; height: 40%; background: linear-gradient(#e2574c, #f2a93b); }
.illustration-thermo span:nth-child(2) { height: 58%; }
.illustration-thermo span:nth-child(3) { height: 32%; }
.illustration-thermo span:nth-child(4) { height: 66%; }
.illustration-thermo span:nth-child(5) { height: 48%; }
.illustration-thermo i { top: 30%; left: 18%; width: 26%; height: 8%; background: #e2574c; }

.lab-section { background: var(--surface); }
.lab-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.lab-list li { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 28px; border: 1px solid var(--line); border-top: 4px solid #a5aaa5; background: #fff; }
.lab-list h3 { margin: 0 0 8px; font: 700 24px/1.2 var(--heading); }
.lab-list p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.lab-list .lab-credit { margin-bottom: 22px; font-size: 13px; }
.lab-list .text-link, .lab-note { margin-top: auto; }
.lab-note { margin-bottom: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.archive-section { background: #fff; }
.archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.archive-grid figure { margin: 0; }
.archive-grid img { width: 100%; aspect-ratio: 692 / 600; padding: 14px; object-fit: contain; background: var(--surface-soft); border: 1px solid var(--line); }
.archive-grid figcaption { padding-top: 14px; }
.archive-grid strong { display: block; font: 700 19px/1.25 var(--heading); }
.archive-grid figcaption span { color: var(--muted); font-size: 13px; }

.service h3, .process-step h3 { margin: 8px 0; font: 700 23px/1.2 var(--heading); }
.service p, .process-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.services-section { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { position: relative; min-height: 210px; padding: 30px; border: 1px solid var(--line); border-top: 4px solid var(--amber); background: var(--surface-soft); }
.service-number { color: var(--amber-dark); font: 700 13px var(--heading); letter-spacing: .12em; }
.service h3 { margin-top: 24px; }
.service-icon { position: absolute; top: 26px; right: 26px; width: 30px; height: 30px; color: var(--amber-dark); }
.services-note { margin: 24px 0 0; color: var(--muted); font-size: 14px; }

.process-section { background: var(--surface-soft); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.process-step { position: relative; padding: 25px 24px 0 0; border-top: 1px solid var(--line); }
.process-step > span { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; margin-bottom: 18px; background: var(--amber); color: var(--ink); font: 700 14px var(--heading); }
.process-step h3 { margin-bottom: 10px; }

.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.about-section h2 { max-width: 490px; margin-bottom: 0; }
.about-copy { padding-top: 29px; }
.about-copy p { max-width: 650px; margin-bottom: 26px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 5px; border-bottom: 2px solid var(--amber); color: var(--ink); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.text-link:hover { color: var(--amber-dark); }

.contact-section { color: #fff; background: radial-gradient(circle at 20% 15%, #3c4441 0, transparent 42%), var(--charcoal); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.contact-section h2 { max-width: 590px; }
.contact-grid > div:first-child > p:last-child { max-width: 590px; margin-bottom: 0; color: #e0e2de; font-size: 18px; line-height: 1.7; }
.contact-card { padding: 34px; background: var(--surface-soft); color: var(--ink); }
.contact-card-label { margin-bottom: 9px; color: var(--amber-dark); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-email { display: block; width: fit-content; margin-bottom: 24px; font: 700 clamp(22px, 2.2vw, 31px)/1.2 var(--heading); overflow-wrap: anywhere; }
.contact-email:hover { color: var(--amber-dark); }

.site-footer { background: var(--deep); color: #c6c7c2; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-block: 50px 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; color: #fff; }
.footer-brand .brand-mark { width: 48px; }
.footer-brand .brand-type { font-size: 22px; }
.footer-brand .brand-type strong:last-child { color: var(--amber); }
.footer-inner p { max-width: 440px; margin: 0; font-size: 13px; }
.footer-inner nav { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-content: start; gap: 14px 24px; padding-top: 10px; font-size: 13px; font-weight: 700; }
.footer-inner nav a:hover, .footer-bottom a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px 25px; border-top: 1px solid #454b4a; font-size: 12px; }

@media (max-width: 1100px) {
  .site-header { height: 74px; }
  .site-header::before { top: 0; height: 74px; }
  .header-inner { height: 74px; align-items: center; }
  .logo-panel { flex-basis: 200px; width: 200px; height: 66px; }
  .logo-panel .brand-mark { width: 44px; }
  .logo-panel .brand-type { font-size: 19px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 2; width: 44px; height: 44px; padding: 10px; border: 0; background: var(--amber); }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); }
  .header-cta { order: 3; width: 44px; height: 44px; margin: 0 0 0 12px; transform: none; }
  .header-cta span { transform: none; }
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; margin: 0; padding: 13px 32px 24px; background: var(--surface-soft); box-shadow: 0 18px 24px rgba(0,0,0,.16); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { margin: 0; padding: 0; }
  .main-nav a { font-size: 14px; white-space: normal; }
  .main-nav a:focus-visible { outline: 3px solid #1b5962; outline-offset: -3px; }
  .main-nav a:focus-visible span { text-decoration: none; }
  .main-nav a span { padding: 11px 12px; line-height: 1.5; border-bottom: 1px solid var(--line); }
  .main-nav a span::before { display: none; }
  .main-nav li.selected a span, .main-nav li:hover a span, .main-nav li:focus-within a span { background: var(--amber); color: var(--ink); }
  html:not(.js) .site-header, html:not(.js) .header-inner { height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; min-height: 74px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .main-nav { display: block; position: static; order: 4; flex-basis: 100%; padding: 4px 0 12px; box-shadow: none; }
  html:not(.js) .main-nav ul { display: flex; flex-wrap: wrap; }
  html:not(.js) .main-nav a span { border-bottom: 0; }
}

@media (max-width: 1050px) {
  .hero-inner { gap: 34px; }
  .hero h1 { font-size: clamp(48px, 5vw, 64px); }
  .preview-content { padding: 24px; }
  .preview-bottom { padding-inline: 24px; }
  .featured-copy { padding-left: 42px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 70px 82px; }
  .hero-copy { max-width: 730px; }
  .hero h1 { font-size: clamp(52px, 8vw, 74px); }
  .hero-visual { width: min(650px, 100%); margin-inline: auto; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-copy { padding: 48px 48px 0; }
  .featured-media { min-height: 500px; }
  .featured-phone { width: min(235px, 35%); }
  .featured-phone-back { left: 22%; top: 30px; }
  .featured-phone-front { right: 22%; top: 10px; }
  .featured-project::before { top: auto; bottom: -150px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notfound-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-list { grid-template-columns: 1fr; }
  .services-grid .service:last-child { grid-column: 1 / -1; min-height: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-copy { padding-top: 0; }
}

@media (max-width: 700px) {
  .page-hero-inner { min-height: 300px; padding-block: 58px; }
  .page-hero-mark, .error-code { display: none; }
  .page-cta-inner { align-items: flex-start; flex-direction: column; }
  .top-bar-inner { justify-content: center; }
  .top-bar a { display: none; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 64px; }
  .services-grid, .process-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { max-width: 520px; }
  .projects-grid { grid-template-columns: 1fr; max-width: 560px; }
  .archive-grid { gap: 18px; }
  .featured-copy { padding: 42px 30px 0; }
  .featured-media { min-height: 420px; }
  .featured-phone { width: min(200px, 40%); }
  .featured-phone-back { left: 14%; }
  .featured-phone-front { right: 14%; }
  .about-grid, .contact-grid { gap: 25px; }
  .process-grid { gap: 22px; }
  .process-step { padding-top: 20px; }
  .footer-inner { display: block; }
  .footer-inner nav { margin-top: 25px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .top-bar-extra { display: none; }
  .logo-panel { flex-basis: 177px; width: 177px; gap: 6px; }
  .logo-panel .brand-mark { width: 39px; }
  .logo-panel .brand-type { font-size: 16px; }
  .main-nav { padding-inline: 18px; }
  .hero-inner { padding-block: 59px 69px; }
  .hero h1 { font-size: clamp(43px, 11.5vw, 57px); }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .notfound-links { grid-template-columns: 1fr; }
  .hero-visual { min-height: 290px; }
  .hero-visual::before { width: 210px; height: 210px; }
  .preview-window { margin-right: 16px; border-width: 6px; }
  .preview-toolbar { height: 23px; }
  .preview-content { min-height: 195px; gap: 10px; padding: 18px; }
  .preview-heading { height: 12px; margin-bottom: 5px; }
  .preview-heading.short { margin-bottom: 10px; }
  .preview-line { height: 5px; }
  .preview-graphic { height: 145px; }
  .preview-bottom { gap: 6px; padding: 10px 18px; }
  .preview-bottom span { height: 15px; }
  .preview-phone { width: 85px; height: 165px; right: -8px; bottom: 18px; padding: 16px 7px 7px; border-width: 5px; border-radius: 16px; }
  .phone-notch { left: 24px; width: 25px; top: 3px; height: 3px; }
  .phone-block { height: 52px; margin-bottom: 9px; }
  .phone-line { height: 4px; margin-bottom: 4px; }
  .phone-tile { height: 15px; margin-top: 6px; }
  .phone-tile.pale { margin-top: 4px; }
  .preview-controls { bottom: -7px; }
  .featured-copy { padding: 38px 23px 0; }
  .featured-project h3 { font-size: 50px; }
  .featured-media { min-height: 350px; }
  .featured-phone { width: min(162px, 43%); border-width: 6px; border-radius: 20px; }
  .featured-phone-back { left: 10%; top: 29px; }
  .featured-phone-front { right: 10%; top: 9px; }
  .contact-card { padding: 27px 23px; }
  .footer-bottom { display: block; }
  .footer-bottom span, .footer-bottom a { display: block; }
  .footer-bottom a { width: fit-content; margin-top: 9px; }
}

@media (max-width: 340px) {
  .logo-panel { flex-basis: 145px; width: 145px; gap: 5px; }
  .logo-panel .brand-mark { width: 32px; }
  .logo-panel .brand-type { font-size: 13px; }
  .header-cta { margin-left: 8px; }
}

@media (forced-colors: active) {
  .menu-toggle, .header-cta { border: 1px solid ButtonText; }
  .menu-toggle span { background: ButtonText; }
  .main-nav li.selected a span { text-decoration: underline 2px; text-underline-offset: 5px; }
  .preview-swatch { forced-color-adjust: none; }
  .preview-swatch[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .notfound-links a, .main-nav a span::before, .hero-visual::before, .preview-window, .preview-phone, .featured-phone, .preview-kicker, .preview-button, .preview-graphic, .preview-graphic::before, .preview-graphic::after, .preview-bottom span, .phone-block, .phone-tile { transition: none; }
  .button:hover, .notfound-links a:hover, .hero-visual:hover .preview-window, .hero-visual:hover .preview-phone { transform: none; }
  .featured-project:hover .featured-phone-back, .featured-project:focus-within .featured-phone-back { transform: rotate(-8deg); }
  .featured-project:hover .featured-phone-front, .featured-project:focus-within .featured-phone-front { transform: rotate(7deg); }
}
