/* ===================================================================
   Bishop + Fields — Shared Design System (base.css)
   One source of truth for every page + future landing pages.
   Brand: deep green #005256 · bronze #ce8d6a
   Type:  Inter (UI/body) · Newsreader (editorial display)
   =================================================================== */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  font-optical-sizing: auto;
}
img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--green-mid); outline-offset: 3px; border-radius: 3px; }

/* ─── Design Tokens ─── */
:root {
  --ink:        #101216;
  --ink-soft:   #1c1f25;
  --ink-deep:   #0a0c0e;   /* near-black hero canvas */
  --paper:      #ffffff;
  --paper-2:    #f4f3f0;
  --paper-3:    #e9e8e3;
  --line:       #e3e3de;
  --line-dark:  rgba(255,255,255,.12);
  --muted:      #6a6c70;
  --muted-2:    #8a8c90;
  --muted-dark: rgba(255,255,255,.58);

  /* Brand greens */
  --green:      #005256;
  --green-dark: #003c40;
  --green-mid:  #00787e;
  --green-bright:#5cb8bc;
  --green-pale: #e8f1f1;

  /* Brand bronze */
  --bronze:     #ce8d6a;
  --bronze-dark:#b3744f;
  --bronze-soft:#e3b394;
  --bronze-pale:#f6ece4;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 100px;

  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: .18s var(--ease);
  --t-med:  .3s var(--ease);
  --t-slow: .6s var(--ease-out);

  --maxw: 1240px;
  --readw: 720px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* z-index scale */
  --z-base: 0; --z-raised: 10; --z-sticky: 100; --z-nav: 900; --z-overlay: 998; --z-top: 1000;
}

/* ─── Typography ─── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
p  { font-size: 1rem; }

/* Editorial display — serif, for emotional / story-forward headings */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.04; }
.display em { font-style: italic; }
.serif { font-family: var(--serif); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow.bronze { color: var(--bronze-dark); }

/* ─── Layout ─── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; }
.section-tight { padding: 88px 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 600; letter-spacing: -.01em;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  white-space: nowrap; min-height: 48px;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--t-med); flex-shrink: 0; }
.btn-ink    { background: var(--ink); color: #fff; }
.btn-ink:hover    { background: #000; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.btn-white  { background: #fff; color: var(--ink); }
.btn-white:hover  { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover  { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,82,86,.32); }
.btn-bronze { background: var(--bronze); color: #2a1c12; }
.btn-bronze:hover { background: var(--bronze-soft); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(206,141,106,.4); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-white { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:hover svg { transform: translateX(3px); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* text link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--green); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ─── Navbar (shared) ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: 24px 0;
  transition: background var(--t-med), padding var(--t-med), box-shadow var(--t-med);
}
#navbar.solid, #navbar.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nav-logo { height: 32px; width: auto; }
.nav-logo-dark { display: none; }
/* default (over dark hero) shows light logo; once scrolled/solid show dark */
#navbar.scrolled .nav-logo-light, #navbar.solid .nav-logo-light { display: none; }
#navbar.scrolled .nav-logo-dark,  #navbar.solid .nav-logo-dark  { display: block; }
/* pages that are light from the top use .nav-on-light */
#navbar.nav-on-light .nav-logo-light { display: none; }
#navbar.nav-on-light .nav-logo-dark  { display: block; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.82);
  transition: color var(--t-fast); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
#navbar.scrolled .nav-links a, #navbar.solid .nav-links a, #navbar.nav-on-light .nav-links a { color: var(--muted); }
#navbar.scrolled .nav-links a:hover, #navbar.solid .nav-links a:hover, #navbar.nav-on-light .nav-links a:hover,
#navbar.scrolled .nav-links a[aria-current="page"], #navbar.solid .nav-links a[aria-current="page"], #navbar.nav-on-light .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  font-size: .92rem; font-weight: 600; color: #fff;
  border: 1.5px solid rgba(255,255,255,.4); padding: 11px 22px; border-radius: var(--r-pill);
  transition: all var(--t-fast); min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
#navbar.scrolled .nav-cta, #navbar.solid .nav-cta, #navbar.nav-on-light .nav-cta { color: #fff; background: var(--ink); border-color: var(--ink); }
#navbar.scrolled .nav-cta:hover, #navbar.solid .nav-cta:hover, #navbar.nav-on-light .nav-cta:hover { background: var(--green); border-color: var(--green); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-hamburger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: all var(--t-fast); }
#navbar.scrolled .nav-hamburger span, #navbar.solid .nav-hamburger span, #navbar.nav-on-light .nav-hamburger span { background: var(--ink); }

.nav-mobile { display: none; position: fixed; inset: 0; background: #fff; z-index: var(--z-overlay); flex-direction: column; padding: 100px 32px 40px; gap: 2px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line); }
.nav-mobile a:hover { color: var(--green); }
.nav-mobile .btn { margin-top: 28px; }

/* ─── Footer (shared) ─── */
#footer { background: var(--ink); color: #fff; padding: 80px 0 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.65; max-width: 36ch; margin-bottom: 26px; }
.footer-socials { display: flex; gap: 11px; }
.footer-social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; transition: background var(--t-fast); }
.footer-social svg { width: 16px; height: 16px; color: rgba(255,255,255,.65); }
.footer-social:hover { background: var(--green); }
.footer-social:hover svg { color: #fff; }
.footer-col h4 { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 22px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .92rem; color: rgba(255,255,255,.72); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--bronze-soft); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── Shared form controls ─── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: #fff; font-family: inherit; font-size: .96rem; color: var(--ink); width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast); min-height: 50px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,82,86,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6c70' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .78rem; color: #c0392b; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.req { color: var(--green); }

/* ─── Reveal animations ─── */
@keyframes fadeUp { from { opacity:0; transform: translateY(26px);} to { opacity:1; transform:none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.rd-1 { transition-delay: .08s; } .rd-2 { transition-delay: .16s; } .rd-3 { transition-delay: .24s; }
.rd-4 { transition-delay: .32s; } .rd-5 { transition-delay: .40s; } .rd-6 { transition-delay: .48s; }

/* ─── Crafted micro-interactions ─── */
/* Image wipe-reveal: photo unmasks left→right with a slow settle, not a fade */
.reveal-mask { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.05s var(--ease-out); }
.reveal-mask.visible { clip-path: inset(0 0 0 0); }
.reveal-mask > img, .reveal-mask img.reveal-zoom { transform: scale(1.08); transition: transform 1.3s var(--ease-out); }
.reveal-mask.visible > img, .reveal-mask.visible img.reveal-zoom { transform: scale(1); }

/* Magnetic affordance — element eases toward the cursor (set by JS) */
[data-magnetic] { will-change: transform; transition: transform .4s var(--ease-spring); }

/* Link with an underline that draws in on hover */
.ul-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.4px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .42s var(--ease-out); padding-bottom: 2px;
}
.ul-link:hover, .ul-link:focus-visible { background-size: 100% 1.4px; }

/* Shared art-direction: green→bronze duotone + fine grain so stock reads commissioned */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }
.duo { position: relative; isolation: isolate; }
.duo > img, .duo > video { filter: grayscale(1) contrast(1.07) brightness(.97); }
.duo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(145deg, rgba(0,82,86,.5) 0%, rgba(10,12,14,0) 52%, rgba(206,141,106,.34) 100%);
  mix-blend-mode: color;
}
.duo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .42;
  background-image: var(--grain); background-size: 180px; mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-mask { clip-path: none !important; }
  .reveal-mask > img, .reveal-mask img.reveal-zoom { transform: none !important; }
  [data-magnetic] { transform: none !important; }
}

