/* ============================================================
   EVERHAVEN — Custom Additive Manufacturing
   Design system & global styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,200..900;1,9..144,200..900&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Palette — #051622 / #1BA098 / #DEB992 */
  --bg:          #051622;
  --bg-soft:     #081d2b;
  --paper:       #0c2234;
  --ink:         #DEB992;
  --ink-soft:    #C09870;
  --ink-mid:     #7A5C38;
  --ink-faint:   #8A6530;
  --line:        #0D3035;
  --line-faint:  #0A2830;
  --accent:      #1BA098;
  --accent-deep: #138078;

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --container: 1380px;
  --pad-x:     clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 11vw, 152px);
}

/* ------------------------------------------------------------ */
/* BASE                                                          */
/* ------------------------------------------------------------ */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14, "SOFT" 50;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* Grain overlay — disabled */
.grain {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------ */
/* CONTAINER + GRID                                              */
/* ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ------------------------------------------------------------ */
/* TYPOGRAPHY                                                    */
/* ------------------------------------------------------------ */
.display-xl {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(54px, 9.2vw, 136px);
  line-height: 0.94;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.display-xl em {
  font-style: italic;
  font-weight: 320;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.display-lg {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.display-lg em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 80, "SOFT" 0;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36, "SOFT" 0;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 18, "SOFT" 50;
}

.body {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 14, "SOFT" 50;
}

.body p + p { margin-top: 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 400;
  line-height: 1.6;
}
.meta strong { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------ */
/* HEADER / NAV                                                  */
/* ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 22, 34, 0.94);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  border-bottom: 1px solid rgba(30, 60, 92, 0.7);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-variation-settings: "opsz" 14, "SOFT" 0;
}
.logo svg { color: var(--ink); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}

.primary-nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }

.primary-nav .cta-link {
  color: var(--ink);
  padding-left: 18px;
}
.primary-nav .cta-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* ------------------------------------------------------------ */
/* BUTTONS / LINKS                                               */
/* ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  font-family: var(--serif);
  font-size: 16px;
  transition: transform 0.25s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover::after { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: all 0.25s ease;
}
.link-arrow::after {
  content: '→';
  font-family: var(--serif);
  font-size: 15px;
  transition: transform 0.25s ease;
}
.link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------ */
/* SECTION SCAFFOLDING                                           */
/* ------------------------------------------------------------ */
section { position: relative; }

.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line-faint);
  background: #F5F1EC;
  color: #051622;
  /* Scope CSS vars so children get light-theme values */
  --ink:        #051622;
  --ink-soft:   #2D4A62;
  --ink-mid:    #5A7A95;
  --ink-faint:  #94ADBF;
  --line:       #D8D0C4;
  --line-faint: #E6E0D6;
  --paper:      #EDE7DD;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F1EC;
  --accent:     #1BA098;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 88px);
}

.section-head .section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-top: 14px;
}

.section-head .section-num span {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 500;
}

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

/* ------------------------------------------------------------ */
/* HERO                                                          */
/* ------------------------------------------------------------ */
.hero {
  padding: clamp(72px, 11vh, 132px) 0 clamp(72px, 11vh, 132px);
  position: relative;
  border-bottom: 1px solid var(--line-faint);
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: clamp(56px, 8vw, 96px);
  gap: 32px;
  flex-wrap: wrap;
}
.hero-topline .meta { max-width: 32ch; }

.hero-headline {
  max-width: 16ch;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-headline .word:nth-child(1) { animation-delay: 0.05s; }
.hero-headline .word:nth-child(2) { animation-delay: 0.13s; }
.hero-headline .word:nth-child(3) { animation-delay: 0.21s; }
.hero-headline .word:nth-child(4) { animation-delay: 0.29s; }
.hero-headline .word:nth-child(5) { animation-delay: 0.37s; }
.hero-headline .word:nth-child(6) { animation-delay: 0.45s; }
.hero-headline .word:nth-child(7) { animation-delay: 0.53s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-body {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  opacity: 0;
  animation: fade 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
}
@keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; gap: 32px; }
}

.hero-sub { max-width: 50ch; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* Decorative crosshair markers */
.crosshair {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--line);
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.crosshair::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

/* ------------------------------------------------------------ */
/* PREMISE / STATEMENT BLOCK                                     */
/* ------------------------------------------------------------ */
.premise {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.premise .body { max-width: 56ch; }
.premise .body p + p { margin-top: 1.2em; }

@media (max-width: 820px) { .premise { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------ */
/* APPLICATIONS GRID                                             */
/* ------------------------------------------------------------ */
.applications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.app-card {
  background: var(--bg);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 380px;
  position: relative;
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.app-card:hover { background: var(--bg-soft); }

.app-card .app-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.app-card .app-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  text-transform: uppercase;
}
.app-card .app-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.app-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2vw, 32px) 0;
  overflow: hidden;
}
.app-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.app-card:hover .app-art img { transform: scale(1.03); }
.app-art svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  color: var(--ink-soft);
}
.app-card:hover .app-art svg { color: var(--ink); }

.app-card .title { font-variation-settings: "opsz" 36, "SOFT" 0; }
.app-card .body { font-size: 15px; line-height: 1.55; max-width: 38ch; }

.app-card .app-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.app-card .app-link::after { content: '→'; font-family: var(--serif); font-size: 13px; transition: transform 0.2s ease; }
.app-card:hover .app-link::after { transform: translateX(4px); color: var(--accent); }

@media (max-width: 820px) {
  .applications { grid-template-columns: 1fr; }
  .app-card { min-height: 320px; }
}

/* ------------------------------------------------------------ */
/* INDUSTRY STRIP                                                */
/* ------------------------------------------------------------ */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.industry-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 18px 28px 18px 0;
  margin-right: 28px;
  border-bottom: 1px solid var(--line-faint);
  flex: 1 1 auto;
  min-width: 260px;
  position: relative;
}
.industry-tag span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  margin-right: 14px;
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------ */
/* MATERIALS PREVIEW (homepage)                                  */
/* ------------------------------------------------------------ */
.materials-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.material-block {
  background: var(--bg);
  padding: clamp(32px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.material-block .mat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.material-block .mat-name {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1;
  letter-spacing: -0.018em;
  font-weight: 400;
  font-variation-settings: "opsz" 60, "SOFT" 0;
}

.material-block .mat-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-faint);
}
.mat-spec {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-faint);
}
.mat-spec:nth-child(odd) { border-right: 1px solid var(--line-faint); padding-right: 20px; }
.mat-spec:nth-child(even) { padding-left: 20px; }
.mat-spec .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: block;
  margin-bottom: 6px;
}
.mat-spec .v {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 0;
}
.mat-spec .v small {
  font-size: 12px;
  color: var(--ink-mid);
  font-weight: 400;
  margin-left: 4px;
}

