/* ==========================================================================
   Webline v3: the inner pages. Every section stands on a photograph of the
   work it describes; the copy sits on light (a lift of the page's canvas, or
   a white sheet), so the site stays a light site over any picture.
   ========================================================================== */

.hero--inner { --fa: 0.46; --fb: 0.66; }
.hero--inner .hero__title--inner { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.9rem); }
.hero--inner .hero__copy { width: min(40rem, 46vw); }
@media (max-width: 860px) {
  .hero--inner .hero__copy { width: auto; }
  .hero--inner .hero__title--inner { font-size: clamp(2.1rem, 1.1rem + 5vw, 3rem); }
}

/* Night hero (cybersecurity): the lab after dark. The copy turns to light
   ink on a navy lift, and the bar follows it until the page moves. */
.hero--night .hero__stage { background: #0a0f1c; }
.hero--night .shade--hero {
  background:
    linear-gradient(180deg, rgb(6 12 28 / 0.6) 0, rgb(6 12 28 / 0) calc(var(--wl-bar-h) + 3rem)),
    radial-gradient(ellipse 60% 72% at 22% 50%, rgb(6 12 28 / 0.82), rgb(6 12 28 / 0.55) 50%, rgb(6 12 28 / 0) 84%);
}
.hero--night .hero__copy, .hero--night .hero__title { color: #fff; }
.hero--night .hero__lede { color: #D5DCEB; }
.hero--night .eyebrow--crimson { color: #FF7A85; }
.hero--night .btn--primary { background: #fff; color: var(--wl-navy); }
.hero--night .link--crimson { color: #FF8A94; text-decoration-color: rgb(255 138 148 / 0.45); }
@media (hover: hover) and (pointer: fine) { .hero--night .btn--primary:hover { background: #E8EEFA; } }
@media (max-aspect-ratio: 4/5) {
  .hero--night .shade--hero {
    background: linear-gradient(180deg, rgb(6 12 28 / 0.78) 0%, rgb(6 12 28 / 0.5) 26%, rgb(6 12 28 / 0) 42%,
      rgb(6 12 28 / 0) 50%, rgb(6 12 28 / 0.86) 68%, rgb(6 12 28 / 0.94) 100%);
  }
}
body.page-cyber .bar:not(.is-solid) .brand, body.page-cyber .bar:not(.is-solid) .bar__nav a { color: #fff; }
body.page-cyber .bar:not(.is-solid) .status__btn { color: #fff; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); }
body.page-cyber .bar:not(.is-solid) .burger { color: #fff; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); }
body.page-cyber .bar:not(.is-solid) .bar__cta { background: #fff; color: var(--wl-navy); }

.display--md { font-size: clamp(1.9rem, 1rem + 2.4vw, 3.2rem); }
.prose { margin: 0; max-width: 60ch; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); line-height: 1.65; color: var(--wl-lede); text-wrap: pretty; }

/* ============================================================= practices ==
   Six practices, six photographs of that work, one pinned screen. */
.practices__stage { background: #d8dde5; }
.sheet--practice { width: min(29rem, 36vw); }
.sheet--practice .display { font-size: clamp(1.7rem, 1rem + 1.6vw, 2.6rem); }
.practice-list { position: relative; margin-top: 1.4rem; min-height: 9.5rem; }
.practice { position: absolute; left: 0; right: 0; top: 0; padding-top: 1.1rem; border-top: 1px solid var(--sc-hairline-strong); }
.practice__n { display: block; font: 500 0.78rem/1 var(--sc-font-mono); letter-spacing: 0.08em; color: var(--wl-teal-text); }
.practice h3 { margin: 0.55rem 0 0; font-size: clamp(1.25rem, 1rem + 0.6vw, 1.6rem); font-weight: 640; letter-spacing: -0.028em; color: var(--wl-navy); }
.practice p { margin: 0.5rem 0 0; font-size: 0.98rem; line-height: 1.55; color: var(--wl-lede); }
.ticks { display: flex; gap: 6px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ticks li { flex: 1; height: 3px; border-radius: 2px; background: rgb(10 36 104 / 0.14); transition: background-color 300ms var(--sc-ease-out); }
.ticks li.is-on { background: var(--c, var(--wl-teal)); }
.ticks--crimson { --c: var(--wl-crimson); }
@media (max-aspect-ratio: 4/5) {
  .practices .gallery { top: var(--wl-bar-h); bottom: auto; height: 44%; }
  .practices__stage { background: var(--sc-canvas); }
  .sheet--practice { width: auto; }
  .sheet--practice .display { font-size: 1.45rem; }
  .practice-list { margin-top: 0.9rem; min-height: 8.6rem; }
  .practice p { font-size: 0.9rem; }
}

/* ============================================================== feature ==
   A section that stands on its own photograph. The picture arrives as an
   inset card and opens to the full screen as the section comes up. */
.feature, .band { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.feature { --e: clamp(0, var(--sc-p, 0) / 0.34, 1); }
.band { --e: clamp(0, var(--sc-p, 0) / 0.34, 1); }
.feature > .frame, .band > .frame {
  clip-path: inset(calc((1 - var(--e)) * 6%) calc((1 - var(--e)) * 7%) round calc((1 - var(--e)) * 28px));
}
.feature > .frame img, .band > .frame img { transform: scale(calc(1.16 - var(--sc-p, 0) * 0.2)); }
.feature__body, .band__copy { position: relative; z-index: 4; width: 100%; padding-block: calc(var(--wl-bar-h) + 2.5rem) 3rem; }
.feature .sheet { position: relative; left: auto; top: auto; width: min(31rem, 100%); }
.feature--right .feature__body { display: flex; justify-content: flex-end; }
.feature .split__body > .btn, .feature .split__body > .link { justify-self: start; margin-top: 1.6rem; }
.feature .sheet .display { font-size: clamp(1.8rem, 1rem + 2vw, 2.9rem); }
.feature .prose { font-size: 1rem; }
.feature .prose + .prose { margin-top: 0.9rem; }
.feature .sheet > .btn, .feature .sheet > .link { margin-top: 1.5rem; }
@media (max-aspect-ratio: 4/5), (max-width: 860px) {
  .feature, .band { display: block; min-height: 0; }
  .feature > .frame, .band > .frame { position: relative; height: 64vw; min-height: 260px; clip-path: none; }
  .feature > .shade, .band > .shade { display: none; }
  .feature__body { padding-block: 0 var(--sc-section); margin-top: -3rem; }
  .feature--right .feature__body { display: block; }
  .feature .sheet { width: auto; box-shadow: var(--sc-e3), 0 0 0 1px var(--sc-hairline); }
  .band__copy { padding-block: 1.5rem var(--sc-section); }
}
@media (prefers-reduced-motion: reduce) {
  .feature > .frame, .band > .frame { clip-path: none; }
  .feature > .frame img { transform: none; }
}

.checks { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; }
.checks li { display: flex; gap: 0.8rem; align-items: baseline; padding: 0.72rem 0; border-top: 1px solid var(--sc-hairline); font-size: 1rem; color: var(--wl-navy); }
.checks li:last-child { border-bottom: 1px solid var(--sc-hairline); }
.checks li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--c, var(--wl-cobalt)); transform: translateY(-0.1rem); }
.checks--teal { --c: var(--wl-teal); }
.checks--crimson { --c: var(--wl-crimson); }

/* ================================================================== band == */
.band__copy .display { max-width: 13ch; }
.band__lede { margin: 1.2rem 0 1.8rem; max-width: 32rem; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.6; color: var(--wl-lede); }

/* =================================================================== faq == */
.faq { padding-block: calc(var(--sc-section) * 0.8); background: #fff; border-block: 1px solid var(--sc-hairline); }
.faq__list { margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.faq__item { padding-top: 1.4rem; border-top: 2px solid var(--wl-navy); }
.faq__item dt { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); font-weight: 620; letter-spacing: -0.022em; line-height: 1.2; color: var(--wl-navy); }
.faq__item dd { margin: 0.9rem 0 0; font-size: 0.99rem; line-height: 1.62; color: var(--wl-lede); }
@media (max-width: 960px) { .faq__list { grid-template-columns: 1fr; } }

/* ============================================================== services ==
   The six assessments arrive as one stack of cards and burst out into their
   grid as the section rises (motion.js). */
.services { padding-block: var(--sc-section); background: var(--sc-canvas); overflow: hidden; }
.services__head { max-width: 40rem; }
.deck { position: relative; margin: clamp(2.2rem, 4vw, 3.5rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sc-e2), 0 0 0 1px var(--sc-hairline); will-change: transform; }
.card__img { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #1a2233; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%; max-width: none; transition: transform 900ms var(--sc-ease-out); }
.card__body { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 0.4rem; padding: 1.2rem 1.3rem 1.4rem; }
.card .scope__n { grid-row: span 2; font: 500 0.8rem/1.9 var(--sc-font-mono); letter-spacing: 0.08em; color: var(--wl-crimson-text); }
.card h3 { margin: 0; font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem); font-weight: 630; letter-spacing: -0.024em; color: var(--wl-navy); }
.card p { margin: 0.45rem 0 0; font-size: 0.96rem; line-height: 1.55; color: var(--wl-lede); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img img { transform: scale(1.05); } }
.deck--flat .card { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 700ms var(--sc-ease-out), transform 900ms var(--sc-ease-out); }
.deck--flat .card.is-in { opacity: 1; transform: none; }
@media (max-width: 1000px) { .deck { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .deck { grid-template-columns: 1fr; } }

/* ================================================================ report == */
.report { padding-block: var(--sc-section); background: #EEF1F6; }
.report__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.report__photo { margin: 2rem 0 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: var(--sc-e3); position: relative; }
.report__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; max-width: none; }
.report__page {
  position: relative; background: #fff; border-radius: 6px; padding: clamp(1.6rem, 4vw, 3.2rem);
  box-shadow: 0 1px 2px rgb(10 36 104 / 0.06), 0 24px 60px -24px rgb(10 36 104 / 0.3); transform: rotate(-0.6deg);
}
.report__page::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 6px 0 0 6px; background: linear-gradient(var(--wl-crimson), var(--wl-crimson) 50%, var(--wl-teal) 50%, var(--wl-teal)); }
.report__label { margin: 0 0 1.4rem; font: 500 0.75rem/1 var(--sc-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-ink-soft); }
.report__toc { margin: 0; padding: 0; list-style: none; display: grid; }
.report__toc li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; padding: 1rem 0; border-top: 1px dashed var(--sc-hairline-strong); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); line-height: 1.5; color: var(--wl-navy); }
.report__i { font: 600 0.9rem/1.6 var(--sc-font-mono); color: var(--wl-crimson-text); }
@media (max-width: 860px) { .report__inner { grid-template-columns: 1fr; } .report__page { transform: none; } .report__photo { aspect-ratio: 4 / 3.4; } }

/* ================================================================= rules == */
.rules { position: relative; padding-block: 0 var(--sc-section); background: var(--sc-canvas); }
.rules__figure { position: relative; margin: 0; height: min(86vh, 56vw); overflow: hidden; }
.rules__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 60%) 45%; max-width: none; transform: scale(calc(1.12 - var(--sc-p, 0) * 0.14)); }
.rules__inner { margin-top: calc(min(86vh, 56vw) * -0.3); position: relative; z-index: 1; }
.rules__head { max-width: 30rem; padding: clamp(1.4rem, 3vw, 2.4rem); background: rgb(255 255 255 / 0.95); border-radius: 16px; box-shadow: var(--sc-e3); }
.rules__list { margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.rules__list li { padding-top: 1.3rem; border-top: 2px solid var(--wl-navy); }
.rules__n { font: 500 0.78rem/1 var(--sc-font-mono); letter-spacing: 0.08em; color: var(--wl-cobalt-text); }
.rules__list h3 { margin: 0.7rem 0 0; font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); font-weight: 630; letter-spacing: -0.024em; color: var(--wl-navy); }
.rules__list p { margin: 0.55rem 0 0; font-size: 0.97rem; line-height: 1.58; color: var(--wl-lede); }
@media (max-width: 1000px) { .rules__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rules__list { grid-template-columns: 1fr; } .rules__figure { height: 78vw; } .rules__inner { margin-top: -3rem; } }
@media (prefers-reduced-motion: reduce) { .rules__figure img { transform: none; } }

/* ============================================================== anywhere ==
   Sunrise over Colombo becomes the same studio after dark on a call with a
   client whose day is just starting: "brief us in your evening, review the
   work in your morning". */
.anywhere__stage { background: #1b2233; }
.sheet--anywhere { width: min(30rem, 38vw); }
.sheet--anywhere .display { font-size: clamp(1.8rem, 1rem + 2vw, 2.9rem); }
.sheet--anywhere .prose { font-size: 1rem; margin-top: 1rem; }
.sheet--anywhere .link { margin-top: 1.3rem; }
.clocks { display: flex; gap: 0; margin-top: 1.4rem; border: 1px solid var(--sc-hairline-strong); border-radius: 12px; width: fit-content; background: #fff; }
.clocks__cell { display: grid; gap: 0.35rem; padding: 0.8rem 1.3rem; }
.clocks__cell + .clocks__cell { border-left: 1px solid var(--sc-hairline); }
.clocks__label { font: 500 0.7rem/1 var(--sc-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.clocks__time { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--wl-navy); font-variant-numeric: tabular-nums; }
@media (max-aspect-ratio: 4/5) {
  .anywhere .gallery { top: var(--wl-bar-h); bottom: auto; height: 42%; }
  .anywhere__stage { background: var(--sc-canvas); }
  .sheet--anywhere { width: auto; }
  .sheet--anywhere .display { font-size: 1.45rem; }
  .sheet--anywhere .prose { font-size: 0.88rem; margin-top: 0.6rem; }
  .clocks { margin-top: 0.8rem; }
  .clocks__cell { padding: 0.55rem 0.9rem; }
  .clocks__time { font-size: 1.15rem; }
}

/* =============================================================== contact ==
   The form on the canvas, the engineer who will answer it on the right,
   held on screen while the form scrolls. */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 100svh; }
.contact__col { padding: calc(var(--wl-bar-h) + clamp(2rem, 6vh, 4.5rem)) clamp(1.5rem, 5vw, 5rem) var(--sc-section) var(--sc-gutter); }
.contact__main { max-width: 44rem; }
.contact__media { position: relative; }
.contact__photo { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; max-width: none; animation: settle 2.8s cubic-bezier(0.2, 0.7, 0.15, 1) both; }
.contact__title { margin: 0; font-weight: 640; font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4.4rem); line-height: 1; letter-spacing: -0.042em; color: var(--wl-navy); text-wrap: balance; }
.contact__lede { margin: 1.2rem 0 0; max-width: 36rem; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.6; color: var(--wl-lede); }
.note { margin: 1.6rem 0 0; padding: 1rem 1.2rem; border-radius: 12px; font-size: 1rem; line-height: 1.5; }
.note--ok { background: rgb(0 179 170 / 0.1); color: #005E58; box-shadow: inset 0 0 0 1px rgb(0 179 170 / 0.35); }
.note--err { background: rgb(255 42 59 / 0.08); color: #A50D26; box-shadow: inset 0 0 0 1px rgb(255 42 59 / 0.3); }
.note a { color: inherit; font-weight: 600; }
.note:focus { outline: none; }

.form { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.25rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 560; color: var(--wl-navy); }
.field__opt { font-weight: 400; color: var(--sc-ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 0.95rem; border-radius: var(--wl-r); border: 1px solid var(--sc-hairline-strong);
  background: #fff; font-size: 1rem; color: var(--wl-navy);
  transition: border-color 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgb(10 36 104 / 0.36); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--wl-cobalt); box-shadow: 0 0 0 3px rgb(10 139 255 / 0.22); }
.field [aria-invalid="true"] { border-color: #C8102E; box-shadow: 0 0 0 3px rgb(255 42 59 / 0.12); }
.select { position: relative; display: block; }
.select select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid var(--wl-navy); border-bottom: 1.5px solid var(--wl-navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__hint { font-size: 0.85rem; color: var(--sc-ink-soft); }
.field__error { font-size: 0.85rem; font-weight: 550; color: #C8102E; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { margin-top: 0.4rem; }

.contact__card { margin-top: clamp(2.5rem, 6vh, 4rem); padding: clamp(1.25rem, 2.5vw, 1.8rem); background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--sc-hairline), var(--sc-e1); max-width: 44rem; }
.contact__h { margin: 0; font-size: 1.35rem; font-weight: 640; letter-spacing: -0.025em; color: var(--wl-navy); }
.contact__p { margin: 0.5rem 0 0; font-size: 0.99rem; color: var(--wl-lede); }
.contact__mail { display: inline-block; margin-top: 0.9rem; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-weight: 620; letter-spacing: -0.02em; color: var(--wl-cobalt-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.contact__facts { margin: 1.3rem 0 0; display: grid; }
.contact__facts > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--sc-hairline); font-size: 0.97rem; }
.contact__facts dt { color: var(--sc-ink-soft); }
.contact__facts dd { margin: 0; color: var(--wl-navy); }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__media { order: -1; }
  .contact__photo { position: relative; height: 56vw; min-height: 240px; }
  .contact__col { padding-top: 2rem; padding-right: var(--sc-gutter); }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .contact__photo img { animation: none; } }

/* ============================================================== no script == */
html:not(.js) .practice { position: relative; margin-bottom: 1.2rem; }
html:not(.js) .practice-list { min-height: 0; }
html:not(.js) .practices__stage, html:not(.js) .anywhere__stage { height: auto; min-height: 100svh; }
html:not(.js) .practices .sheet, html:not(.js) .anywhere .sheet { position: relative; margin: calc(var(--wl-bar-h) + 1.5rem) 0 1.5rem var(--sc-gutter); left: auto; top: auto; }
.band--static { --e: 1; }
.band--static > .frame img { transform: none; }

/* the quick ways in, under the contact intro */
.contact__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 1.4rem; }
.contact__quick .wa { width: 1.1rem; height: 1.1rem; color: #128C4B; }
.contact__addr { font-style: normal; }
.note--compose p { margin: 0; }
.note__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 0.9rem; }
.note__actions .btn--primary { color: #fff; font-weight: 550; }
.note__actions .btn--ghost { color: var(--wl-navy); font-weight: 550; }
