/*
Theme Name: Ó Cuinn Family
Theme URI: https://ocuinn.ie/
Author: Ó Cuinn Family
Author URI: https://ocuinn.ie/
Description: Premium, responsive WordPress theme for the Ó Cuinn family website, with a refined heritage landing page, family stories, and companion plugin integration.
Version: 7.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ocuinn-family
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog, one-column, two-columns
*/

:root {
  --ink: #1b211e;
  --ink-soft: #48524d;
  --forest: #123d31;
  --forest-deep: #082a22;
  --forest-light: #215846;
  --cream: #f3ecde;
  --paper: #fbf8f1;
  --paper-bright: #fffdf8;
  --red: #8b2527;
  --red-deep: #68191d;
  --gold: #b28a35;
  --gold-soft: #d6bd78;
  --gold-pale: #eee1bc;
  --white: #ffffff;
  --muted: #68726c;
  --line: rgba(18, 61, 49, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 14px 35px rgba(20, 32, 27, 0.08);
  --shadow-lg: 0 35px 100px rgba(20, 32, 27, 0.16);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1210px;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--gold-soft); color: var(--forest-deep); }

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

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 16px;
  border-radius: 9px;
  background: var(--paper-bright);
  color: var(--forest-deep);
  box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--forest-deep);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled,
body:not(.home) .site-header {
  background: rgba(251, 248, 241, .94);
  border-color: var(--line);
  box-shadow: 0 8px 35px rgba(8, 42, 34, .07);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 750;
}
.brand-mark {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 138, 53, .65);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  color: var(--red);
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 0 4px rgba(178, 138, 53, .08);
}
.brand-wordmark {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: .015em;
}
.brand-custom-logo { width: 46px; height: 46px; display: inline-flex; }
.brand-custom-logo img { width: 46px; height: 46px; object-fit: contain; }
.site-nav .menu,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .055em;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transition: right .22s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }
.site-nav li:last-child > a,
.site-nav a.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(18, 61, 49, .25);
  border-radius: 999px;
}
.site-nav li:last-child > a:hover,
.site-nav a.nav-cta:hover {
  background: var(--forest);
  color: #fff;
}
.site-nav li:last-child > a::after { display: none; }
.menu-button { display: none; }