@media (max-width: 820px) {
  .materials-preview { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ */
/* PROCESS                                                       */
/* ------------------------------------------------------------ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 28px;
}
.process-step .title { margin-bottom: 14px; }
.process-step .body { max-width: 36ch; font-size: 15.5px; }
.process-step .step-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  text-transform: uppercase;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}

@media (max-width: 820px) {
  .process-steps { grid-template-columns: 1fr; gap: 48px; }
  .process-steps::before { display: none; }
}

/* ------------------------------------------------------------ */
/* CLOSING CTA                                                   */
/* ------------------------------------------------------------ */
.closing {
  padding: clamp(96px, 14vw, 180px) 0;
  text-align: left;
  background: #030d14;
  color: #DEB992;
  position: relative;
}
.closing .container { display: grid; grid-template-columns: 1fr; gap: 56px; }
.closing .display-lg { color: #DEB992; max-width: 22ch; }
.closing .eyebrow { color: rgba(222, 185, 146, 0.6); }
.closing .eyebrow::before { background: var(--accent); }
.closing-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.closing-row .meta { color: rgba(222, 185, 146, 0.65); }
.closing-row .meta strong { color: #DEB992; }
.closing .btn {
  background: var(--accent);
  color: #051622;
  border-color: var(--accent);
}
.closing .btn:hover { background: #DEB992; border-color: #DEB992; color: #051622; }

/* ------------------------------------------------------------ */
/* FOOTER                                                        */
/* ------------------------------------------------------------ */
.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 36px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-faint);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.85;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-col p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.footer-col .meta { line-height: 1.85; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ */
/* PAGE VIDEO BACKGROUND                                         */
/* ------------------------------------------------------------ */
.page-video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.page-video-bg.is-active { opacity: 0.60; }
.page-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #060D16;
}
.page-video-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 22, 34, 0.62) 0%,
    rgba(5, 22, 34, 0.50) 50%,
    rgba(5, 22, 34, 0.62) 100%
  );
}

/* All sections use the unified white theme — see .section rule above.
   Video background shows through the hero only; content sections
   are fully opaque white providing clean, consistent readability. */

/* ------------------------------------------------------------ */
/* PAGE HERO (interior pages)                                    */
/* ------------------------------------------------------------ */
.page-hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line-faint);
}
.page-hero .topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(40px, 6vw, 72px);
  gap: 32px;
  flex-wrap: wrap;
}
.page-hero .headline { max-width: 18ch; }
.page-hero .lede {
  max-width: 56ch;
  margin-top: clamp(28px, 3vw, 40px);
}

