/* Orcinus Systems LLC. Brand: Signal from the Deep. */
:root {
  --ink: #0B1B2B;
  --navy: #16324A;
  --teal: #0A7C73;
  --cyan: #13B49E;
  --foam: #F4F7F9;
  --ocean: #7E94A2;
  --ocean-text: #5A6E7B;
  --white: #FFFFFF;
  --line: #DCE4EA;
  --ink-soft: #3A4D5E;
  --radius: 14px;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.approach :focus-visible, .starter-card :focus-visible { outline-color: var(--cyan); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.25rem); line-height: 1.03; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(10, 124, 115, 0.15);
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 44px; height: 30px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.68rem; color: var(--ocean-text); letter-spacing: 0.06em; margin-top: 4px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover { color: var(--teal); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 479px) { .brand-name span { display: none; } .nav .btn { padding: 0 16px; font-size: 0.9rem; } .brand svg { width: 38px; } }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--foam) 100%); }
.hero-grid { display: grid; gap: 40px; padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 112px); align-items: center; }
.hero-copy { display: grid; gap: 26px; position: relative; z-index: 2; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-art { position: relative; aspect-ratio: 1 / 0.82; width: 100%; max-width: 560px; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; }
  .hero-art { justify-self: end; }
}

.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4.8s cubic-bezier(.2,.6,.3,1) infinite; opacity: 0; }
.pulse.p2 { animation-delay: 1.6s; }
.pulse.p3 { animation-delay: 3.2s; }
@keyframes pulse {
  0% { transform: scale(0.15); opacity: 0.85; }
  80% { opacity: 0.05; }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; opacity: 0.18; }
  .pulse.p2 { transform: scale(0.6); }
  .pulse.p3 { transform: scale(0.85); opacity: 0.1; }
}

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.proof-inner { display: grid; gap: 14px; padding-top: 26px; padding-bottom: 26px; }
.proof-inner p { font-family: var(--mono); font-size: 0.82rem; color: var(--ocean-text); }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.proof-list li { font-family: var(--display); font-weight: 500; color: var(--navy); font-size: 1.02rem; display: inline-flex; align-items: center; gap: 10px; }
.proof-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
@media (min-width: 960px) { .proof-inner { grid-template-columns: auto 1fr; gap: 40px; align-items: center; } }

/* Sections */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 60px); max-width: 760px; }
.section-head .lede { max-width: 60ch; }

/* Services */
.services-grid { display: grid; gap: 16px; }
.service {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 28px; border-radius: var(--radius); background: var(--foam); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(11, 27, 43, 0.35); }
.service-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.service-icon svg { width: 24px; height: 24px; }
.service p { color: var(--ink-soft); }
.service ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service li { font-family: var(--mono); font-size: 0.8rem; color: var(--navy); padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--teal); }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service.wide { grid-column: span 3; }
}

/* Work */
.work { background: var(--foam); }
.cases { display: grid; gap: 20px; }
.case {
  display: grid; gap: 22px; padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 4px);
  background: var(--white); border: 1px solid var(--line);
}
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 0.74rem; padding: 6px 10px; border-radius: 999px; background: var(--foam); color: var(--navy); border: 1px solid var(--line); }
.case h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.case-client { font-family: var(--mono); font-size: 0.82rem; color: var(--teal); }
.case-body { display: grid; gap: 18px; color: var(--ink-soft); }
.case-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case-points li { position: relative; padding-left: 28px; color: var(--ink); }
.case-points li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--teal); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 7px var(--teal);
}
@media (min-width: 960px) {
  .case { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
  .case-head { display: grid; gap: 14px; align-content: start; }
}
.case-head { display: grid; gap: 14px; align-content: start; }
.case-head, .case-body { min-width: 0; }
.outcomes { display: grid; gap: 12px; margin-top: 6px; }
@media (min-width: 620px) { .outcomes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.outcome { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--ink); color: #B8C7D2; font-size: 0.95rem; line-height: 1.5; }
.outcome strong { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1; color: var(--cyan); letter-spacing: -0.02em; }
.case-shot { grid-column: 1 / -1; margin: 6px 0 0; display: grid; gap: 0; min-width: 0; }
.case-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--foam); }
.shot-frame { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--foam); border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.shot-frame span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.case-shot figcaption { font-family: var(--mono); font-size: 0.76rem; color: var(--ocean-text); margin-top: 10px; }

