/* Websight Studios — sections 02 to 09 */

/* Reveal: content is visible by default. JS adds .is-in as it enters, which plays the rise. */
@keyframes ws-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal.is-in { animation: ws-rise 0.9s var(--ease-out) both; animation-delay: var(--delay, 0ms); }
}

.eyebrow { display: inline-flex; gap: var(--s-2); margin-bottom: var(--s-8); color: var(--text-on-light-muted); }
.dark .eyebrow { color: var(--text-on-dark-muted); }

/* ---------- 02 Designed for [ ] ---------- */
.designed { min-height: 100svh; display: grid; align-content: center; padding-top: var(--s-16); }
.designed__line { font-family: var(--f-mono); font-size: clamp(1.75rem, 6.4vw, 5.25rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0; }
.designed__lead { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 780; letter-spacing: -0.035em; }
.designed__phrase { display: inline; }
.designed__typed { color: var(--text-on-light); }
.designed__caret { display: inline-block; width: 0.08em; height: 0.9em; margin-left: 0.04em; vertical-align: -0.08em; background: var(--c-iris); animation: ws-blink 1s steps(1) infinite; }
@keyframes ws-blink { 50% { opacity: 0; } }
.designed__controls { margin-top: var(--s-12); display: flex; align-items: center; gap: var(--s-4); }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rule-on-light); display: grid; place-items: center; font-family: var(--f-mono); transition: background-color var(--d-base) var(--ease-out), color var(--d-base); }
.round:hover { background: var(--c-ink); color: var(--c-sclera); }
.dark .round { border-color: var(--rule-on-dark); }
.dark .round:hover { background: var(--c-sclera); color: var(--c-ink); }
.designed__hint { color: var(--text-on-light-muted); }
.designed__note { margin-top: var(--s-16); max-width: 38ch; color: var(--text-on-light-muted); }

