/* Rohrback Studio — a night harbor: deep navy water, sea-glass teal, a coral sun, cream paper. */
:root {
  --night: #071C29;
  --sea: #0B2A3C;
  --deep: #10364C;
  --line: #24475C;
  --cream: #F4EFE6;
  --mist: #A9BFCC;
  --teal: #5CD6C8;
  --coral: #FF8A65;
  --sun: #FFC94A;
  --ink: #0B2A3C;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sea); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5.5vw, 58px); }
h3 { font-size: 24px; letter-spacing: -.01em; }
p { margin: 0; max-width: 62ch; }
.muted { color: var(--mist); }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--night) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--night); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--deep); display: grid; place-items: center; border: 1px solid var(--line); }
.nav { display: flex; gap: 4px; justify-content: flex-end; }
.nav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); background: var(--deep); }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } .nav a { padding: 7px 9px; font-size: 14.5px; } .brand { font-size: 17px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; background: var(--teal); color: var(--ink); transition: transform .15s ease; }
.btn:hover { color: var(--ink); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line); }
.btn.ghost:hover { color: var(--cream); border-color: var(--teal); }
.btn.store { background: var(--cream); color: var(--ink); }
.btn.store[aria-disabled="true"] { opacity: .78; cursor: default; transform: none; }
.btn small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; opacity: .8; line-height: 1.1; }
.btn .stack { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero with the live sea */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--night) 0%, #0A2434 62%, var(--sea) 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(64px, 10vw, 130px) clamp(190px, 22vw, 260px); display: flex; flex-direction: column; gap: 22px; pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 9.5vw, 116px); max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--mist); max-width: 46ch; }

/* Sections */
section.band { padding-block: clamp(64px, 9vw, 120px); }
section.band.alt { background: var(--night); }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

/* Things we make */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { position: relative; background: var(--deep); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.card .status { align-self: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.card .status.soon { background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--sun); }
.card .status.lab { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); }
.card a.more { font-weight: 700; text-decoration: none; margin-top: auto; }
.card a.more::after { content: " →"; }
.feature { grid-column: span 12; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #0F3A52, #0B2A3C 60%); padding: clamp(26px, 4vw, 48px); }
.feature h3 { font-size: clamp(34px, 5vw, 54px); }
.feature .appicon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.span4 { grid-column: span 4; } .span6 { grid-column: span 6; }
@media (max-width: 900px) { .span4 { grid-column: span 6; } }
@media (max-width: 640px) { .span4, .span6 { grid-column: span 12; } .feature { grid-template-columns: 1fr; } }

/* Phones */
.phones { display: flex; justify-content: center; gap: 14px; }
.phone { width: min(220px, 44%); aspect-ratio: 393 / 852; border-radius: 32px; padding: 8px; background: #02080D; box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 0 2px #2A4A5E; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }
.phones .phone:nth-child(2) { transform: translateY(28px) rotate(3deg); }
.phones .phone:first-child { transform: rotate(-3deg); }

/* Promise strip */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.promise { border-top: 2px solid var(--teal); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.promise:nth-child(2) { border-color: var(--coral); } .promise:nth-child(3) { border-color: var(--sun); } .promise:nth-child(4) { border-color: var(--cream); }
.promise strong { font-family: var(--display); font-size: 21px; }

/* Workshop log */
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.log time { font-family: var(--mono); font-size: 13.5px; color: var(--mist); padding-top: 2px; }
@media (max-width: 520px) { .log li { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--deep); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; max-width: max-content; }
.contact code { font-family: var(--mono); font-size: 16px; color: var(--cream); user-select: all; overflow-wrap: anywhere; }
@media (max-width: 480px) { .contact { border-radius: 18px; padding: 14px; } }

/* Feature rows (product page) */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: 0; }
.feat.flip .copy { order: 2; }
.feat .copy { display: flex; flex-direction: column; gap: 14px; }
.feat h3 { font-size: clamp(30px, 4.4vw, 46px); }
.feat ul { margin: 0; padding-left: 20px; color: var(--mist); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } .feat.flip .copy { order: 0; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--teal); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--mist); }

/* Prose (privacy) */
.prose { max-width: 46rem; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(26px, 3.6vw, 34px); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--mist); }
.prose p { color: var(--mist); }
.prose strong { color: var(--cream); }
.summary { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }

/* Footer */
footer { background: var(--night); border-top: 1px solid var(--line); padding-block: 44px; color: var(--mist); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--mist); }

/* Duck hunt */
.duck { position: absolute; width: 44px; height: 38px; cursor: pointer; background: none; border: 0; padding: 0; z-index: 5; transition: transform .2s ease; }
.duck:hover { transform: scale(1.15) rotate(-6deg); }
.duck.found { animation: quack .6s ease forwards; pointer-events: none; }
@keyframes quack { 40% { transform: translateY(-18px) scale(1.25); } 100% { transform: translateY(-60px) scale(.2); opacity: 0; } }
.duckbadge { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 10px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 10px 16px 10px 12px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.4); transform: translateY(160%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; max-width: calc(100vw - 32px); }
.duckbadge.show { transform: none; visibility: visible; transition: transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .duck.found { animation: none; opacity: 0; } .duckbadge { transition: none; } .btn { transition: none; } }