/* ------------------------------------------------------------ */
/* CAPABILITIES PAGE                                             */
/* ------------------------------------------------------------ */
.cap-filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-faint);
}
.cap-filter {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 24px 18px 0;
  margin-right: 24px;
  color: var(--ink-mid);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  position: relative;
}
.cap-filter:hover { color: var(--ink); }
.cap-filter.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.cap-filter .count {
  color: var(--ink-faint);
  font-size: 10px;
  margin-left: 6px;
}
.cap-filter-bar { margin-bottom: clamp(40px, 5vw, 64px); }
.cap-filter-bar .cap-filters { margin-bottom: 0; }
.cap-filters--mat { margin-top: 0; }
.filter-row-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.cap-filter-mat {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 20px 14px 0;
  margin-right: 8px;
  color: var(--ink-mid);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}
.cap-filter-mat:hover { color: var(--ink); }
.cap-filter-mat.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}
.cap-card {
  background: var(--bg);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
  min-height: 420px;
}
.cap-card:hover { background: var(--bg-soft); }

.cap-thumb {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cap-thumb svg { width: 70%; max-width: 200px; color: var(--ink-soft); }
.cap-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap-thumb::before,
.cap-thumb::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--line);
}
.cap-thumb::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.cap-thumb::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.cap-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cap-meta-row .cap-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.cap-card .title {
  font-size: 19px;
  line-height: 1.2;
  font-variation-settings: "opsz" 24, "SOFT" 0;
}
.cap-card .body { font-size: 14.5px; line-height: 1.5; }

.cap-specs {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
  margin-top: auto;
}

@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ */
/* MATERIALS PAGE                                                */
/* ------------------------------------------------------------ */
.materials-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.materials-table th,
.materials-table td {
  padding: 22px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-faint);
}
.materials-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.materials-table td {
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--ink);
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
.materials-table td.prop {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.materials-table td .unit {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  margin-left: 6px;
  letter-spacing: 0.06em;
}

.mat-detail {
  border-bottom: 1px solid var(--line-faint);
}
.mat-detail:last-child { border-bottom: none; }

.mat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: clamp(36px, 4.5vw, 56px) 0;
  cursor: pointer;
  gap: 24px;
  color: inherit;
}
.mat-header-left { flex: 1; min-width: 0; }

.mat-toggle {
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, border-color 0.2s;
}
.mat-detail.is-open .mat-toggle { transform: rotate(45deg); }

.mat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mat-detail.is-open .mat-body { max-height: 2500px; }

.mat-body-inner {
  padding-bottom: clamp(36px, 4.5vw, 56px);
  max-width: 820px;
}

