
:root {
  --lilac: #C9C2F5;
  --rose: #F4B6C9;
  --peach: #FFD2AE;
  --sky-soft: #BED0F7;
  --plum: #3A2A20;
  --coral: #C2703F;
  --cream: #FBF6EF;
  --sunset-text: linear-gradient(100deg, #2854B8 8%, #6E58C9 52%, #DC6E8E 96%);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
}

/* Soft sunset wash used behind the story and closing CTA. Static, painted once. */
.sunset-wash, .story-stage::after, .home .end-cta::before {
  background:
    radial-gradient(38% 46% at 10% 82%, rgba(244,182,201,.55), rgba(244,182,201,0) 70%),
    radial-gradient(36% 42% at 92% 16%, rgba(201,194,245,.7), rgba(201,194,245,0) 70%),
    radial-gradient(34% 40% at 84% 92%, rgba(255,210,174,.6), rgba(255,210,174,0) 70%),
    radial-gradient(30% 34% at 30% 8%, rgba(190,208,247,.55), rgba(190,208,247,0) 70%);
}

/* ---------- Story section ---------- */
.story {position: relative; background: #F6F4EE; color: #252628;}
.story-stage {
  position: relative; row-gap: clamp(34px, 5vw, 72px); overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 60px);
  align-items: center;
  padding: 0 max(28px, calc((100vw - var(--container)) / 2 - 24px)) clamp(40px, 6vw, 88px) max(28px, calc((100vw - var(--container)) / 2));
}
.story-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(37,38,40,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,38,40,.045) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 80%);
}
.story-stage::after {content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;}