/* ─── Legal pages (Privacy / Terms) ─── */
.legal-hero { padding: 148px 0 48px; border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
.legal-hero .updated { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.legal-wrap { padding: 56px 0 100px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; max-width: 1040px; margin: 0 auto; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h2 { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 9px; }
.legal-toc a { font-size: .88rem; color: var(--muted); line-height: 1.4; transition: color var(--t-fast); display: block; }
.legal-toc a:hover { color: var(--green); }
.legal-body { max-width: 720px; font-size: 1.02rem; line-height: 1.7; color: #25272c; }
.legal-body .intro { font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; }
.legal-body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); margin: 48px 0 14px; scroll-margin-top: 96px; }
.legal-body h2 .n { color: var(--bronze-dark); font-variant-numeric: tabular-nums; margin-right: 10px; }
.legal-body h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 26px 0 10px; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul, .legal-body ol.list { margin: 0 0 18px 1.3em; }
.legal-body li { margin-bottom: 9px; padding-left: 4px; }
.legal-body strong { font-weight: 600; color: var(--ink); }
.legal-body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--green-dark); }
.legal-note { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin: 22px 0; font-size: .96rem; color: var(--muted); }
.legal-note strong { color: var(--ink); }
.legal-body .ph { background: var(--bronze-pale); color: var(--bronze-dark); padding: 1px 6px; border-radius: 4px; font-size: .92em; font-weight: 600; }
.legal-contact { margin-top: 14px; padding: 22px 24px; background: var(--paper-2); border-radius: var(--r-md); }
.legal-contact p { margin-bottom: 4px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { display: none; }
}

/* ─── Responsive (shared chrome) ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section { padding: 80px 0; }
  .section-tight { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
