/* Adventurmania LLC preview: system fonts only, WCAG 2.1 AA contrast */
:root {
  --ink: #172033;
  --navy: #1A2B4A;
  --navy-deep: #122038;
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --teal: #0A4F4C;
  --teal-hover: #073E3C;
  --gold: #8A5410;
  --muted: #334155;
  --line: #D9D3C8;
  --footer-muted: #D5DCE7;
  --error: #8B1E1E;
  --ok: #0A4F4C;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --logo-font: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --max: 68rem;
  --radius: 0.75rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--teal-hover); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: var(--surface);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  z-index: 100;
  font-weight: 600;
}

.skip:focus,
.skip:focus-visible {
  transform: translateY(0);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(26, 43, 74, 0.04);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gold);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 0 1 auto;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.brand:hover { color: var(--teal); }

.logo-mark {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 21px;
}

.wordmark-split {
  font-family: var(--logo-font);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}

.wordmark-split .w-bold {
  font-weight: 700;
}

.wordmark-split .w-light {
  font-weight: 300;
}

@media (min-width: 480px) {
  .logo-mark {
    width: 26px;
    height: 23px;
  }
  .wordmark-split {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
  }
}

@media (min-width: 720px) {
  .logo-mark {
    width: 28px;
    height: 25px;
  }
  .wordmark-split {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
  }
}

@media (min-width: 900px) {
  .wordmark-split {
    font-size: 0.97rem;
    letter-spacing: 0.18em;
  }
}

@media (min-width: 1100px) {
  .wordmark-split {
    letter-spacing: 0.2em;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--navy);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  box-shadow: none;
  transform: rotate(45deg);
  height: 2px;
}

.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 2rem, var(--max));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12);
  padding: 0.75rem;
}

.nav-panel.is-open { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-list a,
.header-phone {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.4rem;
}

.nav-list a:hover,
.header-phone:hover {
  background: var(--bg);
  color: var(--teal);
}

.header-phone {
  color: var(--teal);
}

/* Hero: split layout with vertical portrait */
.hero {
  padding: 1.25rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
  font-weight: 650;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  font-weight: 650;
  color: var(--teal);
  max-width: 28ch;
}

.lede::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--gold);
  margin-top: 1.1rem;
}

.hero-copy {
  max-width: 40rem;
  margin: 0 0 1.75rem;
  color: var(--ink);
}

.portrait-card {
  margin: 0 auto;
  width: min(100%, 22.5rem);
  max-width: 24rem;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: #0e141b;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(18, 32, 56, 0.14);
  isolation: isolate;
}

.portrait-frame picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.portrait-frame .portrait-photo,
.portrait-frame .portrait-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  margin: 0;
}

.portrait-photo {
  object-fit: cover;
  object-position: center center;
  background: #0e141b;
  z-index: 1;
}

.portrait-canvas {
  z-index: 2;
  pointer-events: none;
  background: #0e141b;
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Animated path: photo is hidden before first paint (class set by /js/portrait-boot.js)
   until the mosaic hands off, so the raw image can never peek or double up. */
.js-portrait-anim .portrait-photo { opacity: 0; }
.js-portrait-anim .portrait-frame.is-fading .portrait-photo,
.js-portrait-anim .portrait-frame.is-settled .portrait-photo {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.portrait-frame .portrait-canvas[hidden],
.portrait-frame.is-settled .portrait-canvas { display: none; }

.portrait-frame.is-fading .portrait-canvas { opacity: 0; }

.portrait-caption {
  margin: 0.95rem 0 0;
  padding: 0 0.1rem;
}

.portrait-caption-kicker {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.portrait-caption-title {
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.portrait-caption-text {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  font-style: italic;
}

.about-block { max-width: 46rem; }

.about-role {
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
}

.about-block p { margin: 0 0 1rem; }
.about-block p:last-child { margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
  border: 2px solid var(--teal);
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #fff;
}

.btn:focus-visible {
  outline-color: var(--gold);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.text-link {
  font-weight: 650;
  color: var(--teal);
}

/* Sections */
.section { padding: 3.25rem 0; }

.band-white { background: var(--surface); }

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
}

.intro {
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.split {
  display: grid;
  gap: 1.25rem;
}

.panel,
.cards li,
.work-card,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
}

.band-white .panel,
.band-white .work-card {
  background: var(--bg);
}

.panel h3,
.cards h3,
.work-copy h3,
.contact-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.panel p,
.cards p,
.work-copy p,
.contact-card p {
  margin: 0 0 0.75rem;
}

.panel p:last-child,
.cards p:last-child,
.work-copy p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

/* Work */
.work-card {
  padding: 0;
  overflow: hidden;
}

.work-visual { display: block; }

.work-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: var(--navy-deep);
}

.work-copy { padding: 1.35rem 1.4rem 1.5rem; }

/* Contact */
#contact-form {
  max-width: 44rem;
}

.role {
  color: var(--muted);
  font-weight: 600;
}

.form-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid #5A6576;
  border-radius: 0.45rem;
  padding: 0.65rem 0.75rem;
  min-height: 48px;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--teal);
}