/* Starter engagement */
.starter { background: var(--white); }
.starter-card { display: grid; gap: 32px; padding: clamp(26px, 4vw, 48px); border-radius: calc(var(--radius) + 4px); background: var(--ink); color: #B8C7D2; }
.starter-card h2 { color: var(--white); }
.starter-card .label { color: var(--cyan); }
.starter-card .label::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(19, 180, 158, 0.2); }
.starter-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.starter-copy .lede { color: #B8C7D2; }
.starter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(126, 148, 162, 0.25); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.starter-list li { background: #10263A; padding: 18px 20px; display: grid; gap: 4px; }
.starter-list b { color: var(--white); font-family: var(--display); font-weight: 600; }
.starter-list span { font-size: 0.95rem; }
.starter-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.starter-terms span { font-family: var(--mono); font-size: 0.74rem; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(126, 148, 162, 0.4); color: #D6E1E8; }
@media (min-width: 960px) { .starter-card { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* Call request */
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.choice legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; margin-bottom: 8px; }
.choice-opts { display: grid; gap: 10px; }
@media (min-width: 520px) { .choice-opts { grid-template-columns: 1fr 1fr; } }
.choice-opt { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 0.95rem; font-weight: 400; color: var(--ink); transition: border-color .2s ease, background-color .2s ease; }
.choice-opt input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; flex: none; }
.choice-opt:has(input:checked) { border-color: var(--teal); background: rgba(10, 124, 115, 0.06); }
.choice-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(10, 124, 115, 0.15); }

/* Approach (dark) */
.approach { background: var(--ink); color: var(--foam); position: relative; overflow: hidden; }
.approach h2 { color: var(--white); }
.approach .lede { color: #B8C7D2; }
.approach .label { color: var(--cyan); }
.approach .label::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(19, 180, 158, 0.2); }
.approach-rings { position: absolute; right: -220px; top: -160px; width: 640px; height: 640px; opacity: 0.5; pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(126, 148, 162, 0.25); border-radius: var(--radius); overflow: hidden; counter-reset: step; position: relative; }
.step { background: var(--ink); padding: 30px 26px; display: grid; gap: 12px; align-content: start; }
.step-num { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }
.step h3 { color: var(--white); font-size: 1.25rem; }
.step p { color: #B8C7D2; font-size: 0.98rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Principles */
.principles { display: grid; gap: 28px; }
.principle { display: grid; gap: 10px; padding-top: 22px; border-top: 2px solid var(--ink); }
.principle p { color: var(--ink-soft); }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* Contact */
.contact { background: var(--foam); }
.contact-grid { display: grid; gap: 40px; }
.contact-copy { display: grid; gap: 20px; align-content: start; }
.contact-notes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-notes li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-soft); }
.contact-notes li span { font-family: var(--mono); font-size: 0.78rem; color: var(--teal); min-width: 2.2em; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(11, 27, 43, 0.35); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ocean-text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316324A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10, 124, 115, 0.15); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; margin-top: 4px; }
.form-fine { font-size: 0.85rem; color: var(--ocean-text); }
.hp { display: none; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-grid { display: grid; gap: 28px; }
.footer-tag { font-family: var(--display); font-weight: 500; color: var(--navy); font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--teal); }
.footer-legal { display: grid; gap: 6px; font-family: var(--mono); font-size: 0.76rem; color: var(--ocean-text); padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
}

/* Simple pages (thanks, 404) */
.simple { display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--white), var(--foam)); padding-top: 96px; padding-bottom: 120px; }
.simple-inner { display: grid; gap: 22px; justify-items: center; max-width: 620px; }
.simple-art { width: 180px; height: 180px; }

/* Gentle entrance: content is visible at rest, it only settles into place. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible { animation: settle .6s ease both; }
  @keyframes settle { from { transform: translateY(10px); } to { transform: none; } }
}