/* Shared typography */
.section { position: relative; padding: clamp(88px, 10vw, 142px) 0; }
.kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow span { width: 48px; height: 1px; background: var(--gold); }
.kicker-light { color: var(--gold-soft); }
.section-heading h2,
.name-content h2,
.crest-copy h2,
.legacy-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.045em;
}
.lead {
  margin-top: 0;
  color: #34423b;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.86rem);
  line-height: 1.45;
}
.centered { max-width: 730px; margin: 0 auto 60px; text-align: center; }
.centered p:last-child { color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px 0 54px;
  background:
    radial-gradient(circle at 78% 18%, rgba(178, 138, 53, .17), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 48%),
    var(--paper);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image: radial-gradient(rgba(18, 61, 49, .14) .5px, transparent .5px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-arc {
  position: absolute;
  border: 1px solid rgba(178, 138, 53, .2);
  border-radius: 50%;
  pointer-events: none;
}
.hero-arc-one { width: 62vw; aspect-ratio: 1; left: -34vw; top: -32vw; }
.hero-arc-two { width: 44vw; aspect-ratio: 1; right: -18vw; bottom: -26vw; }
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 260px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(410px, .82fr);
  align-items: center;
  gap: clamp(58px, 8vw, 112px);
}
.hero-copy { max-width: 690px; }
.hero h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(5.1rem, 10vw, 9.25rem);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.075em;
}
.hero-subtitle {
  margin: 22px 0 20px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.72rem, 3vw, 2.65rem);
  font-style: italic;
  line-height: 1.1;
}
.hero-intro {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}
.hero-intro p { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 790;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 13px 30px rgba(18, 61, 49, .22);
}
.button-primary:hover { background: var(--forest-deep); box-shadow: 0 18px 38px rgba(18, 61, 49, .25); }
.button-ghost { border-color: rgba(18, 61, 49, .28); background: rgba(255, 255, 255, .35); }
.button-ghost:hover { background: var(--paper-bright); }
.hero-signature { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.signature-rule { width: 44px; height: 1px; background: rgba(178, 138, 53, .72); }
.hero-signature p { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

.crest-stage { position: relative; width: min(100%, 470px); justify-self: end; }
.crest-halo {
  position: absolute;
  inset: 5% -12% 1%;
  border: 1px solid rgba(178, 138, 53, .3);
  border-radius: 48% 48% 34px 34px;
  transform: rotate(3deg);
}
.crest-card {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 138, 53, .33);
  border-radius: 230px 230px 28px 28px;
  padding: 28px 28px 20px;
  background: rgba(255, 253, 248, .88);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(9px);
}
.crest-image-wrap {
  overflow: hidden;
  border-radius: 190px 190px 15px 15px;
  background: #fff;
}
.crest-card img {
  width: 100%;
  aspect-ratio: 880 / 1303;
  object-fit: contain;
  filter: saturate(.98) contrast(1.02);
}
.crest-card figcaption {
  display: grid;
  gap: 3px;
  padding-top: 17px;
  text-align: center;
  border-top: 1px solid rgba(18, 61, 49, .12);
}
.crest-card figcaption span { color: var(--forest-deep); font-family: var(--serif); font-size: 1.2rem; }
.crest-card figcaption small { color: var(--muted); font-size: .68rem; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.identity-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.identity-strip > div { padding: 20px 28px; border-right: 1px solid var(--line); }
.identity-strip > div:last-child { border-right: 0; }
.identity-strip span { display: block; color: var(--muted); font-size: .67rem; font-weight: 790; letter-spacing: .16em; text-transform: uppercase; }
.identity-strip strong { display: block; margin-top: 2px; color: var(--forest-deep); font-family: var(--serif); font-size: 1.28rem; font-weight: 500; }

/* Story and journey */
.story-section { background: var(--cream); }
.section-intro-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(46px, 9vw, 120px);
}
.story-copy { padding-top: 38px; }
.story-copy .lead p { margin: 0; }
.story-copy > p:last-child { color: var(--muted); }
.journey-wrap { margin-top: clamp(50px, 7vw, 90px); }
.journey-card {
  display: grid;
  grid-template-columns: 1fr minmax(180px, .7fr) 1fr;
  align-items: center;
  gap: 36px;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid rgba(18, 61, 49, .13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}
.journey-place { position: relative; padding-left: 48px; }
.journey-place-right { padding: 0 48px 0 0; text-align: right; }
.location-number {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: .83rem;
}
.journey-place-right .location-number { left: auto; right: 0; }
.journey-place p { margin: 0; color: var(--red); font-size: .68rem; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.journey-place-right p { color: var(--forest); }
.journey-place h3 { margin: 8px 0 2px; color: var(--forest-deep); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 500; }
.journey-place small { color: var(--muted); }
.journey-line { position: relative; display: grid; place-items: center; }
.line-track { width: 100%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.line-knot { position: absolute; width: 42px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--cream); color: var(--gold); }

/* Name */
.name-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(178, 138, 53, .13), transparent 28%),
    var(--forest-deep);
  color: rgba(255, 255, 255, .72);
}
.name-watermark {
  position: absolute;
  right: -3vw;
  bottom: -26vw;
  color: rgba(255, 255, 255, .022);
  font-family: var(--serif);
  font-size: 74vw;
  line-height: 1;
  pointer-events: none;
}
.name-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(55px, 9vw, 125px); }
.name-monogram {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 189, 120, .27);
  border-radius: 50% 50% 30px 30px;
  background: radial-gradient(circle, rgba(178, 138, 53, .11), transparent 62%);
  color: var(--gold-soft);
  font-family: var(--serif);
}
.name-monogram > span { font-size: clamp(5rem, 10vw, 9rem); line-height: .8; }
.name-monogram i { width: 38%; height: 1px; margin: 24px 0; background: rgba(214, 189, 120, .45); }
.name-monogram small { font-size: clamp(2.7rem, 5.5vw, 5.2rem); font-style: italic; }
.name-content h2 { color: #fff; }
.light-lead { margin-top: 31px; color: #fff; }
.name-content .lead p { margin: 0; }
.name-content > p:not(.kicker) { color: rgba(255, 255, 255, .64); }
.meaning-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.meaning-chips span { padding: 9px 15px; border: 1px solid rgba(214, 189, 120, .34); border-radius: 999px; color: var(--gold-soft); font-size: .76rem; font-weight: 650; letter-spacing: .065em; }

/* Crest explanation */
.crest-section { background: var(--paper); }
.crest-section-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 122px); align-items: start; }
.crest-copy { position: sticky; top: 126px; }
.crest-copy .lead { margin-top: 29px; }
.crest-copy > p:not(.kicker):not(.lead) { color: var(--muted); }
.crest-provenance {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  margin-top: 30px;
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
}
.crest-provenance span { width: 31px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: .8rem; }
.crest-provenance p { margin: 0; color: var(--muted); font-size: .88rem; }
.symbol-list { border-top: 1px solid var(--line); }
.symbol-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 24px;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .22s ease;
}
.symbol-list article:hover { padding-left: 10px; }
.symbol-mark { width: 48px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(178, 138, 53, .5); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: .82rem; }
.symbol-list h3 { margin: 0 0 5px; color: var(--forest-deep); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.symbol-list p { margin: 0; color: var(--muted); font-size: .91rem; }

/* Values */
.values-section { background: var(--cream); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid article { min-height: 245px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.15); transition: background .2s ease; }
.values-grid article:hover { background: rgba(255,255,255,.55); }
.values-grid span { color: var(--gold); font-family: var(--serif); font-size: .84rem; }
.values-grid h3 { margin: 45px 0 8px; color: var(--forest-deep); font-family: var(--serif); font-size: 1.58rem; font-weight: 500; }
.values-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.family-stories-section { background: var(--paper); }

/* Legacy */
.legacy-section { padding-top: 42px; background: var(--paper); }
.legacy-card {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 7vw, 84px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(178, 138, 53, .18), transparent 30%),
    var(--forest-deep);
  color: rgba(255, 255, 255, .7);
  box-shadow: 0 36px 95px rgba(8, 42, 34, .17);
}
.legacy-copy h2 { color: #fff; }
.legacy-copy p:last-child { max-width: 640px; margin-top: 22px; }
blockquote { margin: 0; padding-left: 34px; border-left: 1px solid rgba(214, 189, 120, .42); }
blockquote p { margin: 0 0 12px; color: var(--gold-soft); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.35rem); font-style: italic; line-height: 1.08; }
blockquote cite { color: rgba(255, 255, 255, .58); font-size: .78rem; font-style: normal; letter-spacing: .08em; }

