/* Ostin site. The idea comes from the icon: the ring is the week and the amber dot is
   shot day. Deep forest and cream, Fraunces for headlines (an italic phrase in each),
   the system font for text. Motion is slow and stops for prefers-reduced-motion. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fraunces-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/assets/fraunces-italic.woff2) format("woff2"); }

:root {
  --night: #0c231c; --forest-deep: #163b31; --forest: #1f6b53; --mint: #8ccbb0;
  --amber: #e2a03c; --amber-deep: #c9831f; --cream: #f4efe2; --paper: #faf7ef;
  --ink: #17201c; --muted: #5d6762; --line: #e5e0d2;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: var(--forest); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.04; margin: 0; font-variation-settings: "opsz" 120; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
h1 { font-size: clamp(46px, 7vw, 86px); }
h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; }
h2 em { color: var(--forest); }
h3 { margin: 0 0 6px; font-size: 19px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--forest); margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; }
.fine { font-size: 13.5px; color: var(--muted); }
section { padding: 110px 0; position: relative; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn-amber { background: var(--amber); color: #20160a; box-shadow: 0 10px 30px rgba(226,160,60,.35); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(226,160,60,.45); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(244,239,226,.3); }
.btn-ghost:hover { background: rgba(244,239,226,.08); }

/* Header: over the dark hero, then a frosted bar once scrolled */
header.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, box-shadow .3s; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
header.top.scrolled { background: rgba(250,247,239,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--cream); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
header.top.scrolled .brand { color: var(--ink); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: rgba(244,239,226,.75); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--cream); }
header.top.scrolled nav a { color: var(--muted); }
header.top.scrolled nav a:hover { color: var(--ink); }
nav a.nav-cta { color: #20160a !important; background: var(--amber); padding: 8px 15px; border-radius: 999px; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 80% 10%, #1d4d3e 0%, var(--night) 60%); color: var(--cream); padding: 150px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--mint); }
.hero h1 em { color: var(--amber); }
.hero .lead { font-size: 20px; color: rgba(244,239,226,.78); max-width: 520px; margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { color: rgba(244,239,226,.55); margin-top: 22px; max-width: 480px; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.g1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, #2f7a61, transparent 70%); }
.g2 { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(226,160,60,.35), transparent 70%); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring .track { fill: none; stroke: rgba(244,239,226,.12); stroke-width: 2; }
.ring .arc { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 500; transform: rotate(-90deg); transform-origin: 220px 220px; opacity: .9; }
.ring .day text { fill: rgba(244,239,226,.6); font: 600 13px var(--sans); letter-spacing: .08em; text-anchor: middle; dominant-baseline: middle; }
.ring .day circle { fill: rgba(244,239,226,.35); }
.ring .day.shot text { fill: var(--amber); }
.ring .orbit { transform-origin: 220px 220px; transform: rotate(102.857deg); }
.ring .dot { fill: var(--amber); }
.ring .dot-halo { fill: var(--amber); opacity: .25; transform-origin: 220px 44px; }
.hero-art .phone { position: absolute; width: 34%; left: 33%; top: 12%; }
.chip { position: absolute; background: rgba(244,239,226,.1); border: 1px solid rgba(244,239,226,.18); color: var(--cream); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip-a { right: 0; top: 24%; }
.chip-b { left: 0; bottom: 26%; }
.chip-a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: 1px; }

/* A phone: a screenshot in a rounded frame */
.phone { border-radius: 34px; padding: 7px; background: #0b0f0d; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); position: relative; }
.phone img { border-radius: 28px; width: 100%; }

/* A week, as you scroll */
.week { background: var(--paper); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.story-phone { position: sticky; top: 100px; height: fit-content; display: flex; justify-content: center; }
.story-phone .phone { width: min(300px, 100%, calc((100vh - 170px) * 0.46)); }
.story-phone .phone img:not(:first-child) { position: absolute; inset: 7px; width: calc(100% - 14px); }
.story-phone .phone img { opacity: 0; transform: scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.story-phone .phone img.active { opacity: 1; transform: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); border-left: 2px solid var(--line); padding-left: 28px; position: relative; }
.step::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .4s, box-shadow .4s; }
.step.active { opacity: 1; }
.step.active::before { background: var(--amber); box-shadow: 0 0 0 6px rgba(226,160,60,.2); }
.step .when { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 8px 0 12px; }
.step p { color: var(--muted); font-size: 18px; margin: 0; max-width: 460px; }
.step-shot { display: none; }

/* Level curve */
.level { background: var(--night); color: var(--cream); overflow: hidden; }
.level .eyebrow { color: var(--mint); }
.level h2 em { color: var(--mint); }
.level p { color: rgba(244,239,226,.72); font-size: 18px; max-width: 440px; }
.level-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.curve { width: 100%; overflow: visible; }
.curve .line { fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.curve .area { fill: url(#fill); opacity: 0; }
.curve .shots-marks circle { fill: var(--amber); opacity: 0; }
.curve.in .line { animation: draw 2.6s var(--ease) forwards; }
.curve.in .area { animation: fade 1.4s 1.2s var(--ease) forwards; }
.curve.in .shots-marks circle { animation: pop .5s var(--ease) forwards; }
.curve.in .shots-marks circle:nth-child(1) { animation-delay: .1s; }
.curve.in .shots-marks circle:nth-child(2) { animation-delay: .6s; }
.curve.in .shots-marks circle:nth-child(3) { animation-delay: 1.1s; }
.curve.in .shots-marks circle:nth-child(4) { animation-delay: 1.6s; }
.curve.in .shots-marks circle:nth-child(5) { animation-delay: 2.1s; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 30px; }
.feature { background: var(--paper); padding: 30px 28px 34px; transition: background .3s; }
.feature:hover { background: #fff; }
.feature .num { font-family: var(--serif); font-style: italic; color: var(--amber-deep); font-size: 22px; display: block; margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* Screens rail */
.tour { background: var(--cream); padding-bottom: 90px; }
.rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px max(24px, calc((100vw - 1120px) / 2 + 24px)) 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: 0 0 230px; scroll-snap-align: center; transition: transform .4s var(--ease); }
.rail figure:hover { transform: translateY(-6px); }
.rail img { border-radius: 26px; box-shadow: 0 18px 40px rgba(23,32,28,.18); }
.rail figcaption { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.rail figcaption strong { display: block; color: var(--ink); font-size: 15.5px; }

/* Duo: the open screen in a device frame, so its edges read as the screen's edges; the
   closed phone beside it. */
.duo-pair { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin: 34px 0 18px; }
.duo-pair figure { margin: 0; }
.duo-pair figcaption { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 16px; }
.duo-frame { position: relative; padding: 12px; border-radius: 38px; background: #0b0f0d; box-shadow: 0 30px 70px rgba(23,32,28,.25), inset 0 0 0 1px rgba(255,255,255,.08); }
.duo-frame img { border-radius: 28px; width: 100%; }
.duo-closed .phone { width: 210px; }
@media (max-width: 860px) {
  .duo-pair { grid-template-columns: 1fr; justify-items: center; }
  .duo-closed .phone { width: 180px; }
  .duo-frame { padding: 7px; border-radius: 24px; }
  .duo-frame img { border-radius: 18px; }
}

/* Plus */
.plus { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.plus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.plus-list { list-style: none; padding: 0; margin: 26px 0 0; }
.plus-list li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.plus-list strong { color: var(--ink); margin-right: 8px; }
.plus-art { position: relative; height: 560px; }
.plus-art .phone { position: absolute; width: 250px; }
.tilt-l { left: 6%; top: 40px; transform: rotate(-6deg); }
.tilt-r { right: 6%; top: 0; transform: rotate(5deg); }

/* Private */
.private { background: var(--forest-deep); color: var(--cream); padding: 90px 0; }
.private-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; align-items: end; }
.private h2 { margin: 0; }
.private h2 em { color: var(--amber); }
.private p { color: rgba(244,239,226,.7); margin: 0; font-size: 16px; }

/* Outro */
.outro { background: var(--night); color: var(--cream); text-align: center; overflow: hidden; padding: 130px 0 90px; }
.outro h2 { font-size: clamp(44px, 7vw, 84px); }
.outro h2 em { color: var(--amber); }
.outro p { color: rgba(244,239,226,.72); font-size: 18px; margin: 0 0 30px; }
.outro .fine { color: rgba(244,239,226,.45); max-width: 620px; margin: 70px auto 0; font-size: 13px; }
.g3 { width: 600px; height: 600px; left: 50%; top: 40%; margin-left: -300px; background: radial-gradient(circle, rgba(226,160,60,.22), transparent 70%); }
.outro .wrap { position: relative; }

footer.bottom { background: var(--night); color: rgba(244,239,226,.55); font-size: 14px; padding: 26px 0 40px; border-top: 1px solid rgba(244,239,226,.08); }
footer.bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer.bottom a { color: rgba(244,239,226,.7); }
.brand.small { font-size: 18px; }
.brand.small img { width: 26px; height: 26px; border-radius: 7px; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes arc { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 500; } }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(102.857deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.8); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .ring .arc { animation: arc 2.2s .4s var(--ease) both; }
  .ring .orbit { animation: orbit 2.2s .4s var(--ease) both; }
  .ring .dot-halo { animation: pulse 2.4s 2.6s ease-in-out infinite; }
  .float { animation: float 7s ease-in-out infinite; }
  .glow.g1 { animation: drift 22s ease-in-out infinite alternate; }
  .glow.g2 { animation: drift 28s ease-in-out infinite alternate-reverse; }
  .chip { animation: rise .9s var(--ease) both; }
  .chip-a { animation-delay: 1.6s; }
  .chip-b { animation-delay: 1.9s; }
}
@media (prefers-reduced-motion: reduce) {
  .curve .line { stroke-dashoffset: 0; }
  .curve .area, .curve .shots-marks circle { opacity: 1; }
}

/* Small screens */
@media (max-width: 860px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
  .hero-grid, .level-grid, .plus-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; margin-top: 20px; }
  .chip { font-size: 12px; padding: 6px 10px; }
  .chip-a { top: 18%; }
  nav a:not(.nav-cta) { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .step { min-height: 0; opacity: 1; padding: 0 0 50px 24px; }
  .step-shot { display: block; width: min(260px, 80%); border-radius: 26px; margin-top: 22px; box-shadow: 0 18px 40px rgba(23,32,28,.18); }
  .feature-grid { grid-template-columns: 1fr; }
  .plus-art { height: 440px; }
  .plus-art .phone { width: 200px; }
  .private-grid { grid-template-columns: 1fr; }
}

/* Enlargeable images (from the current site) */
button.zoomable { all: unset; cursor: zoom-in; display: block; position: relative; border-radius: inherit; }
button.zoomable:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
dialog#viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #080c0a; color: #fff; }
dialog#viewer::backdrop { background: transparent; }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; justify-content: flex-end; padding: 12px 16px; background: linear-gradient(rgba(8,12,10,.95), rgba(8,12,10,0)); }
.viewer-hint { color: #aab5af; font-size: 14px; margin-right: auto; }
.viewer-link { color: #8ccbb0; font-weight: 700; text-decoration: none; }
.viewer-close { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 18px; }
.viewer-body { height: calc(100vh - 64px); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 8px 16px 40px; }
.viewer-body img { display: block; max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; cursor: zoom-in; border-radius: 10px; background: #fff; }
.viewer-body.pages img { max-height: none; width: min(900px, 100%); }
.viewer-body.zoomed { align-items: flex-start; }
.viewer-body.zoomed img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
@media (max-width: 760px) { .viewer-hint { display: none; } }
