/* ============================================================
   True Wood Design, Inc. — refined marine fabrication site
   Design system
   ============================================================ */

:root {
  color-scheme: dark;

  /* Palette */
  --ink:        #0c0e11;
  --ink-2:      #12151a;
  --ink-3:      #1a1e25;
  --line:       #2a2f38;
  --line-soft:  #20242c;

  --paper:      #f3efe7;
  --paper-dim:  #b9b3a6;
  --paper-faint:#8b867b;

  --brass:      #c4a06a;
  --brass-deep: #9c7b46;
  --brass-soft: rgba(196,160,106,0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.serif { font-family: var(--serif); }
.label { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--paper-faint); font-weight: 500; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); display: inline-block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: 0.005em; }
.h-display { font-size: clamp(2.9rem, 7vw, 6rem); }
.h-1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.h-2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.h-3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--paper-dim); }
.muted { color: var(--paper-dim); }
.faint { color: var(--paper-faint); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section-tight { padding-block: clamp(54px, 8vw, 96px); }

/* Header / nav */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10,12,15,0.82); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-soft); }
.nav { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .mark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.02em; color: var(--paper); }
.brand .mark b { color: var(--brass); font-weight: 500; }
.brand .sub { font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--paper-faint); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); position: relative; padding-block: 6px; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--brass); transition: width .35s var(--ease); }
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--line); color: var(--paper); padding: 11px 22px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; transition: border-color .3s, background .3s, color .3s; }
.nav-cta:hover { border-color: var(--brass); background: var(--brass-soft); color: var(--brass); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--paper); margin: 6px 0; transition: .3s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 16px 30px; border: 1px solid var(--brass); color: var(--ink); background: var(--brass); transition: background .35s var(--ease), color .35s, transform .2s; }
.btn:hover { background: transparent; color: var(--brass); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); background: transparent; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(56px, 9vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 70% 10%, rgba(196,160,106,0.10), transparent 55%), linear-gradient(180deg, #0a0c0f 0%, #0e1115 40%, #0c0e11 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(96deg, rgba(255,255,255,0.014) 0 2px, transparent 2px 7px), repeating-linear-gradient(92deg, rgba(0,0,0,0.18) 0 3px, transparent 3px 12px); mix-blend-mode: overlay; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; background: radial-gradient(140% 120% at 50% 0%, transparent 40%, rgba(0,0,0,0.55) 100%); }
.hero-inner { width: 100%; }
.hero h1 { margin: 22px 0 26px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero p.lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: clamp(46px, 7vw, 84px); padding-top: 30px; border-top: 1px solid var(--line-soft); }
.hero-meta .stat .n { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--paper); line-height: 1; }
.hero-meta .stat .t { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); margin-top: 10px; }
.scroll-cue { position: absolute; bottom: 26px; right: var(--gutter); z-index: 2; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-faint); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--brass), transparent); }

/* Differentiators */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.diff { background: var(--ink); padding: clamp(28px, 3.4vw, 46px) clamp(24px, 3vw, 40px); min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; transition: background .4s var(--ease); }
.diff:hover { background: var(--ink-2); }
.diff .num { font-family: var(--serif); font-size: 0.95rem; color: var(--brass); letter-spacing: 0.1em; }
.diff h3 { font-size: 1.5rem; margin: 26px 0 12px; }
.diff p { font-size: 0.95rem; color: var(--paper-dim); }

/* Section heading */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { max-width: 46ch; }
@media (max-width: 820px){ .sec-head { grid-template-columns: 1fr; gap: 20px; } }

/* Services rows */
.svc-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-soft); }
.svc-row:last-child { border-bottom: 1px solid var(--line-soft); }
.svc-row .svc-copy .label { display: block; margin-bottom: 18px; }
.svc-row h3 { margin-bottom: 18px; }
.svc-row ul.ticks { margin-top: 22px; columns: 2; column-gap: 28px; }
.svc-row ul.ticks li { font-size: 0.92rem; color: var(--paper-dim); padding-left: 20px; position: relative; margin-bottom: 9px; break-inside: avoid; }
.svc-row ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border: 1px solid var(--brass); transform: rotate(45deg); }
@media (max-width: 820px){ .svc-row { grid-template-columns: 1fr; } .svc-row ul.ticks { columns: 1; } }

