/* Orca Labs — site styles
   Palette: brand navy / cream / teal, plus two supporting tones. */
:root {
  --navy: #0F2436;
  --navy-deep: #0A1A28;
  --cream: #F1ECE2;
  --paper: #F8F5EE;
  --teal: #1E7C7A;
  --teal-bright: #5FB3AC;
  --shallows: #8FC7C1;
  --slate: #4E5D66;
  --rule: #D8D0C0;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid rgba(143, 199, 193, 0.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand .wordmark { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand .wordmark span { font-weight: 400; color: var(--shallows); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--cream); text-decoration: none;
  font-family: var(--display); font-size: 0.95rem; font-weight: 500;
}
.nav a:hover { color: var(--shallows); }
.nav .btn { margin-left: 4px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid rgba(241,236,226,.35); color: var(--cream);
    font: 500 0.95rem var(--display); padding: 8px 14px; border-radius: 4px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid rgba(143,199,193,.18);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(143,199,193,.12); }
  .nav .btn { margin: 14px 0 0; width: auto; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 4px;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-bright); color: var(--navy-deep); }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.nav .btn-teal { color: #fff; padding: 9px 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--cream);
  padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 104px);
}
.hero .depth {
  position: absolute; top: 0; right: -6%; bottom: 0; width: 72%;
  background: url("depth.svg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
          mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-stretch: 116%;
  font-weight: 800;
  line-height: 0.98;
  max-width: 11ch;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin-top: 28px; max-width: 46ch;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.5;
  color: #DCE6E4;
}
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Sounding line: credentials set like depth soundings on a chart */
.soundings {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(143,199,193,.35);
}
.soundings div { padding: 18px 20px 0 0; }
.soundings dt { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.soundings dd { margin: 4px 0 0; font-size: 0.95rem; color: var(--shallows); line-height: 1.35; }
@media (max-width: 720px) {
  .soundings { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .hero .depth { width: 120%; right: -40%; opacity: .7; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-stretch: 108%; }
.section-head p { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Offerings: a ledger, not cards */
.practice { border-top: 2px solid var(--navy); }
.practice-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 16px 40px; padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.practice-row h3 { font-size: 1.45rem; font-stretch: 104%; }
.practice-row p { margin: 0; }
.practice-row .measure { font-family: var(--display); font-size: 0.92rem; color: var(--teal); font-weight: 500; line-height: 1.45; }
.practice-row.new h3::after {
  content: "New"; margin-left: 10px; vertical-align: 4px;
  font-size: 0.72rem; font-weight: 600; font-stretch: 100%;
  background: var(--teal); color: #fff; padding: 3px 8px; border-radius: 3px;
}
@media (max-width: 860px) { .practice-row { grid-template-columns: 1fr; gap: 8px; } }

/* Packaged engagements */
.packages { background: var(--cream); }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.package { padding: 32px 28px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.package:last-child { border-right: 0; }
.package h3 { font-size: 1.3rem; margin-bottom: 6px; }
.package .term { font-family: var(--display); font-size: 0.92rem; color: var(--slate); margin-bottom: 18px; }
.package ul { margin: 0 0 24px; padding-left: 1.1em; }
.package li { margin-bottom: 6px; }
.package .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .package-grid { grid-template-columns: 1fr; }
  .package { border-right: 0; border-bottom: 1px solid var(--rule); }
  .package:last-child { border-bottom: 0; }
}

/* Selected work */
.work-list { display: grid; gap: 0; border-top: 2px solid var(--navy); }
.work {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 24px 56px; padding: 40px 0; border-bottom: 1px solid var(--rule);
}
.work .kind { font-family: var(--display); font-size: 0.92rem; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.work h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-stretch: 104%; margin-bottom: 14px; }
.work p { margin: 0; color: #24384A; }
.work .results { display: grid; gap: 18px; align-content: start; padding-top: 4px; }
.work .results div { border-left: 3px solid var(--teal); padding-left: 16px; }
.work .results strong { display: block; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.8rem; line-height: 1.1; color: var(--navy); }
.work .results span { font-size: 0.95rem; color: var(--slate); }
.work.feature { background: var(--navy); color: var(--cream); padding: 40px clamp(20px, 3vw, 40px); border-bottom: 0; margin-top: 32px; }
.work.feature p { color: #DCE6E4; }
.work.feature .kind { color: var(--shallows); }
.work.feature .results div { border-color: var(--shallows); }
.work.feature .results strong { color: #fff; }
.work.feature .results span { color: var(--shallows); }
.work.feature a.btn { margin-top: 20px; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }

/* Approach: a true sequence, so numbered */
.approach { background: var(--navy); color: var(--cream); }
.approach .section-head p { color: #C8D6D4; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; border-top: 1px solid rgba(143,199,193,.35); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 2.6rem; color: var(--teal-bright); line-height: 1; margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 10px; color: #fff; }
.steps p { color: #C8D6D4; font-size: 1.02rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; }
.about-grid h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-stretch: 108%; margin-bottom: 8px; }
.about-grid .role { font-family: var(--display); color: var(--teal); font-weight: 600; margin-bottom: 28px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.roles li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
.roles li b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.pull { margin: 32px 0 0; padding: 0; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; font-style: italic; color: var(--navy); max-width: 40ch; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--cream); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-stretch: 110%; margin-bottom: 18px; }
.contact dl { margin: 0; display: grid; gap: 18px; }
.contact dt { font-family: var(--display); font-size: 0.92rem; color: var(--slate); }
.contact dd { margin: 2px 0 0; font-size: 1.15rem; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C8D6D4; padding: 48px 0 40px; font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #C8D6D4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid rgba(143,199,193,.2); padding-top: 20px; margin-top: 8px; font-size: 0.9rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- Inner pages (TAMLabs, support, privacy) ---------- */
.page-hero { background: var(--navy); color: var(--cream); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero .depth { position: absolute; inset: 0 -10% 0 40%; background: url("/assets/depth.svg") center / cover no-repeat; -webkit-mask-image: linear-gradient(to right, transparent, #000 50%); mask-image: linear-gradient(to right, transparent, #000 50%); opacity: .8; }
.page-hero .wrap { position: relative; }
.page-hero .by { font-family: var(--display); color: var(--shallows); font-weight: 500; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-stretch: 114%; font-weight: 800; }
.page-hero .lede { margin-top: 18px; font-size: 1.25rem; max-width: 48ch; color: #DCE6E4; }
.prose { padding: clamp(48px, 7vw, 88px) 0; }
.prose .wrap > * { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .meta { font-family: var(--display); color: var(--slate); font-size: .95rem; }
.callout { background: var(--cream); border-left: 4px solid var(--teal); padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }

/* hero load: one orchestrated reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero .depth { animation: surface 1.6s ease-out both; }
  @keyframes surface { from { opacity: 0; transform: translateX(3%); } to { opacity: 1; transform: none; } }
}