/* ---------- 03 Characters ---------- */
.scenes { padding-left: 0; padding-right: 0; overflow: clip; }
.scenes__head { padding: 0 var(--gutter); margin-bottom: var(--s-12); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-6); }
.scenes__title { font-size: var(--fs-h2); max-width: 12ch; }
.scenes__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.scenes__viewport::-webkit-scrollbar { display: none; }
.scene { flex: 0 0 100%; scroll-snap-align: center; padding: 0 var(--gutter); display: grid; gap: var(--s-8); align-content: start; background: var(--bg-light); }
.scene__stage { position: relative; aspect-ratio: 1 / 1; max-height: 64svh; margin: 0 auto; width: 100%; border-radius: var(--r-card); background: #e6e6e4; overflow: hidden; -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; }
.scene__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__num { position: absolute; top: var(--s-5); left: var(--s-5); color: var(--text-on-light-muted); z-index: 1; }
.scene__tap { position: absolute; bottom: var(--s-5); right: var(--s-5); color: var(--text-on-light-muted); z-index: 1; }
.scene__copy h3 { font-family: var(--f-display); font-stretch: 115%; font-weight: 760; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1; margin: 0 0 var(--s-3); }
.scene__copy p { margin: 0; max-width: 34ch; color: var(--text-on-light-muted); }
.scenes__dots { display: flex; justify-content: center; gap: var(--s-3); margin-top: var(--s-10); }
.scenes__dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.scenes__dots svg { width: 26px; height: 16px; }
.scenes__dots .lid { transition: transform var(--d-base) var(--ease-out); transform-origin: 50% 50%; }
.scenes__dots [aria-current="true"] .lid { transform: scaleY(0); }

@media (min-width: 900px) {
  .scenes__viewport { overflow: visible; scroll-snap-type: none; width: max-content; }
  .scene { flex: 0 0 min(72vw, 1100px); grid-template-columns: 1.25fr 1fr; align-items: center; gap: var(--s-16); padding-right: 0; }
  .scene:last-child { padding-right: var(--gutter); }
  .scene__stage { max-height: 72svh; }
  .scenes__dots { display: none; }
}

/* character parts */
.ch-ink { fill: var(--c-ink); }
.ch-sclera { fill: var(--c-sclera); }
.ch-iris { fill: var(--c-iris); }
.ch-line { fill: none; stroke: var(--c-ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ch-glow { fill: var(--c-iris-glow); }
.rough { filter: url(#rough); }

/* ---------- 04 Eyeball ---------- */
.eyeball { min-height: 100svh; display: grid; gap: var(--s-12); align-content: center; overflow: clip; }
.eyeball__canvas { width: 100%; aspect-ratio: 1 / 1; max-height: 70svh; touch-action: none; cursor: none; }
.eyeball__title { font-size: var(--fs-h2); max-width: 13ch; }
.eyeball__copy p { max-width: 40ch; color: var(--text-on-dark-muted); }
.eyeball__hint { color: var(--text-on-dark-muted); }
@media (min-width: 900px) {
  .eyeball { grid-template-columns: 1.1fr 1fr; align-items: center; }
}

/* ---------- 05 Optimised for [ ] ---------- */
.optimised__line { font-size: var(--fs-h2); margin-bottom: var(--s-8); }
.optimised__lede { color: var(--text-on-light-muted); max-width: 40ch; margin: 0 0 var(--s-16); }

/* project tiers: premium first, custom-quoted, no prices */
.tiers { list-style: none; margin: 0 0 var(--s-24); padding: 0; display: grid; gap: var(--s-4); }
.tier { border-radius: var(--r-card); background: var(--c-white); padding: var(--s-8); display: grid; align-content: start; gap: var(--s-4); }
.tier h3 { margin: 0; font-family: var(--f-display); font-stretch: 115%; font-weight: 760; font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.02em; }
.tier p { margin: 0; color: var(--text-on-light-muted); max-width: 40ch; }
.tier em { display: block; font-style: normal; font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--accent-text-light); margin-bottom: var(--s-2); }
.tier__n { color: var(--text-on-light-muted); }
.tier--lead { background: var(--c-ink); color: var(--c-sclera); }
.tier--lead p, .tier--lead .tier__n { color: var(--text-on-dark-muted); }
@media (min-width: 900px) {
  .tiers { grid-template-columns: 1.25fr 1fr 1fr; }
  .tier { padding: var(--s-10); min-height: 340px; }
}
.services__label { margin: 0 0 var(--s-6); color: var(--text-on-light-muted); font-weight: 400; }

/* after launch: InSight / ForeSight */
.after { margin-top: var(--s-24); }
.after__title { font-size: clamp(2rem, 5vw, 4rem); max-width: 16ch; margin-bottom: var(--s-12); }
.after__grid { display: grid; gap: var(--s-4); }
.plan { border-radius: var(--r-card); background: var(--c-ink); color: var(--c-sclera); padding: var(--s-8); display: grid; align-content: start; gap: var(--s-4); }
.plan__top { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: var(--s-3); }
.plan__name { margin: 0; font-family: var(--f-display); font-stretch: 122%; font-weight: 800; font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.plan__name span { color: var(--c-iris-glow); }
.plan__term { color: var(--text-on-dark-muted); }
.plan__line { margin: 0; font-family: var(--f-mono); color: var(--c-iris-glow); }
.plan p:last-child { margin: 0; color: var(--text-on-dark-muted); max-width: 46ch; }
.after__note { margin: var(--s-6) 0 0; font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--text-on-light-muted); }
@media (min-width: 900px) {
  .after__grid { grid-template-columns: 1fr 1fr; }
  .plan { padding: var(--s-12); min-height: 380px; align-content: space-between; }
}
.optimised__word { font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; letter-spacing: -0.04em; color: var(--accent-text-light); white-space: nowrap;
  font-size: min(1em, calc((100vw - 2 * var(--gutter)) / 9.5)); /* longest word, [accessibility], must fit a 320px screen */ }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-on-light); }
.service { border-bottom: 1px solid var(--rule-on-light); }
.service__btn { width: 100%; min-height: var(--row-min-h); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); text-align: left; padding: var(--s-5) 0; }
.service__name { font-family: var(--f-display); font-stretch: 120%; font-weight: 760; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; font-size: clamp(1.5rem, 6.6vw, 4.25rem); line-height: 0.95; letter-spacing: -0.025em; transition: font-stretch var(--d-slow) var(--ease-out), color var(--d-base); }
.service__btn:hover .service__name { font-stretch: 125%; }
.service__plus { font-family: var(--f-mono); font-size: 1.5rem; transition: transform var(--d-base) var(--ease-out); }
.service__btn[aria-expanded="true"] .service__plus { transform: rotate(45deg); }
.service__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-slow) var(--ease-out); }
.service__panel > div { overflow: hidden; }
.service.is-open .service__panel { grid-template-rows: 1fr; }
.service__body { display: flex; gap: var(--s-6); align-items: center; padding: 0 0 var(--s-8); color: var(--text-on-light-muted); max-width: 60ch; }
.service__pic { flex: 0 0 64px; height: 64px; }