/* Frame / placeholder */
.frame { position: relative; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-soft); aspect-ratio: 4/3; }
.frame.tall { aspect-ratio: 3/4; }
.frame.wide { aspect-ratio: 16/9; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.ph::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 30% 20%, rgba(196,160,106,0.08), transparent 60%), repeating-linear-gradient(115deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px), linear-gradient(160deg, #161a20, #0e1116); }
.frame.ph .ph-tag { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-faint); display: flex; align-items: center; gap: 9px; }
.frame.ph .ph-tag::before { content: ""; width: 16px; height: 1px; background: var(--brass); }
.frame .corner { position: absolute; width: 14px; height: 14px; border: 1px solid rgba(196,160,106,0.4); z-index: 2; }
.frame .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.frame .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.work-card { position: relative; display: block; }
.work-card .frame { transition: transform .6s var(--ease); }
.work-card:hover .frame { transform: scale(1.012); }
.work-card .cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; gap: 12px; }
.work-card .cap h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.work-card .cap .ct { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.work-card .cd { font-size: 0.9rem; color: var(--paper-faint); margin-top: 6px; }
@media (max-width: 920px){ .work-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .work-grid { grid-template-columns: 1fr; } }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-bar button { background: transparent; border: 1px solid var(--line); color: var(--paper-dim); padding: 10px 18px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; font-family: var(--sans); transition: .3s; }
.filter-bar button:hover { border-color: var(--brass); color: var(--paper); }
.filter-bar button.active { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.step { background: var(--ink); padding: clamp(26px,3vw,40px); }
.step .num { font-family: var(--serif); color: var(--brass); font-size: 2.2rem; line-height: 1; }
.step h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 18px 0 10px; }
.step p { font-size: 0.9rem; color: var(--paper-dim); }
@media (max-width: 880px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* Quote band */
.quote-band { border-block: 1px solid var(--line-soft); position: relative; }
.quote-band blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.28; max-width: 22ch; color: var(--paper); font-weight: 500; }
.quote-band blockquote em { color: var(--brass); font-style: italic; }
.quote-band .src { margin-top: 28px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-faint); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(160deg, #14181e, #0c0e11); border: 1px solid var(--line-soft); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 120% at 85% 10%, rgba(196,160,106,0.12), transparent 60%); }
.cta-inner { position: relative; padding: clamp(46px, 7vw, 90px) var(--gutter); text-align: center; }
.cta-inner h2 { max-width: 18ch; margin: 16px auto 22px; }
.cta-inner .lead { max-width: 52ch; margin-inline: auto; }
.cta-inner .hero-actions { justify-content: center; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-faint); }
.field input, .field select, .field textarea { background: var(--ink-2); border: 1px solid var(--line); color: var(--paper); padding: 14px 16px; font-family: var(--sans); font-size: 15px; transition: border-color .3s, background .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--ink-3); }
.field textarea { resize: vertical; min-height: 140px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(36px, 6vw, 80px); }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 34px; }
.contact-block .label { display: block; margin-bottom: 10px; }
.contact-block a, .contact-block p { font-size: 1.05rem; color: var(--paper); }
.contact-block a:hover { color: var(--brass); }