.field-row {
  display: grid;
  gap: 1rem;
}

.form-status {
  min-height: 1.5em;
  margin: 0 0 0.85rem;
  font-weight: 650;
}

.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--error); }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.footer-inner p { margin: 0 0 0.35rem; }

.footer-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: 0.65rem !important;
}

.site-footer a { color: #fff; }

.site-footer a:hover { color: #fff; }

.footer-note {
  margin-top: 1.1rem !important;
  color: var(--footer-muted);
  font-size: 1rem;
}

/* Input border #5A6576 on white/cream must meet 3:1 for UI (WCAG AA non-text). Checked separately. */
/* Error #8B1E1E on cream/white must meet 4.5:1. */

@media (min-width: 980px) {
  .nav-toggle { display: none; }

  .nav-panel {
    display: flex;
    position: static;
    transform: none;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    align-items: center;
    gap: 0.25rem 0.5rem;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 720px) {
  .hero { padding: 1.75rem 0 3.25rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(16.5rem, 24rem);
    gap: 2.75rem 3rem;
    align-items: start;
  }
  .portrait-card { width: 100%; margin: 0; }
  .section { padding: 4.25rem 0; }
  .split { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .work-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
  .work-visual img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 16rem;
  }
}

@media (min-width: 980px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


.cf-turnstile { margin: 0.5rem 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .portrait-photo { opacity: 1 !important; }
  .portrait-canvas { display: none !important; }
}


/* Portfolio */
.folio-hero { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.folio-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
  font-weight: 650;
}
.folio-hero .lede { max-width: 32rem; }
.folio-hero-copy {
  max-width: 44rem;
  margin: 0;
}

.folio-grid {
  display: grid;
  gap: 1.25rem;
}

.folio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.band-white .folio-card { background: var(--bg); }

.folio-visual { display: block; }

.folio-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: var(--navy-deep);
}

.folio-copy {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.folio-kicker {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.folio-copy h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.45rem;
}

.folio-copy p { margin: 0 0 0.7rem; }

.folio-highlights {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.15rem;
  color: var(--ink);
}

.folio-highlights li { margin: 0 0 0.3rem; }

.folio-copy .btn,
.folio-copy .btn-ghost {
  margin-top: auto;
  align-self: flex-start;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: transparent;
  color: var(--teal);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
  border: 2px solid var(--teal);
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-ghost:hover {
  background: var(--teal);
  color: #fff;
}

.note-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  max-width: 46rem;
}

.band-white .note-box { background: var(--surface); }

.nav-list a[aria-current="page"] {
  background: var(--bg);
  color: var(--teal);
}

@media (min-width: 720px) {
  .folio-grid { grid-template-columns: 1fr 1fr; }
  .folio-hero { padding-top: 3rem; padding-bottom: 1.75rem; }
}

@media (min-width: 900px) {
  .split.split-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .folio-grid.folio-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}


/* Footer nav + legal pages */
.footer-nav {
  margin-top: 1.15rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.15rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-page {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1.35rem;
  font-weight: 650;
}

.legal-page h1::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--gold);
  margin-top: 1.1rem;
}

.legal-body {
  max-width: 42rem;
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 1.75rem 0 0.55rem;
  letter-spacing: -0.015em;
}

.legal-body p {
  margin: 0 0 1rem;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .legal-page {
    padding-top: 3rem;
    padding-bottom: 4.25rem;
  }
}

.legal-body a[href^="tel:"],
.site-footer a[href^="tel:"] {
  white-space: nowrap;
}

.brand-footer {
  color: #fff;
  margin: 0 0 1rem;
  display: inline-flex;
}

.brand-footer:hover,
.brand-footer:focus-visible {
  color: #fff;
}

.brand-footer .logo-mark {
  width: 34px;
  height: 30px;
}

.brand-footer .wordmark-split {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

@media (max-width: 479px) {
  .brand-footer .wordmark-split {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }
  .brand-footer .logo-mark {
    width: 28px;
    height: 25px;
  }
}