/* The headline and the build preview share a normal-flow grid. */
.story-hero {
  position: relative; grid-column: 1 / -1; z-index: 1;
  padding: clamp(118px, 17vh, 170px) 24px 0; text-align: center;
}
.story .eyebrow {margin-bottom: 22px;}
.story .hero-title {font-size: clamp(54px, 7.4vw, 112px); line-height: .98; letter-spacing: -.075em; max-width: 1100px; text-wrap: balance;}
.story .hero-title .orange {background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;}
.story .hero-description {margin-top: 26px;}
.story .hero-aside {color: #252628;}
.story .hero-actions {margin-top: 28px;}
.story .btn-light {background: rgba(255,255,255,.7); border-color: #DDDDD7;}
.story .btn-light:hover {background: #FFFFFF;}

/* Entrance on first load (transform/opacity only). */
.story-hero > * {animation: appear-up .9s both var(--ease);}
.story-hero > :nth-child(1) {animation-delay: .05s}
.story-hero > :nth-child(2) {animation-delay: .12s}
.story-hero > :nth-child(3) {animation-delay: .22s}
.story-hero > :nth-child(4) {animation-delay: .3s}
.story-hero > :nth-child(5) {animation-delay: .36s}
.sf-window {animation: frame-in 1.2s .35s both var(--ease);}
@keyframes frame-in {from {opacity: 0} to {opacity: 1}}

/* ---------- Left column: steps + captions ---------- */
.story-side {position: relative; z-index: 2; align-self: center; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none;}
.is-1 .story-side {opacity: 1; transform: none; pointer-events: auto;}
.story-label {font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #74767D; margin: 0 0 26px;}
.story-rail {list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 6px;}
.story-rail button {
  display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 4px 0; border: 0; background: none; text-align: left;
  color: #252628; opacity: .2; font-size: clamp(36px, 3.6vw, 52px); font-weight: 720; letter-spacing: -.06em; line-height: 1.08;
  transition: opacity .45s var(--ease);
}
.story-rail button span {font: 600 12px/1 var(--mono); letter-spacing: 0; color: var(--accent); transform: translateY(-1.1em);}
.story-rail button:hover {opacity: .5;}
.story-progress {position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: rgba(37,38,40,.1); border-radius: 2px; overflow: hidden;}
.story-progress i {position: absolute; inset: 0; background: linear-gradient(#2854B8, #6E58C9, #DC6E8E); transform-origin: top; transform: scaleY(0); will-change: transform;}
.is-1:not(.is-2) [data-go="1"], .is-2:not(.is-3) [data-go="2"], .is-3:not(.is-4) [data-go="3"], .is-4 [data-go="4"] {opacity: 1;}
.story-captions {display: grid; margin-top: 30px; min-height: 120px;}
.story-caption {grid-area: 1 / 1; margin: 0; font-size: 17px; line-height: 1.55; letter-spacing: -.02em; color: #55575D; max-width: 330px; opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .6s var(--ease);}
.story-caption small {display: block; margin-top: 14px; font: 600 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent);}
.is-1:not(.is-2) [data-step="1"], .is-2:not(.is-3) [data-step="2"], .is-3:not(.is-4) [data-step="3"], .is-4 [data-step="4"] {opacity: 1; transform: none; transition-delay: .12s;}
.story-skip {display: inline-flex; gap: 8px; margin-top: 26px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #74767D; transition: color .2s;}
.story-skip:hover {color: #252628;}

/* ---------- The browser frame ---------- */
.story-frame {position: relative; z-index: 3; width: 100%; max-width: calc((100svh - 140px) * 1.62); justify-self: center; will-change: transform;}
.sf-window {
  position: relative; border-radius: 16px; padding: 7px; background: #ECEBE6; border: 1px solid #D9D8D2;
  box-shadow: 0 60px 110px -40px rgba(76,58,120,.35), 0 24px 40px -24px rgba(37,38,40,.25);
}
.sf-toolbar {height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 10px 6px;}
.sf-toolbar .traffic b {background: #C9C9C4;}
.sf-url {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto; min-width: 200px; height: 20px; padding: 0 12px;
  border-radius: 6px; background: #DFDED8; color: #686A70; font: 500 10.5px/1 var(--mono); transform: translateX(-24px);
}
.sf-lock {width: 10px; height: 10px; color: #A3A4A8; transition: color .5s;}
.sf-live {display: inline-flex; align-items: center; gap: 6px; font: 700 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #15994F; opacity: 0; transform: translateX(6px); transition: opacity .5s, transform .6s var(--ease);}
.sf-live i {width: 6px; height: 6px; border-radius: 50%; background: #22B865;}
.is-4 .sf-live {opacity: 1; transform: none; transition-delay: .2s;}
.is-4 .sf-live i {animation: live-pulse 1.8s ease-out infinite;}
.is-4 .sf-lock {color: #22B865;}
@keyframes live-pulse {0% {box-shadow: 0 0 0 0 rgba(34,184,101,.5)} 100% {box-shadow: 0 0 0 7px rgba(34,184,101,0)}}

/* The mock site. Container units make it scale like a real page. */
.sf-site {
  --ink-1: #252628; --ink-2: #6A6C72; --line: rgba(40,84,184,.5);
  position: relative; overflow: hidden; border-radius: 9px; aspect-ratio: 16 / 10;
  container-type: size; background: #FFFFFF; color: var(--ink-1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Arial, sans-serif;
}
.sf-site::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity .8s;
  background-image: linear-gradient(rgba(40,84,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(40,84,184,.07) 1px, transparent 1px);
  background-size: 2.5cqw 2.5cqw;
}
.m-scroll {position: relative; will-change: transform;}

/* Blocks (blueprint boxes) */
.b {outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .5s, background-color .9s var(--ease), color .6s, opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms);}
.b::before {
  content: attr(data-l); position: absolute; left: -1px; top: -1px; transform: translateY(-100%);
  font: 500 max(8px, .95cqw)/1 var(--mono); color: #FFFFFF; background: var(--accent); padding: .35cqw .6cqw; border-radius: 3px 3px 0 0;
  opacity: 0; transition: opacity .4s; transition-delay: inherit; pointer-events: none; white-space: nowrap; z-index: 6;
}
.m-nav.b, .m-form.b {opacity: 0; transform: scale(.97);}
.is-1 .m-nav.b, .is-1 .m-form.b {opacity: 1; transform: none;}
.is-1 .b {outline-color: var(--line);}
.is-1 .b::before {opacity: 1;}
.is-3 .b {outline-color: transparent; transition-delay: 0s;}
.is-3 .b::before {opacity: 0; transition-delay: 0s;}
.is-3 .sf-site::before {opacity: 0;}

/* Text items: skeleton bars in step 1, real words from step 2. */
.t {display: block; border-radius: .5cqw; background-color: rgba(37,38,40,.07); transition: color .5s, background-color .5s; transition-delay: calc(var(--i, 0) * 60ms);}
.story-stage:not(.is-2) .t, .story-stage:not(.is-2) .t * {color: transparent !important; border-color: transparent !important;}
.is-2 .t {background-color: transparent;}

/* ----- Desktop mock layout ----- */
.m-hero {position: relative; height: 100cqh; overflow: hidden; color: var(--ink-1); background-color: #FFFFFF; outline-offset: -.9cqw;}
.m-hero.b::before {top: auto; bottom: .9cqw; left: .9cqw; transform: none; border-radius: 3px;}
.m-photo {position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease .15s;}
.m-photo img {width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transform: scale(1.12); transform-origin: 55% 45%;}
.m-photo::after {content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,26,18,.7) 0%, rgba(38,26,18,.42) 50%, rgba(38,26,18,.1) 100%), linear-gradient(0deg, rgba(38,26,18,.55), rgba(38,26,18,0) 50%);}
.m-nav {position: absolute; z-index: 3; top: 1.6cqw; left: 1.6cqw; right: 1.6cqw; display: flex; align-items: center; gap: 3cqw; height: 6.4cqw; padding: 0 3cqw;}
.m-logo {display: inline-flex; align-items: center; gap: .8cqw; font-size: 1.55cqw; font-weight: 750; letter-spacing: -.04em; white-space: nowrap;}
.m-logo i {width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: currentColor;}
.m-links {display: flex; gap: 2.4cqw; margin-left: auto; font-size: 1.15cqw; font-weight: 550; color: var(--ink-2);}
.m-btn {display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; height: 3.9cqw; padding: 0 2cqw; border-radius: 99px; font-size: 1.15cqw; font-weight: 700; border: 1px solid rgba(37,38,40,.25); transition: background-color .8s var(--ease), color .6s, border-color .6s, transform .2s;}
.m-btn-sm {height: 3.3cqw; padding: 0 1.6cqw; font-size: 1.05cqw;}
.m-burger {display: none;}
.m-hero-inner {position: absolute; z-index: 2; left: 4.6cqw; right: 4.6cqw; bottom: 5.5cqw; display: grid; grid-template-columns: 1.5fr .62fr; gap: 5cqw; align-items: end;}
.m-copy {display: flex; flex-direction: column; align-items: flex-start; gap: 1.6cqw;}
.m-eyebrow {font-size: 1.05cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);}
.m-h1 {font-size: 6.4cqw; line-height: .98; font-weight: 740; letter-spacing: -.055em;}
.m-sub {font-size: 1.5cqw; line-height: 1.5; color: var(--ink-2); max-width: 34cqw;}
.m-ctas {display: flex; gap: 1cqw;}
.m-form {position: relative; display: flex; flex-direction: column; gap: .9cqw; padding: 2cqw; border-radius: 1.4cqw;}
.m-form-title {font-size: 1.8cqw; font-weight: 720; letter-spacing: -.035em; margin-bottom: .3cqw;}
.m-field {display: flex; flex-direction: column; gap: .4cqw; padding: .9cqw 1.2cqw; border-radius: .8cqw; border: 1px solid rgba(37,38,40,.14); font-size: 1.1cqw;}
.m-field em {font-style: normal; font-size: .9cqw; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; opacity: .6;}
.m-field b {font-weight: 600; min-height: 1.3em; clip-path: inset(0 100% 0 0);}
.m-submit {position: relative; width: 100%; margin-top: .4cqw; height: 4.2cqw;}
.m-send, .m-sent {transition: opacity .25s;}
.m-sent {position: absolute; opacity: 0;}

/* Below-the-fold sections of the mock (seen in the final scroll). */
.m-section {padding: 6cqw 5cqw; background: var(--cream); color: var(--plum);}
.m-kicker {display: block; font-size: 1.05cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.4cqw;}
.m-h2 {display: block; font-family: var(--serif); font-size: 3.6cqw; line-height: 1.08; letter-spacing: -.02em; max-width: 46cqw;}
.m-p {display: block; font-size: 1.45cqw; line-height: 1.6; color: #6B6178; margin: 1.6cqw 0 2.2cqw; max-width: 36cqw;}
.m-cards {display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 3.4cqw;}
.m-card {display: flex; flex-direction: column; gap: .6cqw; font-size: 1.6cqw; font-weight: 700; letter-spacing: -.03em;}
.m-card small {font-size: 1.15cqw; font-weight: 450; letter-spacing: 0; color: #6B6178;}
.m-img {display: block; aspect-ratio: 4 / 3; border-radius: 1.2cqw; margin-bottom: 1cqw; background: #D9CFE6 url('/assets/hobart-harbour-900.jpg') var(--pos, center) / 260% auto no-repeat;}
.m-split {display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; align-items: center; background: #F3ECE3;}
.m-split-img {aspect-ratio: 1 / 1; margin: 0; background-size: 320% auto;}
.m-btn-dark {background: var(--plum); color: var(--cream); border-color: var(--plum);}
.m-band {display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 6cqw 5cqw; color: var(--cream); background: linear-gradient(120deg, #2B2F5E, #6B4E8C 55%, #D9796F);}
.m-band .m-h2 {max-width: none;}
.m-band .m-btn, .is-3 .m-band .m-btn {background: var(--cream); color: var(--plum); border-color: var(--cream);}
.m-footer {display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw 5cqw; background: var(--plum); color: rgba(251,246,239,.7); font-size: 1.1cqw;}
.m-footer .m-logo {color: var(--cream); margin-right: auto;}
.m-footer .m-logo i {background: var(--coral);}

/* Step 3: the brand arrives (dusk palette that the photo then lands on). */
.is-3 .m-hero {background-color: #6B5443; background-image: linear-gradient(150deg, #3E2F25 0%, #7A604C 48%, #CDB396 100%); color: var(--cream); --ink-2: rgba(251,246,239,.85);}
.is-3 .m-h1 {font-weight: 800; letter-spacing: -.06em;}
.is-3 .m-sub {font-weight: 600;}
.is-3 .m-eyebrow {font-weight: 800;}
.is-4 .m-h1, .is-4 .m-sub, .is-4 .m-eyebrow {text-shadow: 0 2px 18px rgba(30,20,12,.5);}
.is-3 .m-btn {border-color: rgba(251,246,239,.5); color: var(--cream);}
.is-3 .m-hero .m-cta, .is-3 .m-nav .m-btn {background-color: var(--cream); color: var(--plum); border-color: var(--cream);}
.is-3 .m-logo i {color: var(--coral);}
.is-3 .m-form {background-color: rgba(251,246,239,.96); color: var(--plum); box-shadow: 0 2cqw 4cqw -1cqw rgba(20,12,40,.35);}
.is-3 .m-field {background: #FFFFFF; border-color: #EADFD5;}
.is-3 .m-submit {background-color: var(--coral); border-color: var(--coral); color: #FFFFFF;}

/* Step 4: live. The Hobart photo fades in with a slow cinematic push. */
.is-4 .m-photo {opacity: 1;}
.is-4 .m-photo img {transform: scale(1); transition: transform 9s cubic-bezier(.2,.7,.2,1);}

/* Demo cursor. JS sets --x/--y for each target, then adds .play. */
.sf-cursor {position: absolute; left: 0; top: 0; width: 2.4cqw; min-width: 16px; height: auto; opacity: 0; z-index: 7; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); transform: translate(var(--x0, 80cqw), var(--y0, 50cqh));}
.sf-window.play .sf-cursor {animation: cursor-path 3s var(--ease) .6s both;}
@keyframes cursor-path {
  0% {opacity: 0; transform: translate(var(--x0), var(--y0))}
  8% {opacity: 1}
  22%, 30% {transform: translate(var(--x1), var(--y1))}
  44%, 52% {transform: translate(var(--x2), var(--y2))}
  66%, 74% {transform: translate(var(--x3), var(--y3))}
  86% {transform: translate(var(--x4), var(--y4)) scale(1)}
  90% {transform: translate(var(--x4), var(--y4)) scale(.85)}
  94% {transform: translate(var(--x4), var(--y4)) scale(1); opacity: 1}
  100% {transform: translate(var(--x4), var(--y4)); opacity: 0}
}
.sf-window.play [data-field="1"] b {animation: type-in .45s steps(8) 1.35s both;}
.sf-window.play [data-field="2"] b {animation: type-in .5s steps(10) 2s both;}
.sf-window.play [data-field="3"] b {animation: type-in .45s steps(8) 2.65s both;}
.sf-window.play .m-submit, .sf-window.play.cta-mode .m-hero .m-cta {animation: press .3s ease 3.25s both;}
.sf-window.play .m-send {opacity: 0; transition-delay: 3.35s;}
.sf-window.play .m-sent {opacity: 1; transition-delay: 3.35s;}
@keyframes type-in {from {clip-path: inset(0 100% 0 0)} to {clip-path: inset(0 0 0 0)}}
@keyframes press {50% {transform: scale(.94)} 100% {transform: scale(1)}}

/* Toasts: light, phone-style notifications */
.sf-toasts {position: absolute; right: -44px; top: 50px; z-index: 8; display: grid; gap: 8px; width: min(290px, 46%); pointer-events: none;}
.sf-toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: #FFFFFF; border: 1px solid #E6E4DE; color: #252628; box-shadow: 0 22px 44px -16px rgba(60,44,100,.35), 0 4px 10px rgba(37,38,40,.05);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s ease, transform .6s var(--ease);
}
.sf-toast > i {flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #E8F7EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315994F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12' rx='2'/%3E%3Cpath d='M3 8.5h14M7 3v3M13 3v3'/%3E%3C/svg%3E") center / 16px no-repeat;}
.sf-toast div {min-width: 0; flex: 1;}
.sf-toast strong {display: block; font-size: 13px; font-weight: 680; letter-spacing: -.02em;}
.sf-toast span {display: block; font-size: 11.5px; color: #6A6C72; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.sf-toast time {font: 500 10px/1 var(--mono); color: #9A9CA2; align-self: flex-start; margin-top: 3px;}
.sf-window.play .sf-toast {opacity: 1; transform: none; transition-delay: calc(3.6s + var(--i) * .7s);}

/* Reduced motion / static: show the finished state. */
.story-static .m-field b {clip-path: none;}
.story-static .m-send {opacity: 0;}
.story-static .m-sent {opacity: 1;}
.story-static .sf-toast {opacity: 1; transform: none;}

/* ---------- Marquee ---------- */
.marquee-band {background: #F6F4EE; border-top: 1px solid #E4E2DB; border-bottom: 1px solid #E4E2DB; overflow: hidden; padding: 26px 0;}
.marquee {display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);}
.marquee-track {display: flex; align-items: center; gap: 34px; flex: 0 0 auto; padding-right: 34px; animation: marquee 42s linear infinite; will-change: transform;}
.marquee-track span {font-size: clamp(20px, 2.2vw, 30px); font-weight: 680; letter-spacing: -.045em; white-space: nowrap; color: #3A3B3F;}
.marquee-track i {font-style: normal; color: #DC6E8E; font-size: 16px;}
.marquee.paused .marquee-track {animation-play-state: paused;}
@keyframes marquee {to {transform: translate3d(-50%, 0, 0)}}

/* ---------- Work: asymmetric feature grid ---------- */
.home .work-section .section-title {font-size: clamp(52px, 6.6vw, 104px); letter-spacing: -.075em;}
@media (min-width: 781px) {
  .home .projects {grid-template-columns: 1fr 1fr;}
  .home .projects .project-card:first-child {grid-column: 1 / -1;}
  .home .projects .project-card:first-child .project-image {aspect-ratio: 2.1;}
  .home .projects .project-card:first-child .project-image img {object-position: center top;}
  .home .projects .project-card:first-child .project-name {font-size: 22px;}
  .home .projects .project-card:nth-child(3) {display: block;}
}
.js .home .projects .project-image img {transform: scale(1.08); transition: transform 1.4s var(--ease);}
.js .home .projects.is-visible .project-image img {transform: scale(1);}
.js .home .projects.is-visible .project-card:hover .project-image img {transform: scale(1.04);}
.home .projects[data-reveal] {opacity: 1 !important; transform: none !important;}
.js .home .projects[data-reveal] .project-card {opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform 1s var(--ease), border-color .3s, box-shadow .45s var(--ease);}
.js .home .projects.is-visible .project-card {opacity: 1; transform: none;}
.js .home .projects.is-visible .project-card:nth-child(2) {transition-delay: .12s, .12s, 0s, 0s;}
.js .home .projects.is-visible .project-card:nth-child(3) {transition-delay: .24s, .24s, 0s, 0s;}
.js .home .projects.is-visible .project-card:hover {transform: translateY(-7px); transition-delay: 0s;}

/* ---------- Closing CTA: soft sunset ---------- */
.home .end-cta {padding: clamp(110px, 14vw, 200px) 0; background: #F6F4EE;}
.home .end-cta::before {display: block; top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; transform: none;}
.home .end-cta h2 {max-width: 1180px; font-size: clamp(54px, 8.2vw, 126px); line-height: .98;}
.home .end-cta h2 span {background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;}

/* ---------- Badge: keep it out of the story ---------- */
body.story-in-view .tasmania-badge {opacity: 0; visibility: hidden;}

/* ---------- Tablet & phone: stacked layout ---------- */
@media (max-width: 999px) {
  .story-stage {grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-items: stretch; row-gap: 14px; padding: 0 18px 32px;}
  .story-side {display: contents;}
  .story-label, .story-skip {display: none;}
  .story-rail {grid-row: 2; margin-top: 20px; display: flex; justify-content: space-between; gap: 4px; padding: 0 0 12px; opacity: 0; transition: opacity .5s;}
  .story-rail li:not(.story-progress) {flex: 1;}
  .story-rail button {flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; letter-spacing: -.03em; font-weight: 680; padding: 0;}
  .story-rail button span {transform: none; font-size: 10px;}
  .story-progress {top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 2px;}
  .story-progress i {transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #2854B8, #6E58C9, #DC6E8E);}
  .story-captions {grid-row: 4; margin: 0; min-height: 92px; opacity: 0; transition: opacity .5s;}
  .is-1 .story-rail, .is-1 .story-captions {opacity: 1;}
  .story-caption {font-size: 15px; max-width: none;}
  .story-caption small {margin-top: 8px;}
  .story-frame {grid-row: 3; max-width: none; min-height: 0; display: flex; justify-content: center;}
  .sf-window {display: flex; flex-direction: column; width: 100%; max-width: 560px;}
  .sf-site {aspect-ratio: 16 / 10;}
  .sf-toasts {right: 10px; left: 10px; top: 72px; bottom: auto; width: auto;}
  .sf-toast {padding: 10px 12px;}
  .sf-toast:nth-child(3) {display: none;}
}
@media (max-width: 999px) and (min-width: 600px) {
  .sf-window {max-width: none;}
}

/* Phone-sized mock site (container query on the frame, not the viewport). */
@media (max-width: 540px) {
  .sf-site {aspect-ratio: 4 / 5;}
}
@container (max-width: 520px) {
  .m-nav {height: 13cqw; padding: 0 4.5cqw; top: 3cqw; left: 3cqw; right: 3cqw; gap: 3cqw;}
  .m-logo {font-size: 4.6cqw; gap: 2cqw;}
  .m-logo i {width: 3.6cqw; height: 3.6cqw;}
  .m-links, .m-nav .m-btn {display: none;}
  .m-burger {display: grid; gap: 1.4cqw; margin-left: auto;}
  .m-burger i {display: block; width: 6cqw; height: 2px; background: currentColor; opacity: .8;}
  .m-hero-inner {left: 7cqw; right: 7cqw; bottom: 9cqw; grid-template-columns: 1fr;}
  .m-form {display: none;}
  .m-copy {gap: 3.6cqw;}
  .m-eyebrow {font-size: 3cqw;}
  .m-h1 {font-size: 13.2cqw;}
  .m-sub {font-size: 4.2cqw; max-width: none;}
  .m-btn {height: 11cqw; padding: 0 5.5cqw; font-size: 3.8cqw;}
  .m-btn-ghost {display: none;}
  .m-photo img {object-position: 66% 50%;}
  .m-photo::after {background: linear-gradient(0deg, rgba(38,26,18,.85) 0%, rgba(38,26,18,.5) 45%, rgba(38,26,18,.18) 100%);}
  .m-section {padding: 11cqw 7cqw;}
  .m-kicker {font-size: 3cqw; margin-bottom: 3cqw;}
  .m-h2 {font-size: 8.6cqw; max-width: none;}
  .m-p {font-size: 4cqw; max-width: none; margin: 4cqw 0 6cqw;}
  .m-cards {grid-template-columns: 1fr; gap: 6cqw; margin-top: 7cqw;}
  .m-card {font-size: 5cqw; gap: 1.5cqw;}
  .m-card small {font-size: 3.6cqw;}
  .m-img {border-radius: 3cqw; margin-bottom: 2cqw; aspect-ratio: 16 / 9;}
  .m-split {grid-template-columns: 1fr; gap: 7cqw;}
  .m-split-img {aspect-ratio: 4 / 3;}
  .m-band {flex-direction: column; align-items: flex-start; padding: 11cqw 7cqw; gap: 6cqw;}
  .m-footer {flex-wrap: wrap; gap: 3cqw 5cqw; padding: 8cqw 7cqw; font-size: 3.4cqw;}
  .m-footer .m-logo {width: 100%;}
  .b::before {font-size: 2.6cqw; padding: 1cqw 1.6cqw;}
  .m-hero.b::before {bottom: 2cqw; left: 2cqw;}
  .sf-cursor {width: 6cqw;}
  .sf-site::before {background-size: 6cqw 6cqw;}
}

@media (max-width: 580px) {
  .story-hero {padding-top: clamp(96px, 13svh, 120px);}
  .story .hero-title {font-size: clamp(44px, 12.6vw, 62px); line-height: 1.0;}
  .story .hero-description {font-size: 15px; margin-top: 18px;}
  .story .hero-actions {margin-top: 22px;}
  .story-stage {padding: 0 12px 28px;}
  .sf-window {border-radius: 13px; padding: 5px;}
  .sf-toolbar {height: 24px; padding: 0 6px 4px;}
  .sf-url {min-width: 0; font-size: 9.5px; transform: none; margin: 0 0 0 auto;}
  .sf-toolbar .traffic {display: none;}
  .sf-toast strong {font-size: 12px;}
  .sf-toast > i {width: 26px; height: 26px;}
  .marquee-band {padding: 20px 0;}
}
@media (max-height: 760px) and (min-width: 1000px) {
  .story-hero {padding-top: 104px;}
  .story .hero-title {font-size: clamp(50px, 6vw, 84px);}
  .story .hero-description {margin-top: 18px; font-size: 17px;}
  .story-rail button {font-size: 38px;}
}

/* Show the finished example and all four captions in the static layout. */
.story-static .story-rail {display: none;}
.story-static .story-caption {position: relative; opacity: 1; transform: none; grid-area: auto; margin-bottom: 12px;}
.story-static .story-captions {display: block; opacity: 1;}
.story-progress i {transform: scaleY(var(--progress, 0)); transition: transform .4s ease;}
@media (max-width: 999px) {
  .story-progress i {transform: scaleX(var(--progress, 0));}
  .story-static .story-frame {grid-row: 2;}
  .story-static .story-captions {grid-row: 3;}
}
@media (prefers-reduced-motion: reduce) {
  .story *, .story *::before, .story *::after, .marquee-track {animation: none !important; transition: none !important;}
}
.home .end-cta .wrap {z-index: 1;}

/* ---------- 2-week free trial ---------- */
.trial-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 26px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: rgba(255,255,255,.75); border: 1px solid #E2DED6; box-shadow: 0 6px 20px -10px rgba(76,58,120,.35);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: #3A3B3F; transition: transform .25s var(--ease), box-shadow .25s;
}
.trial-chip:hover {transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(76,58,120,.45);}
.trial-chip b {padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; color: #FFFFFF; background: linear-gradient(100deg, #2854B8, #6E58C9 55%, #DC6E8E);}
.trial-chip i {font-style: normal; color: #6E58C9;}
.trial-section {background: #F6F4EE; padding-top: clamp(70px, 8vw, 110px);}
.trial-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center;
  padding: clamp(32px, 5.5vw, 76px); border-radius: 32px; background: #FCFBF8; border: 1px solid #E4E2DB;
}
.trial-card::before {content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(45% 60% at 0% 100%, rgba(244,182,201,.45), rgba(244,182,201,0) 70%),
  radial-gradient(45% 60% at 100% 0%, rgba(201,194,245,.55), rgba(201,194,245,0) 70%),
  radial-gradient(40% 50% at 100% 100%, rgba(255,210,174,.45), rgba(255,210,174,0) 70%);}
.trial-copy .section-title span {background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;}
.trial-copy .btn {margin-top: 30px;}
.trial-steps {list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;}
.trial-steps li {display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 20px; background: rgba(255,255,255,.8); border: 1px solid #E8E5DE;}
.trial-steps b {font: 600 12px/1.9 var(--mono); color: var(--accent);}
.trial-steps strong {display: block; font-size: 18px; font-weight: 700; letter-spacing: -.03em;}
.trial-steps span {display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: #65666B;}
.trial-steps li:last-child {background: #252628; border-color: #252628; color: #F6F4EE;}
.trial-steps li:last-child b {color: #BED0F7;}
.trial-steps li:last-child span {color: #C9CCD4;}
#get-started .mbk-quiz-trial {display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 12px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; color: #1b2033; background: linear-gradient(100deg, #BED0F7, #D9CCF7 55%, #F7C3D2);}
@media (max-width: 860px) {
  .trial-card {grid-template-columns: 1fr; border-radius: 24px;}
}
@media (max-width: 580px) {
  .trial-chip {font-size: 12px; margin-bottom: 20px; gap: 8px;}
  .trial-card {padding: 28px 20px; border-radius: 22px; gap: 28px;}
  .trial-steps li {padding: 17px 16px; gap: 14px; border-radius: 16px;}
  .trial-steps strong {font-size: 16px;}
  .trial-steps span {font-size: 13.5px;}
  .trial-copy .btn {width: 100%; margin-top: 24px;}
}
@media (max-width: 400px) {
  .story-hero {padding-inline: 16px;}
  .story .hero-title {font-size: 10.6vw; letter-spacing: -.07em;}
}

/* ---------- Closing CTA over the Hobart waterfront ---------- */
.home .end-cta-photo {position: relative; overflow: hidden; isolation: isolate; background: #2A2238; color: #FFFFFF; padding: clamp(130px, 15vw, 220px) 0 clamp(120px, 13vw, 190px);}
.home .end-cta-photo::before {display: none;}
.end-cta-bg {position: absolute; inset: 0; z-index: -1;}
.end-cta-bg img {width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;}
.end-cta-bg::after {content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(24,18,38,.62), rgba(24,18,38,.35) 70%, rgba(24,18,38,.25)), linear-gradient(0deg, rgba(24,18,38,.55), rgba(24,18,38,0) 40%);}
.home .end-cta-photo h2 {color: #FFFFFF; text-shadow: 0 4px 30px rgba(20,14,36,.35);}
.home .end-cta-photo h2 span {background: linear-gradient(100deg, #C7D6FA 5%, #DCCFFA 50%, #FAC9D7 95%); -webkit-background-clip: text; background-clip: text; color: transparent;}
.home .end-cta-photo p {color: rgba(255,255,255,.9); text-shadow: 0 2px 14px rgba(20,14,36,.4);}
.end-cta-place {position: absolute; left: max(24px, calc((100vw - var(--container)) / 2)); bottom: 26px; margin: 0 !important; display: inline-flex; align-items: center; gap: 9px; font: 600 11px/1 var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82) !important; max-width: none !important;}
.end-cta-place span {width: 7px; height: 7px; border-radius: 50%; background: #FAC9D7; box-shadow: 0 0 0 4px rgba(250,201,215,.25);}
@media (max-width: 580px) {
  .home .end-cta-photo {padding: 110px 0 120px;}
  .end-cta-bg img {object-position: 56% 50%;}
  .end-cta-place {left: 21px; bottom: 22px; font-size: 10px !important;}
}

/* ---------- Make each step change obvious ---------- */
.cap-step {display: block; margin-bottom: 8px; font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent;}
.story-caption {transform: translateX(18px);}
.is-1:not(.is-2) [data-step="1"], .is-2:not(.is-3) [data-step="2"], .is-3:not(.is-4) [data-step="3"], .is-4 [data-step="4"] {transform: none;}
.story-rail button {transition: opacity .45s var(--ease), transform .55s var(--ease), color .45s;}
.is-1:not(.is-2) [data-go="1"], .is-2:not(.is-3) [data-go="2"], .is-3:not(.is-4) [data-go="3"], .is-4 [data-go="4"] {transform: translateX(8px);}
.story-progress {width: 3px;}
/* Big step badge that pops over the demo on every change */
.sf-step {
  position: absolute; left: 50%; top: 52%; z-index: 9; display: flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 12px; border-radius: 99px; background: rgba(255,255,255,.97); border: 1px solid #E6E3EE;
  box-shadow: 0 26px 50px -18px rgba(60,44,100,.5); color: #252628; white-space: nowrap; pointer-events: none;
  font-size: 24px; font-weight: 760; letter-spacing: -.045em; opacity: 0; transform: translate(-50%, -50%) scale(.85);
}
.sf-step b {font: 700 12px/1 var(--mono); letter-spacing: .04em; color: #FFFFFF; padding: 8px 10px; border-radius: 99px; background: linear-gradient(100deg, #2854B8, #6E58C9 55%, #DC6E8E);}
.sf-step.show {animation: step-pop .8s var(--ease) both;}
@keyframes step-pop {
  0% {opacity: 0; transform: translate(-50%, -38%) scale(.86)}
  16% {opacity: 1; transform: translate(-50%, -50%) scale(1)}
  74% {opacity: 1; transform: translate(-50%, -50%) scale(1)}
  100% {opacity: 0; transform: translate(-50%, -62%) scale(.97)}
}
/* A ring of light around the window on each step */
.sf-window::after {content: ''; position: absolute; inset: -6px; border-radius: 21px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px rgba(110,88,201,.85), 0 0 34px 4px rgba(220,110,142,.35);}
.sf-window.pulse::after {animation: ring-pulse 1s ease-out both;}
@keyframes ring-pulse {0% {opacity: 1; transform: scale(.996)} 100% {opacity: 0; transform: scale(1.03)}}
@media (max-width: 999px) {
  .story-rail button {transform: none !important;}
  .is-1:not(.is-2) [data-go="1"], .is-2:not(.is-3) [data-go="2"], .is-3:not(.is-4) [data-go="3"], .is-4 [data-go="4"] {color: #2854B8;}
  .story-progress {height: 3px; width: auto;}
  .sf-step {font-size: 20px; padding: 10px 18px 10px 10px; top: 46%;}
  .cap-step {margin-bottom: 5px; font-size: 10.5px;}
  .story-caption {transform: translateY(10px);}
}
.story-static .sf-step {display: none;}