/* Journal */
.post-list { display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.post-row { background: var(--ink); display: grid; grid-template-columns: 160px 1fr auto; gap: 30px; align-items: center; padding: clamp(24px,3vw,38px) 4px; transition: background .35s; }
.post-row:hover { background: var(--ink-2); }
.post-row .date { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-faint); }
.post-row h3 { font-size: 1.5rem; }
.post-row .rd { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 720px){ .post-row { grid-template-columns: 1fr; gap: 10px; } .post-row .rd { display:none; } }
.article { max-width: 720px; margin-inline: auto; }
.article h2 { margin: 40px 0 16px; }
.article h3 { font-size: 1.5rem; margin: 32px 0 12px; }
.article p { color: var(--paper-dim); margin-bottom: 20px; }
.article p.lead { color: var(--paper); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); background: #0a0c0f; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(54px, 7vw, 88px); }
.footer-top .mark { font-family: var(--serif); font-size: 1.6rem; }
.footer-top .mark b { color: var(--brass); font-weight: 500; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.95rem; color: var(--paper-dim); margin-bottom: 11px; transition: color .3s; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 26px; border-top: 1px solid var(--line-soft); font-size: 12px; letter-spacing: 0.06em; color: var(--paper-faint); }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Page hero */
.page-hero { padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(40px, 6vw, 70px); position: relative; }
.page-hero::after { content:""; position:absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height:1px; background: var(--line-soft); }
.page-hero h1 { margin: 20px 0 22px; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }

.divider { height: 1px; background: var(--line-soft); border: 0; }
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 34px; } .mt-l { margin-top: 60px; }

@media (max-width: 940px){
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 360px); background: var(--ink-2); border-left: 1px solid var(--line-soft); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 0 40px; transform: translateX(100%); transition: transform .45s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: block; z-index: 110; }
  .nav-cta { display: none; }
}

/* ============================================================
   Logo seal in brand lockup
   ============================================================ */
.brand { flex-direction: row; align-items: center; gap: 14px; }
.brand .seal { width: 42px; height: 42px; flex: 0 0 auto; }
.brand .seal img { width: 100%; height: 100%; object-fit: contain; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }

/* Photo hero */
.hero.photo .hero-bg { background: #07090b; }
.hero.photo .hero-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero.photo .hero-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,12,0.55) 0%, rgba(8,10,12,0.32) 35%, rgba(8,10,12,0.9) 100%), radial-gradient(110% 80% at 75% 8%, rgba(196,160,106,0.10), transparent 55%); }
.hero.photo .hero-vignette { background: radial-gradient(140% 120% at 50% 0%, transparent 35%, rgba(0,0,0,0.5) 100%); }

/* Image-backed feature band */
.feature { position: relative; overflow: hidden; border: 1px solid var(--line-soft); }
.feature .feature-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.feature .feature-img::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(8,10,12,0.93) 0%, rgba(8,10,12,0.72) 45%, rgba(8,10,12,0.28) 100%); }
.feature .feature-inner { position: relative; padding: clamp(44px,7vw,96px) var(--gutter); max-width: 640px; }
@media (max-width: 640px){ .feature .feature-img::after { background: linear-gradient(180deg, rgba(8,10,12,0.55), rgba(8,10,12,0.93)); } }

/* Galleries (masonry) + lightbox */
.gallery { columns: 3 280px; column-gap: clamp(12px,1.4vw,20px); }
.gallery .g-item { break-inside: avoid; margin-bottom: clamp(12px,1.4vw,20px); position: relative; cursor: zoom-in; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-2); display:block; }
.gallery .g-item img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.04); }
.gallery .g-item .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .3s; background: linear-gradient(transparent, rgba(8,10,12,0.85)); }
.gallery .g-item:hover .g-cap { opacity: 1; }
.gallery-cat { margin-bottom: clamp(56px, 8vw, 96px); scroll-margin-top: 110px; }
.gallery-cat .gc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.gallery-cat .gc-head h3 { font-size: clamp(1.5rem,2.6vw,2.1rem); }
.gallery-cat .gc-head .gc-count { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); white-space:nowrap; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6,7,9,0.95); display: none; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(12,14,17,0.6); border: 1px solid var(--line); color: var(--paper); width: 52px; height: 52px; cursor: pointer; font-size: 22px; transition: .3s; display:flex;align-items:center;justify-content:center; }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { border-color: var(--brass); color: var(--brass); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px){ .lightbox .lb-nav { width: 44px; height: 44px; } }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(12px,1.5vw,20px); }
.team-grid .frame { aspect-ratio: 3/4; }
@media (max-width: 720px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