/* ---------- 06 Process ---------- */
.process__title { font-size: var(--fs-h2); margin-bottom: var(--s-16); max-width: 11ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.step { position: sticky; top: calc(84px + var(--i, 0) * 18px); min-height: 52svh; border-radius: var(--r-card); background: var(--c-graphite); border: 1px solid var(--rule-on-dark); padding: var(--s-8); display: grid; align-content: space-between; gap: var(--s-10); }
.step { min-width: 0; }
.step__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.step__n { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(3.5rem, 14vw, 9rem); line-height: 0.8; letter-spacing: -0.05em; }
.step h3 { font-family: var(--f-display); font-stretch: 115%; font-weight: 760; font-size: var(--fs-h3); margin: 0 0 var(--s-3); letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--text-on-dark-muted); max-width: 38ch; }
.step__status { color: var(--c-iris-glow); display: flex; align-items: center; gap: var(--s-3); }
.step__bar { width: clamp(72px, 22vw, 120px); height: 12px; border: 1px solid currentColor; padding: 2px; }
.step__bar i { display: block; height: 100%; width: var(--p, 0%); background: currentColor; }
@media (min-width: 900px) { .step { padding: var(--s-12); min-height: 46svh; } }

/* ---------- 07 Benefits ---------- */
.benefits__title { font-size: var(--fs-h2); margin-bottom: var(--s-16); max-width: 12ch; }
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.tile { position: relative; border-radius: var(--r-card); background: var(--c-white); padding: var(--s-8); min-height: 300px; display: grid; align-content: space-between; gap: var(--s-8); overflow: hidden; }
.tile h3 { margin: 0 0 var(--s-2); font-family: var(--f-display); font-stretch: 112%; font-weight: 740; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--text-on-light-muted); max-width: 32ch; }
.tile--ink { background: var(--c-ink); color: var(--c-sclera); }
.tile--ink p { color: var(--text-on-dark-muted); }
.tile__art { width: 100%; height: 180px; }
.tile__tag { font-family: var(--f-mono); font-size: clamp(1.75rem, 6vw, 3rem); letter-spacing: -0.04em; color: var(--c-iris-glow); line-height: 1; }
.tile__scope { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-family: var(--f-mono); font-size: var(--fs-sm); }
.tile__scope li::before { content: '✓ '; color: var(--accent-text-light); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1px solid var(--rule-on-light); font-family: var(--f-mono); font-size: var(--fs-sm); }
.chip::before { content: '['; margin-right: 6px; color: var(--accent-text-light); }
.chip::after { content: ']'; margin-left: 6px; color: var(--accent-text-light); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile:nth-child(1) { grid-column: span 3; }
  .tile:nth-child(2) { grid-column: span 3; }
  .tile:nth-child(3) { grid-column: span 2; }
  .tile:nth-child(4) { grid-column: span 2; }
  .tile:nth-child(5) { grid-column: span 2; }
}