/* Contact */
.contact-section {
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(104, 25, 29, .96), rgba(139, 37, 39, .94)),
    var(--red-deep);
  color: rgba(255, 255, 255, .76);
}
.contact-section::before {
  content: "ÓC";
  position: absolute;
  right: -2vw;
  bottom: -18vw;
  color: rgba(255, 255, 255, .035);
  font-family: var(--serif);
  font-size: 34vw;
  line-height: 1;
  pointer-events: none;
}
.contact-shell { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 9vw, 120px); align-items: center; }
.contact-copy h2 { color: #fff; }
.contact-copy > p:not(.kicker):not(.contact-note) { max-width: 580px; font-size: 1.05rem; }
.contact-email {
  position: relative;
  display: grid;
  gap: 1px;
  margin-top: 32px;
  padding: 22px 56px 22px 24px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  transition: transform .2s ease, background .2s ease;
}
.contact-email:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .13); }
.contact-email span { color: var(--gold-pale); font-size: .65rem; font-weight: 790; letter-spacing: .16em; text-transform: uppercase; }
.contact-email strong { color: #fff; font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 500; }
.contact-email i { position: absolute; top: 50%; right: 24px; color: var(--gold-soft); font-style: normal; font-size: 1.4rem; transform: translateY(-50%); }
.contact-note { margin: 18px 0 0; color: rgba(255, 255, 255, .5); font-size: .76rem; }
.contact-form-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(255, 253, 248, .98);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(68, 10, 14, .23);
}
.contact-form-card h3 { margin: 0 0 5px; color: var(--forest-deep); font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.contact-form-card .ocuinn-form-intro { margin: 0 0 24px; color: var(--muted); font-size: .88rem; }
.ocuinn-contact-form { display: grid; gap: 17px; }
.ocuinn-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.ocuinn-field { display: grid; gap: 7px; }
.ocuinn-field label { color: var(--forest-deep); font-size: .72rem; font-weight: 790; letter-spacing: .06em; }
.ocuinn-field input,
.ocuinn-field textarea {
  width: 100%;
  border: 1px solid rgba(18, 61, 49, .18);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ocuinn-field input { min-height: 48px; padding: 0 13px; }
.ocuinn-field textarea { min-height: 126px; padding: 12px 13px; resize: vertical; }
.ocuinn-field input:focus,
.ocuinn-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178, 138, 53, .13); }
.ocuinn-contact-submit { justify-self: start; min-width: 156px; border: 0; cursor: pointer; }
.ocuinn-form-status { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: .86rem; }
.ocuinn-form-status--success { background: #e6f2ec; color: #174c38; }
.ocuinn-form-status--error { background: #f8e5e5; color: #7c2529; }
.ocuinn-honeypot { position: absolute !important; left: -9999px !important; }
.contact-seal { min-height: 400px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 50% 50% 28px 28px; }
.contact-seal span { color: var(--gold-soft); font-family: var(--serif); font-size: 7rem; line-height: 1; }
.contact-seal small { color: rgba(255,255,255,.55); letter-spacing: .13em; text-transform: uppercase; }

/* Footer */
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; }
.brand-footer { margin-bottom: 13px; }
.site-footer p { margin: 0; color: var(--muted); font-size: .81rem; }
.footer-contact { display: inline-block; margin-top: 8px; color: var(--red); font-size: .84rem; font-weight: 720; }
.footer-meta { text-align: right; }
.footer-nav { margin-top: 11px; }
.footer-menu { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 13px; font-size: .77rem; }

/* Animation */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(25px); transition: opacity .75s ease, transform .75s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }

/* Standard WordPress content */
body.admin-bar .site-header { top: 32px; }
.content-area { min-height: 70vh; padding: 145px 0 100px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.content-main { min-width: 0; }
.narrow-container { max-width: 880px; }
.archive-header { margin-bottom: 42px; }
.archive-header h1,
.entry-title,
.not-found-page h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.archive-description, .entry-meta { color: var(--muted); }
.post-list { display: grid; gap: 28px; }
.entry-card,
.page-entry,
.no-results,
.widget {
  padding: clamp(27px, 4vw, 45px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .66);
}
.page-entry { padding: 0; border: 0; background: transparent; }
.entry-card .entry-title { font-size: clamp(2rem, 4vw, 3.25rem); }
.entry-card .entry-title a:hover { color: var(--red); }
.entry-thumbnail { display: block; margin: -1px -1px 28px; overflow: hidden; border-radius: 22px 22px 0 0; }
.entry-thumbnail img { width: 100%; height: auto; }
.page-thumbnail { margin: 34px 0; overflow: hidden; border-radius: 22px; }
.entry-meta { margin-top: 12px; font-size: .83rem; }
.entry-content { margin-top: 28px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content blockquote { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--gold); background: var(--cream); }
.entry-content blockquote p { color: var(--forest-deep); font-size: 1.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: .85rem; }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: min(1120px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.widget-area { display: grid; gap: 22px; }
.widget-title { margin: 0 0 16px; font-family: var(--serif); font-size: 1.5rem; }
.widget ul { margin: 0; padding-left: 18px; }
.widget a:hover { color: var(--red); }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 50px; }
.page-numbers.current { background: var(--forest); color: #fff; }
.post-navigation { margin: 40px 0; }
.post-navigation .nav-links { justify-content: space-between; }
.comments-area { margin-top: 60px; }
.comment-list { padding-left: 24px; }
.comment-body { margin-bottom: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
button,
input[type="submit"],
.search-submit {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.not-found-page { text-align: center; }
.not-found-page p { color: var(--muted); }
.not-found-page .button { margin-top: 20px; }

/* Responsive */
@media (max-width: 1040px) {
  .header-inner { min-height: 76px; }
  .menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(18, 61, 49, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .62);
  }
  .menu-button span:not(.screen-reader-text) { width: 19px; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 24px;
    right: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(251, 248, 241, .99);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav .menu { display: grid; gap: 0; }
  .site-nav a { display: flex; padding: 9px 10px; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav li:last-child > a { justify-content: center; margin-top: 6px; }

  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .crest-stage { justify-self: center; width: min(68vw, 475px); margin-top: 18px; }
  .identity-strip { margin-top: 70px; }
  .section-intro-grid,
  .name-grid,
  .crest-section-grid,
  .legacy-card,
  .contact-shell { grid-template-columns: 1fr; }
  .story-copy { padding-top: 0; }
  .name-monogram { min-height: 430px; width: min(100%, 540px); margin: 0 auto; }
  .crest-copy { position: static; max-width: 760px; }
  .legacy-card blockquote { padding: 30px 0 0; border-left: 0; border-top: 1px solid rgba(214, 189, 120, .42); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-copy { max-width: 720px; }
  .content-layout { grid-template-columns: 1fr; }
  .widget-area { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 700px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero { padding: 116px 0 40px; }
  .hero h1 { font-size: clamp(4.7rem, 24vw, 7rem); }
  .hero-subtitle { margin-top: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .crest-stage { width: min(88vw, 430px); }
  .crest-halo { inset: 6% -5% 2%; }
  .crest-card { padding: 20px 20px 17px; }
  .identity-strip { grid-template-columns: 1fr; }
  .identity-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-strip > div:last-child { border-bottom: 0; }
  .section { padding: 80px 0; }
  .journey-card { grid-template-columns: 1fr; gap: 23px; }
  .journey-place-right { padding: 0 0 0 48px; text-align: left; }
  .journey-place-right .location-number { left: 0; right: auto; }
  .journey-line { min-height: 70px; }
  .line-track { width: 1px; height: 100%; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .name-monogram { min-height: 350px; }
  .symbol-list article { grid-template-columns: 48px 1fr; gap: 18px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: 210px; }
  .ocuinn-form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 25px 20px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { text-align: left; }
  .footer-menu { justify-content: flex-start; }
  .content-area { padding-top: 115px; }
  .widget-area { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .alignleft, .alignright { float: none; margin: 1rem auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

.site-nav a.is-active:not(.nav-cta) { color: var(--red); }
section[id] { scroll-margin-top: 88px; }
.ocuinn-contact-submit:disabled { cursor: wait; opacity: .72; }

/* --------------------------------------------------------------------------
   Version 4: premium mobile refinement
   -------------------------------------------------------------------------- */
body { overflow-x: hidden; }
.site-header {
  transition: transform .28s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.footer-domain {
  display: inline-block;
  margin-top: 7px;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.contact-email strong,
.ocuinn-form-intro,
.footer-contact { overflow-wrap: anywhere; }

@media (max-width: 1040px) {
  .site-header {
    background: rgba(251, 248, 241, .96);
    border-color: rgba(18, 61, 49, .1);
    box-shadow: 0 10px 34px rgba(8, 42, 34, .07);
    backdrop-filter: blur(18px);
  }
  .site-header.header-hidden { transform: translateY(calc(-100% - 6px)); }
  .header-inner { min-height: 70px; }
  .site-nav { top: calc(100% + 8px); }
}

@media (max-width: 700px) {
  :root { --radius: 20px; }
  body { font-size: 15px; line-height: 1.64; }
  .container { width: min(calc(100% - 32px), var(--container)); }

  .header-inner { min-height: 68px; gap: 14px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; font-size: .84rem; }
  .brand-custom-logo,
  .brand-custom-logo img { width: 40px; height: 40px; }
  .brand-wordmark { font-size: 1.34rem; }
  .menu-button { width: 42px; height: 42px; background: rgba(255, 253, 248, .9); }
  .site-nav {
    left: 16px;
    right: 16px;
    padding: 10px;
    border-radius: 16px;
  }
  .site-nav a { min-height: 44px; padding: 9px 12px; font-size: .78rem; }

  .hero {
    min-height: auto;
    padding: 104px 0 44px;
    background:
      radial-gradient(circle at 90% 8%, rgba(178, 138, 53, .13), transparent 25%),
      linear-gradient(145deg, rgba(255,255,255,.62), transparent 52%),
      var(--paper);
  }
  .hero-arc-one { width: 130vw; left: -86vw; top: -72vw; }
  .hero-arc-two { display: none; }
  .hero-grid { gap: 34px; }
  .hero-copy { max-width: 100%; }
  .eyebrow { margin-bottom: 14px; gap: 10px; font-size: .66rem; letter-spacing: .17em; }
  .eyebrow span { width: 34px; }
  .hero h1 {
    font-size: clamp(3.65rem, 18vw, 4.8rem);
    line-height: .9;
    letter-spacing: -.062em;
  }
  .hero-subtitle { margin: 16px 0 16px; font-size: clamp(1.48rem, 7vw, 1.9rem); }
  .hero-intro { max-width: none; font-size: 1rem; line-height: 1.7; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .button { min-height: 50px; padding: 0 20px; font-size: .84rem; }
  .hero-signature { display: none; }

  .crest-stage {
    width: min(74vw, 300px);
    margin-top: 0;
  }
  .crest-halo { inset: 4% -7% 2%; border-radius: 48% 48% 24px 24px; }
  .crest-card {
    padding: 14px 14px 12px;
    border-radius: 160px 160px 22px 22px;
    box-shadow: 0 24px 60px rgba(20, 32, 27, .13);
  }
  .crest-image-wrap { border-radius: 145px 145px 12px 12px; }
  .crest-card img {
    width: 100%;
    height: auto;
    max-height: 360px;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .crest-card figcaption { padding-top: 12px; }
  .crest-card figcaption span { font-size: 1.05rem; }
  .crest-card figcaption small { font-size: .57rem; letter-spacing: .1em; }

  .identity-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
    border-radius: 16px;
  }
  .identity-strip > div {
    min-width: 0;
    padding: 14px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }
  .identity-strip > div:last-child { border-right: 0; }
  .identity-strip span { font-size: .52rem; letter-spacing: .1em; }
  .identity-strip strong { margin-top: 4px; font-size: 1rem; line-height: 1.15; }

  .section { padding: 66px 0; }
  .kicker,
  .eyebrow { letter-spacing: .17em; }
  .section-heading h2,
  .name-content h2,
  .crest-copy h2,
  .legacy-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -.042em;
  }
  .lead { font-size: 1.28rem; line-height: 1.48; }
  .centered { margin-bottom: 34px; text-align: left; }

  .section-intro-grid { gap: 26px; }
  .story-copy { padding-top: 0; }
  .story-copy > p:last-child { margin-bottom: 0; }
  .journey-wrap { margin-top: 34px; }
  .journey-card { gap: 18px; padding: 24px 21px; border-radius: 20px; }
  .journey-place,
  .journey-place-right { padding-left: 40px; }
  .journey-place h3 { margin-top: 5px; font-size: 1.75rem; }
  .journey-place small { font-size: .8rem; }
  .journey-line { min-height: 56px; }
  .line-knot { width: 36px; }

  .name-grid { gap: 32px; }
  .name-monogram {
    min-height: 150px;
    width: 100%;
    flex-direction: row;
    gap: 20px;
    border-radius: 24px;
  }
  .name-monogram > span { font-size: 4rem; }
  .name-monogram i { width: 1px; height: 62px; margin: 0; }
  .name-monogram small { font-size: 2.45rem; }
  .light-lead { margin-top: 22px; }
  .meaning-chips { gap: 8px; margin-top: 22px; }
  .meaning-chips span { padding: 8px 12px; font-size: .7rem; }
  .name-watermark { right: -12vw; bottom: -9vw; font-size: 92vw; }

  .crest-section-grid { gap: 36px; }
  .crest-copy .lead { margin-top: 20px; }
  .crest-provenance { grid-template-columns: 32px 1fr; margin-top: 22px; padding: 15px; }
  .crest-provenance p { font-size: .82rem; }
  .symbol-list article { grid-template-columns: 42px 1fr; gap: 15px; padding: 22px 0; }
  .symbol-list article:hover { padding-left: 0; }
  .symbol-mark { width: 40px; }
  .symbol-list h3 { font-size: 1.37rem; }
  .symbol-list p { font-size: .84rem; line-height: 1.6; }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 0;
  }
  .values-grid article {
    min-height: 0;
    padding: 21px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.45);
  }
  .values-grid h3 { margin: 18px 0 6px; font-size: 1.34rem; line-height: 1.12; }
  .values-grid p { font-size: .8rem; line-height: 1.55; }

  .legacy-section { padding-top: 26px; }
  .legacy-card { gap: 28px; padding: 30px 24px; border-radius: 24px; }
  .legacy-copy p:last-child { margin-top: 17px; }
  .legacy-card blockquote { padding-top: 24px; }
  blockquote p { font-size: 2rem; }

  .contact-shell { gap: 34px; }
  .contact-copy > p:not(.kicker):not(.contact-note) { font-size: .98rem; }
  .contact-email { margin-top: 24px; padding: 18px 48px 18px 18px; border-radius: 14px; }
  .contact-email strong { font-size: 1.32rem; line-height: 1.2; }
  .contact-email i { right: 18px; }
  .contact-note { margin-top: 14px; line-height: 1.55; }
  .contact-form-card { padding: 23px 19px; border-radius: 20px; }
  .contact-form-card h3 { font-size: 1.8rem; }
  .contact-form-card .ocuinn-form-intro { margin-bottom: 19px; font-size: .82rem; }
  .ocuinn-contact-form { gap: 14px; }
  .ocuinn-field input { min-height: 46px; }
  .ocuinn-field textarea { min-height: 118px; }
  .ocuinn-contact-submit { width: 100%; justify-self: stretch; }

  .site-footer { padding: 34px 0; }
  .footer-grid { gap: 24px; }
  .footer-meta { display: grid; gap: 4px; }

  .content-area { padding: 104px 0 72px; }
  .entry-card,
  .page-entry,
  .no-results,
  .widget { padding: 24px 20px; border-radius: 18px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 3.55rem; }
  .identity-strip { grid-template-columns: 1fr; }
  .identity-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-strip > div:last-child { border-bottom: 0; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .button:hover,
  .contact-email:hover,
  .ocuinn-story-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Version 5: final polish, accessibility, and performance
   -------------------------------------------------------------------------- */
html { scroll-padding-top: 92px; }
body.menu-open { overflow: hidden; touch-action: none; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(178, 138, 53, .55);
  outline-offset: 3px;
}
.crest-image-wrap picture,
.crest-image-wrap img { display: block; }
.crest-image-wrap picture { width: 100%; }
.hero-intro,
.story-copy,
.name-content,
.crest-copy,
.contact-copy { text-wrap: pretty; }
.hero h1,
.section-heading h2,
.name-content h2,
.crest-copy h2,
.legacy-copy h2,
.contact-copy h2 { text-wrap: balance; }
.ocuinn-form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 700;
}
.ocuinn-form-status--success { background: rgba(18, 61, 49, .1); color: var(--forest-deep); }
.ocuinn-form-status--error { background: rgba(139, 37, 39, .1); color: var(--red-deep); }
.ocuinn-field input,
.ocuinn-field textarea { font-size: 16px; }
.ocuinn-field textarea { resize: vertical; }

@supports (content-visibility: auto) {
  #values,
  #legacy,
  #contact { content-visibility: auto; contain-intrinsic-size: 820px; }
}

@media (max-width: 1040px) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-nav {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .crest-stage { width: min(58vw, 390px); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .site-header { backdrop-filter: none; }
  .hero { padding-top: calc(94px + env(safe-area-inset-top)); }
  .hero-grid { gap: 30px; }
  .hero-intro { line-height: 1.62; }
  .crest-stage { width: min(68vw, 278px); }
  .crest-card img { max-height: 330px; }
  .identity-strip { margin-top: 26px; }
  .section { padding: 60px 0; }
  .journey-card { padding: 22px 20px; }
  .name-section { padding-top: 58px; padding-bottom: 58px; }
  .contact-section { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .contact-form-card { box-shadow: 0 20px 48px rgba(18, 22, 20, .16); }
  .site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(3.45rem, 17vw, 4.3rem); }
  .hero-subtitle { font-size: 1.45rem; }
  .identity-strip span { font-size: .5rem; }
  .identity-strip strong { font-size: .94rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .values-grid article { padding: 19px 16px; }
  .values-grid h3 { font-size: 1.22rem; }
}

@media (max-width: 350px) {
  .identity-strip,
  .values-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Version 7: permanent-domain, Turnstile, tablet, and desktop refinement
   -------------------------------------------------------------------------- */
:root {
  --container: 1280px;
  --content-measure: 720px;
}

.site-header {
  transform: translateY(0);
}

.header-inner {
  min-height: 82px;
}

.hero {
  min-height: min(920px, 100svh);
  padding: 132px 0 42px;
}

.hero-grid {
  min-height: min(690px, calc(100svh - 225px));
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: clamp(48px, 6vw, 86px);
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(5.2rem, 8.8vw, 8.35rem);
}

.hero-intro {
  max-width: 650px;
}

.crest-stage {
  width: min(100%, 410px);
}

.crest-card {
  padding: 24px 24px 18px;
}

.identity-strip {
  margin-top: 32px;
}

.story-copy,
.name-content,
.crest-copy,
.contact-copy {
  max-width: var(--content-measure);
}

.journey-card {
  padding: clamp(30px, 4vw, 50px);
}

.name-monogram {
  min-height: 470px;
}

.values-grid article {
  min-height: 220px;
}

.contact-shell {
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: start;
}

.contact-copy {
  padding-top: 22px;
}

.contact-form-card {
  width: 100%;
  max-width: 760px;
  justify-self: end;
}

.ocuinn-turnstile-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-top: 2px;
}

.ocuinn-turnstile {
  width: 100%;
  min-height: 65px;
}

.ocuinn-turnstile > div,
.ocuinn-turnstile iframe {
  max-width: 100%;
}

.ocuinn-turnstile-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}

.ocuinn-turnstile-status:empty {
  min-height: 0;
}

.ocuinn-turnstile-status.is-error {
  color: var(--red-deep);
  font-weight: 680;
}

.ocuinn-contact-submit[aria-busy="true"] {
  position: relative;
  pointer-events: none;
}

.footer-grid {
  align-items: center;
}

@media (min-width: 1360px) {
  .header-inner { min-height: 86px; }
  .hero-grid { min-height: min(720px, calc(100svh - 225px)); }
  .crest-stage { width: min(100%, 430px); }
  .section-intro-grid { grid-template-columns: .72fr 1.28fr; }
  .crest-section-grid { grid-template-columns: .82fr 1.18fr; }
}

/* Keep a premium two-column composition on landscape tablets and on phones
   using the browser's desktop-site mode. Navigation remains compact. */
@media (min-width: 861px) and (max-width: 1040px) {
  .hero {
    padding-top: 116px;
    min-height: auto;
  }

  .hero-grid {
    min-height: 650px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
    gap: 42px;
  }

  .hero-copy { max-width: 610px; }
  .hero h1 { font-size: clamp(5rem, 10vw, 7.2rem); }
  .crest-stage {
    width: min(35vw, 350px);
    justify-self: end;
    margin-top: 0;
  }
  .identity-strip { margin-top: 38px; }

  .section-intro-grid {
    grid-template-columns: .72fr 1.28fr;
    gap: 54px;
  }
  .story-copy { padding-top: 28px; }

  .name-grid {
    grid-template-columns: .78fr 1.22fr;
    gap: 48px;
  }
  .name-monogram {
    width: auto;
    min-height: 400px;
    margin: 0;
  }

  .crest-section-grid {
    grid-template-columns: .86fr 1.14fr;
    gap: 54px;
  }
  .crest-copy {
    position: sticky;
    top: 104px;
  }

  .legacy-card {
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
  }
  .legacy-card blockquote {
    padding: 0 0 0 30px;
    border-top: 0;
    border-left: 1px solid rgba(214, 189, 120, .42);
  }

  .contact-shell {
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
  }
  .contact-form-card { max-width: none; }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 116px;
  }
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .crest-stage {
    justify-self: center;
    width: min(58vw, 390px);
    margin-top: 16px;
  }
  .identity-strip { margin-top: 46px; }
  .section-intro-grid,
  .name-grid,
  .crest-section-grid,
  .legacy-card,
  .contact-shell {
    grid-template-columns: 1fr;
  }
  .story-copy { padding-top: 0; }
  .name-monogram {
    width: min(100%, 520px);
    min-height: 410px;
    margin-inline: auto;
  }
  .crest-copy { position: static; }
  .legacy-card blockquote {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(214, 189, 120, .42);
  }
  .contact-copy { padding-top: 0; }
  .contact-form-card {
    max-width: 760px;
    justify-self: stretch;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: calc(94px + env(safe-area-inset-top));
  }
  .hero-grid { gap: 28px; }
  .crest-stage { width: min(68vw, 278px); }
  .identity-strip { margin-top: 24px; }
  .section { padding: 58px 0; }
  .contact-shell { gap: 30px; }
  .contact-form-card { padding: 22px 18px; }
  .ocuinn-turnstile { min-height: 65px; }
}

@media (max-width: 360px) {
  .contact-section .container {
    width: min(calc(100% - 20px), var(--container));
  }
  .contact-form-card { padding-inline: 12px; }
}

/* Version 7 desktop polish: show full navigation sooner and tighten wide layouts. */
@media (min-width: 960px) {
  .menu-button { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-nav .menu {
    display: flex;
    align-items: center;
    gap: clamp(17px, 2.15vw, 30px);
  }
  .site-nav a {
    display: inline-flex;
    min-height: 42px;
    padding: 0;
    font-size: clamp(.72rem, .88vw, .82rem);
  }
  .site-nav a:not(.nav-cta)::after { display: block; }
  .site-nav li:last-child > a {
    justify-content: center;
    margin-top: 0;
    padding-inline: 17px;
  }
}

@media (min-width: 1041px) {
  .hero {
    min-height: min(840px, 100svh);
    padding-top: 118px;
    padding-bottom: 34px;
  }
  .hero-grid {
    min-height: min(625px, calc(100svh - 205px));
    grid-template-columns: minmax(0, 1.14fr) minmax(320px, .66fr);
    gap: clamp(48px, 5.5vw, 78px);
  }
  .hero h1 { font-size: clamp(5.35rem, 8.2vw, 7.9rem); }
  .crest-stage { width: min(100%, 380px); }
  .crest-card { padding: 21px 21px 16px; }
  .crest-card figcaption { padding-top: 13px; }
  .identity-strip { margin-top: 26px; }

  .story-section .section-intro-grid,
  .crest-section-grid,
  .contact-shell { column-gap: clamp(58px, 7vw, 104px); }

  .journey-card,
  .values-grid,
  .contact-form-card { box-shadow: 0 24px 70px rgba(8, 42, 34, .07); }

  .values-grid article {
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
  }
  .values-grid article:hover {
    position: relative;
    z-index: 1;
    transform: translateY(-3px);
    background: rgba(255, 253, 248, .72);
    box-shadow: 0 18px 42px rgba(8, 42, 34, .08);
  }
}

@media (min-width: 1440px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(350px, .62fr);
  }
  .crest-stage { width: min(100%, 395px); }
  .contact-shell { grid-template-columns: minmax(0, .75fr) minmax(600px, 1.25fr); }
}

@media (min-width: 861px) and (max-width: 959px) {
  .hero-grid {
    min-height: 590px;
    grid-template-columns: minmax(0, 1.12fr) minmax(275px, .68fr);
  }
  .crest-stage { width: min(32vw, 320px); }
  .contact-shell { grid-template-columns: minmax(0, .76fr) minmax(440px, 1.24fr); }
}
