/* ---------- Design tokens ---------- */
:root {
  --navy-950: #0b1526;
  --navy-900: #101d33;
  --navy-800: #16294a;
  --navy-700: #1f3760;
  --gold-500: #c9973e;
  --gold-400: #dcae5c;
  --gold-100: #f4e8d2;
  --paper: #faf8f4;
  --paper-dim: #f1ede4;
  --ink: #1b2230;
  --ink-soft: #4a5064;
  --line: #e4ddd0;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

p { margin: 0 0 1em; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-400); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { border-color: #fff; }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-large { padding: 16px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 21, 38, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-mark { color: var(--gold-500); display: flex; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: var(--navy-950);
}
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}

.site-header.nav-open .mobile-nav { display: flex; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 130px;
}

.hero-bg {
  position: absolute;
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  color: rgba(201, 151, 62, 0.18);
  pointer-events: none;
}
.hero-mark { width: 100%; height: 100%; }

.hero-inner { position: relative; max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.3em;
}

.hero-lede {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin-bottom: 2.2em;
}

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

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.services h2, .about h2, .contact h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 640px;
}

/* ---------- Services ---------- */
.services { background: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 34px;
  position: relative;
}

.service-index {
  font-family: var(--font-head);
  color: var(--gold-500);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6em;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service-card p a {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 2px;
}
.service-card p a:hover { color: var(--gold-500); }

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 2px;
}
.doc-link:hover { color: var(--gold-500); }

@media (max-width: 780px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about { background: var(--paper-dim); }

.about-copy { max-width: 760px; }
.about-copy p { color: var(--ink-soft); font-size: 1.02rem; }
.about-copy::after { content: ""; display: table; clear: both; }

.about-subhead { margin-top: 0.2em; }

.about-portrait-figure {
  float: left;
  margin: 4px 28px 16px 0;
  width: 200px;
}

.about-portrait-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 560px) {
  .about-portrait-figure { float: none; width: 160px; margin: 0 0 20px; }
}

.about-copy p.signature {
  font-family: "Rock Salt", cursive;
  font-size: 2.1rem;
  color: var(--navy-900);
  margin: 28px 0 0;
  line-height: 1;
  text-align: right;
  transform: rotate(-2deg);
}

.about-copy p.signature-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 8px 0 0;
  text-align: right;
}

.about-divider {
  height: 1px;
  background: var(--line);
  margin: 56px 0 40px;
  max-width: 760px;
}

.name-story {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
  max-width: 960px;
}

.name-story-copy { max-width: none; }

.name-story-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}

.cutterhead-diagram { width: 100%; height: auto; display: block; }

.name-story-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .name-story { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: #fff;
  text-align: center;
}
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact h2 { color: #fff; margin: 0 auto 0.4em; }
.contact-lede { color: rgba(255,255,255,0.78); margin-bottom: 2em; }
.contact .section-eyebrow { color: var(--gold-400); }

.contact-email-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.copy-btn:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.copy-btn.is-copied { border-color: var(--gold-500); color: var(--gold-400); }

.copy-btn .icon-check { display: none; }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: block; }

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-950);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.copy-btn.is-copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .contact-email-row { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.55);
  padding: 26px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-inner a { text-decoration: none; color: rgba(255,255,255,0.7); }
.footer-inner a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