/* ---------- 08 Void ---------- */
.void { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.void__frame { position: relative; width: min(100%, 1100px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); }
.void__br { font-family: var(--f-mono); font-weight: 300; font-size: clamp(9rem, 42vw, 30rem); line-height: 0.8; letter-spacing: -0.1em; }
.void__inner { display: grid; gap: var(--s-6); justify-items: center; }
.void__caret { width: 3px; height: clamp(60px, 16vw, 180px); background: var(--c-iris); animation: ws-blink 1.1s steps(1) infinite; }
.void__inner p { margin: 0; font-size: var(--fs-lg); max-width: 18ch; }
.void__inner { min-width: 0; }
@media (max-width: 420px) {
  .void__frame { gap: var(--s-2); }
  .void__br { font-size: 22vw; }
  .void .btn { padding: 0 var(--s-4); }
}

/* ---------- 09 Contact + footer ---------- */
.contact__title { font-size: var(--fs-mega); margin-bottom: var(--s-16); }
@media (min-width: 900px) { .contact__title { font-size: clamp(5rem, 8.6vw, 11rem); } }
.contact__grid { display: grid; gap: var(--s-16); }
.form { display: grid; gap: var(--s-6); max-width: 640px; }
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--text-on-dark-muted); padding: 0; }
.field input, .field textarea { width: 100%; min-height: 56px; padding: var(--s-4) 0; font: inherit; font-size: 1.125rem; color: var(--c-sclera); background: transparent; border: 0; border-bottom: 1px solid var(--rule-on-dark); border-radius: 0; transition: border-color var(--d-base); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { width: 100%; min-height: 56px; padding: var(--s-4) var(--s-8) var(--s-4) 0; font: inherit; font-size: 1.0625rem; color: var(--c-sclera); background: transparent 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='%23a8a8a8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; border: 0; border-bottom: 1px solid var(--rule-on-dark); border-radius: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select:focus { outline: none; border-bottom-color: var(--c-iris-glow); box-shadow: 0 2px 0 var(--c-iris-glow); }
.field select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.field select option { color: var(--c-ink); background: var(--c-sclera); }
.field__hint { font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--c-iris-glow); box-shadow: 0 2px 0 var(--c-iris-glow); }
.field__error { color: #ff8a7a; font-size: var(--fs-sm); min-height: 1.2em; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { position: relative; display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.field .choice input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.choice label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1px solid var(--rule-on-dark); color: var(--c-sclera); font-size: var(--fs-sm); cursor: pointer; transition: background-color var(--d-base), color var(--d-base); }
.choice input:checked + label { background: var(--c-sclera); color: var(--c-ink); }
.choice input:focus-visible + label { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.form__status { font-family: var(--f-mono); color: var(--c-iris-glow); min-height: 1.5em; }
.form__pair { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 600px) { .form__pair { grid-template-columns: 1fr 1fr; } }
.field input::placeholder, .field textarea::placeholder { color: var(--text-on-dark-muted); opacity: 0.6; }
.form__note { margin: 0; font-size: var(--fs-sm); color: var(--text-on-dark-muted); max-width: 60ch; }
.contact__alt { margin: var(--s-6) 0 0; font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.contact__alt a, .footer__meta a[href^="mailto"] { color: var(--c-sclera); text-decoration: underline; text-underline-offset: 3px; }
.form__note a { color: var(--c-sclera); text-decoration: underline; text-underline-offset: 3px; }
.form__title { margin: 0; color: var(--text-on-dark-muted); font-weight: 400; }
.footer { padding: var(--s-16) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 110px); }
.footer__mark { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-6); }
.footer__line { grid-column: 1 / -1; margin: 0 0 var(--s-4); color: var(--text-on-dark-muted); }
.footer__line span { color: var(--c-iris-glow); }
.footer__word svg { width: 100%; height: auto; fill: var(--c-sclera); overflow: visible; }
.footer__eye { width: clamp(64px, 14vw, 180px); aspect-ratio: 328 / 252; }
.footer__meta { margin-top: var(--s-12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-6); color: var(--text-on-dark-muted); font-family: var(--f-mono); font-size: var(--fs-sm); }
.footer__meta nav { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.footer__meta a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.2fr; }
  .footer { padding-bottom: var(--s-12); }
}