.mat-detail .mat-id-large {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 16px;
}
.mat-detail .display-lg { margin-bottom: 24px; }
.mat-detail ul {
  list-style: none;
  margin-top: 32px;
}
.mat-detail ul li {
  padding: 14px 0;
  border-top: 1px solid var(--line-faint);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.mat-detail ul li:last-child { border-bottom: 1px solid var(--line-faint); }
.mat-detail ul li::before {
  content: '+';
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}


/* ------------------------------------------------------------ */
/* PROCESS PAGE                                                  */
/* ------------------------------------------------------------ */
.process-detail {
  border-bottom: 1px solid var(--line-faint);
}
.process-detail:last-child { border-bottom: none; }

.proc-header {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
  padding: clamp(32px, 4vw, 52px) 0;
  cursor: pointer;
  color: inherit;
}
.proc-header .num {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  flex-shrink: 0;
  width: 56px;
}
.proc-header .headline {
  flex: 1;
  margin-bottom: 0;
  max-width: 24ch;
}
.proc-toggle {
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}
.process-detail.is-open .proc-toggle { transform: rotate(45deg); }

.proc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.process-detail.is-open .proc-body { max-height: 2000px; }

.proc-body-inner {
  padding-bottom: clamp(32px, 4vw, 52px);
}

.process-detail .body { max-width: 44ch; }
.process-detail .body p + p { margin-top: 1.1em; }

.process-callouts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.process-callout {
  border: 1px solid var(--line-faint);
  padding: 22px 24px;
  background: var(--bg-soft);
}
.process-callout h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
  font-weight: 500;
}
.process-callout p {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .process-callouts { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ */
/* ABOUT PAGE                                                    */
/* ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-grid .body p + p { margin-top: 1.2em; }

.equipment-list {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.equipment-list li {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-faint);
  align-items: baseline;
}
.equipment-list .e-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 0;
}
.equipment-list .e-desc {
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.equipment-list .e-spec {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-align: right;
}

.service-map {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line-faint);
}
.map-frame {
  border: 1px solid var(--line-faint);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  height: clamp(320px, 50vw, 520px);
  width: 100%;
}

/* Custom studio marker */
.map-pin {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #1BA098;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  position: absolute;
}
.map-pin-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid #1BA098;
  border-radius: 50%;
  opacity: 0.5;
  animation: map-pulse 2.4s ease-out infinite;
}
@keyframes map-pulse {
  0%   { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.counties {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
}
.county {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px 12px 0;
  margin-right: 22px;
  color: var(--ink-soft);
}
.county span { color: var(--ink-faint); margin-right: 10px; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .equipment-list li { grid-template-columns: 1fr; gap: 8px; }
  .equipment-list .e-spec { text-align: left; }
}

/* ------------------------------------------------------------ */
/* CONTACT PAGE                                                  */
/* ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(48px, 6vw, 96px);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line-faint);
}
.form-row.single { grid-template-columns: 1fr; }
.form-field {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field + .form-field { padding-left: 28px; border-left: 1px solid var(--line-faint); }
.form-field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
}
.form-field label .req { color: var(--accent); margin-left: 2px; }
.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  padding: 4px 0;
  font-variation-settings: "opsz" 18, "SOFT" 50;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}
.form-field textarea { min-height: 100px; }

.file-drop {
  margin-top: 4px;
  border: 1px dashed var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.file-drop:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.file-drop .drop-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.file-drop .drop-hint {
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-mid);
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 18px;
}

.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-block .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
  display: block;
}
.contact-block .value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "opsz" 24, "SOFT" 0;
  display: block;
}
.contact-block a.value { transition: color 0.2s ease; }
.contact-block a.value:hover { color: var(--accent); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-field + .form-field { padding-left: 0; border-left: 0; padding-top: 0; }
}

/* ------------------------------------------------------------ */
/* SCROLL REVEAL                                                 */
/* ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity;
}
.reveal-fade.is-visible { opacity: 1; }
.reveal.delay-1, .reveal-left.delay-1, .reveal-right.delay-1, .reveal-fade.delay-1 { transition-delay: 0.10s; }
.reveal.delay-2, .reveal-left.delay-2, .reveal-right.delay-2, .reveal-fade.delay-2 { transition-delay: 0.20s; }
.reveal.delay-3, .reveal-left.delay-3, .reveal-right.delay-3, .reveal-fade.delay-3 { transition-delay: 0.30s; }
.reveal.delay-4, .reveal-left.delay-4, .reveal-right.delay-4, .reveal-fade.delay-4 { transition-delay: 0.40s; }
.reveal.delay-5, .reveal-left.delay-5, .reveal-right.delay-5, .reveal-fade.delay-5 { transition-delay: 0.50s; }

/* ------------------------------------------------------------ */
/* UTILITIES                                                     */
/* ------------------------------------------------------------ */
.divider {
  height: 1px;
  background: var(--line-faint);
  width: 100%;
}
.divider--dotted {
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px);
}
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

.text-accent { color: var(--accent); }
.text-mid { color: var(--ink-mid); }
.text-soft { color: var(--ink-soft); }

.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-8 { margin-bottom: 64px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-8 { margin-top: 64px; }

/* Skip-to-content for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  z-index: 9999;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

/* ------------------------------------------------------------ */
/* MOBILE NAV TOGGLE                                             */
/* ------------------------------------------------------------ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    background: rgba(5, 22, 34, 0.97);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--pad-x);
    gap: 20px;
    z-index: 99;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .cta-link { padding-left: 0; }
  .primary-nav .cta-link::before { display: none; }
}

/* ------------------------------------------------------------ */
/* TESTIMONIALS                                                  */
/* ------------------------------------------------------------ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}
.testimonial {
  background: var(--bg);
  padding: clamp(28px, 3.2vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
  font-variation-settings: "opsz" 18, "SOFT" 60;
}
.testimonial .t-attribution {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
}
.testimonial .t-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 18, "SOFT" 0;
}
.testimonial .t-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 4px;
}
@media (max-width: 820px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ */
/* CLOSING SOCIAL LINKS                                          */
/* ------------------------------------------------------------ */
.closing-socials {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.closing-social-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.closing-social-link:hover { color: var(--paper); }

/* ------------------------------------------------------------ */
/* BACK-TO-TOP BUTTON                                            */
/* ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  pointer-events: none;
  z-index: 50;
  font-size: 18px;
  font-family: var(--serif);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent); }
