/* =========================================================
   v2.4.3 — HERO CAROUSEL (Figma 96:1634)
   5 slides, full-viewport-width, auto-rotate every 5s.
   ========================================================= */
.hero__carousel {
    position: relative;
    /* v2.6.101 — .hero-wrap is now full-vw, so the carousel just takes
       100% of its parent. Removed the 100vw + negative-margin trick
       that used to escape the 1280 cap (it got clipped by .hero's
       overflow:hidden on zoomed-out viewports). */
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    padding: 0;
    margin-top: 32px;
    box-sizing: border-box;
    user-select: none;
}
.hero__carousel-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a1a;
}
.hero__slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .8s cubic-bezier(.7, 0, .3, 1);
    will-change: transform;
}
.hero__slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}
.hero__slide img,
.hero__slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* v2.6.87 — scroll-runway parallax: video subtly zooms in (1.0 → 1.08)
   as the user scrolls through the 100vh hero runway. JS sets
   `transform: scale(...)` per frame; transform-origin stays center
   so the crop is symmetric, and .hero__slide's overflow:hidden
   hides any edge spill. */
.hero__slide-video {
    transform-origin: center center;
    will-change: transform;
}
/* Soft gradient overlay at the bottom for legible text. */
.hero__slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
.hero__slide-text {
    position: absolute;
    /* v2.5.7 — Figma 166:2078/2079: caption nudged downward so its subtitle
       baseline sits on the same row as the dash indicators on the right.
       Left inset scales softly from a small viewport gutter up to the Figma
       112px on a 1920 canvas. */
    left: clamp(20px, 5.8vw, 112px);
    bottom: 26px;
    z-index: 2;
    color: #fff;
    max-width: min(860px, 70vw);
}
.hero__slide-title {
    /* v2.5.7 — Figma 28px Medium for caption title. */
    font-size: clamp(18px, 1.9vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 6px;
    color: #fff;
}
.hero__slide-sub {
    /* v2.5.7 — Figma 16px Regular for caption subtitle. */
    font-size: clamp(12px, 1.05vw, 16px);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

/* Progress bar — flush with the bottom edge of the carousel. Fills
   0→100% over a fixed 7s per slide via CSS @keyframes (smooth at 60fps,
   independent of video duration). */
.hero__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: rgba(245, 245, 245, 0.20);
    z-index: 3;
    pointer-events: none;
}
.hero__progress-fill {
    height: 100%;
    width: 0;
    background: rgba(245, 245, 245, 0.65);
}
.hero__progress-fill.is-running {
    animation: hero-progress 7s linear forwards;
}
.hero__progress-fill.is-paused {
    animation-play-state: paused;
}
@keyframes hero-progress {
    from { width: 0; }
    to   { width: 100%; }
}

/* Dash indicators — 4-5 small white pills stacked in the bottom right. */
.hero__indicators {
    position: absolute;
    /* v2.5.7 — match Figma 166:208x right-edge gutter at 1920 (~125px),
       scale down for narrower viewports. Vertically aligned with the
       slide caption's subtitle baseline (both bottom:26px). */
    right: clamp(20px, 6.5vw, 125px);
    bottom: 26px;
    display: flex;
    gap: 6px;
    z-index: 4;
}
.hero__dash {
    width: 22px;
    height: 3px;
    background: rgba(255, 255, 255, 0.40);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
    border-radius: 1px;
}
.hero__dash:hover { background: rgba(255, 255, 255, 0.7); }
.hero__dash.is-active { background: #ffffff; transform: scaleY(1.3); }

/* Mobile: shrink padding and bring text closer to the edge. */
@media (max-width: 700px) {
    /* v2.4.44 — opt out of fit-to-viewport on mobile; portrait too cramped. */
    .hero { height: auto; display: block; }
    .hero__carousel { flex: none; aspect-ratio: 16 / 11; min-height: 0; }
    .hero__slide-text { left: 20px; bottom: 50px; }
    .hero__indicators { right: 20px; bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__slides { transition: none; }
    .hero__progress-fill.is-running { animation: none; width: 100%; }
}

/* =========================================================
   v2.6.86 — hero-wrap scroll runway: copy fades + collapses,
   carousel expands to fill the viewport in-place. Mobile opt-out
   handled by JS clearing inline styles + the .hero-wrap height
   override below. */
@media (max-width: 700px) {
    .hero-wrap { height: auto; }
    .hero { position: relative; top: auto; height: auto; overflow: visible; }
}

/* =========================================================
   v2.4.x — DROPDOWN NAV + 5 PAGE TEMPLATES (Figma-accurate)
   Loaded after main.css to override.
   Figma source: bHsX3bIqFsAozx1nsx125O (1280 canvas).
   Pixel values are matched 1:1 within the section's content
   wrapper; the wrapper itself scales soft-cap 1600px.
   ========================================================= */

/* ---------- Header dropdown nav ---------- */
.navbar__links { gap: 32px; }
.navbar__item { position: relative; display: flex; align-items: center; }
.navbar__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.navbar__link-label { display: inline-block; }
.navbar__caret {
    display: inline-block;
    width: 10px; height: 10px;
    position: relative;
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.navbar__caret::before {
    content: "";
    position: absolute; inset: 0; margin: auto;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}
.navbar__item--has-sub:hover .navbar__caret,
.navbar__item--has-sub:focus-within .navbar__caret { transform: rotate(180deg); }

.navbar__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(20, 30, 60, 0.14), 0 2px 6px rgba(20, 30, 60, 0.08);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility .25s;
    z-index: 1100;
}
.navbar__dropdown::before {
    content: ""; position: absolute;
    top: -14px; left: 0; right: 0; height: 14px;
}
.navbar__dropdown::after {
    content: ""; position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px; height: 14px;
    background: #ffffff;
    box-shadow: -2px -2px 4px rgba(20, 30, 60, 0.04);
}
.navbar__item--has-sub:hover .navbar__dropdown,
.navbar__item--has-sub:focus-within .navbar__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0);
}
.navbar__sub { list-style: none; margin: 0; padding: 0; }
.navbar__sub li a,
.navbar__sub-item > a {
    display: block;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.navbar__sub li a:hover,
.navbar__sub-item:hover > a { color: var(--color-primary); background: rgba(235, 71, 0, 0.06); }

/* Album-preview dropdown variant — text column on the left, image
   thumbnail on the right swaps as user hovers each sub-item. Used by
   the Portfolios menu. */
.navbar__dropdown--album {
    padding: 14px;
    width: 560px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: stretch;
}
.navbar__dropdown--album .navbar__sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.navbar__dropdown--album .navbar__sub-item > a {
    padding: 10px 14px;
    border-radius: 8px;
    white-space: normal;
}
.navbar__dropdown--album .navbar__sub-item:hover > a {
    background: rgba(235, 71, 0, 0.08);
    color: var(--color-primary);
}
.navbar__dropdown--album .navbar__sub-preview { display: none; }

/* Image preview pane on the right — each sub-item's thumb stacks here
   absolutely; CSS hover swaps which one is visible. */
.navbar__album {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
    aspect-ratio: 4 / 3;
    min-height: 100%;
}
.navbar__dropdown--album .navbar__sub-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1);
    z-index: 1;
}
/* Hoist thumb images out of the <li> and into the album pane visually.
   Anchored to the dropdown (the nearest positioned ancestor), spanning
   the right-hand album column. */
.navbar__dropdown--album .navbar__sub-item .navbar__sub-preview {
    display: block;
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: calc(14px + 200px + 16px);
    pointer-events: none;
    border-radius: 10px;
    overflow: hidden;
}
.navbar__dropdown--album .navbar__sub-item .navbar__sub-preview img {
    border-radius: 10px;
}
/* Default: show the FIRST sub-item's preview. */
.navbar__dropdown--album .navbar__sub-item:first-child .navbar__sub-preview img {
    opacity: 1;
    transform: scale(1);
}
/* When any item is hovered, hide the default first one. */
.navbar__dropdown--album .navbar__sub:hover .navbar__sub-item:first-child .navbar__sub-preview img {
    opacity: 0;
}
/* And reveal the hovered item's preview. */
.navbar__dropdown--album .navbar__sub-item:hover .navbar__sub-preview img {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Services 4-column mega-menu (Figma 279:1854). Right-aligned to the Services
   item so it never overflows the right edge; grey thumb header + link list per
   column. */
/* Fixed + right-aligned to the navbar gutter so the panel's right edge lines up
   with the GET A QUOTE button (not the Services item). The panel is wide enough
   to still sit under Services, so hover transfers fine (it's a DOM child of the
   Services <li>). top = 76px navbar + 14px gap. */
.navbar__dropdown--mega {
    position: fixed; top: 90px; left: auto;
    right: clamp(20px, 3.3vw, 63px);
    transform: translateY(8px);
    min-width: 0; width: max-content; max-width: min(92vw, 920px);
    padding: 22px;
}
.navbar__item--has-sub:hover .navbar__dropdown--mega,
.navbar__item--has-sub:focus-within .navbar__dropdown--mega { transform: translateY(0); }
.navbar__dropdown--mega::after { display: none; } /* arrow would point at GET A QUOTE, not Services */
.navbar__mega { display: flex; gap: 22px; }
.navbar__mega-col { flex: 0 0 168px; width: 168px; }
.navbar__mega-head {
    position: relative; display: flex; align-items: flex-end; height: 92px; padding: 12px;
    border-radius: 8px; background: #c9c9c9; overflow: hidden; margin-bottom: 12px;
}
.navbar__mega-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.navbar__mega-head::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 62%);
}
.navbar__mega-head.is-placeholder::after { background: none; }
.navbar__mega-title { position: relative; z-index: 1; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .01em; }
.navbar__mega-links { list-style: none; margin: 0; padding: 0; }
.navbar__mega-links li { margin: 0; }
.navbar__mega-links a {
    display: block; padding: 6px 2px; font-size: 13px; font-weight: 500;
    color: var(--color-text); white-space: nowrap;
    transition: color .2s ease;
}
.navbar__mega-links a:hover { color: var(--color-primary); }

/* =========================================================
   Shared page chrome — soft pastel rainbow wash near the top,
   used by Portfolios/Blog-listing/Article/Contact (Figma BG_ABOUT US).
   ========================================================= */
.page-bg-wash {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 592px;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}
.page-bg-wash::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -140px;
    width: 1200px;
    height: 690px;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side at 18% 30%, rgba(255, 192, 218, 0.55), transparent 65%),
        radial-gradient(closest-side at 82% 28%, rgba(160, 215, 255, 0.55), transparent 65%),
        radial-gradient(closest-side at 50% 70%, rgba(255, 232, 188, 0.45), transparent 65%);
    filter: blur(40px);
    opacity: 0.65;
}

/* =========================================================
   PORTFOLIO LISTING — Figma 96:802 ("Selected Works")
   ========================================================= */
.works {
    position: relative;
    padding: 76px 40px 120px;
    max-width: 1280px;
    margin: 0 auto;
}
/* Figma 118:2324 — coloured accent anchored upper-left, rotated 180° so
   the asset's blob (which sits in its lower-left quadrant) ends up
   behind the "Selected" word of the title. Per Figma: container centred
   at calc(21.88% − 23.77px) of 1280 canvas, top:53, width:605.785px,
   image overflowing by ~41% top/bottom and ~29% left/right. The asset
   is intrinsically soft so we render at full alpha for visibility. */
.works__accent {
    position: absolute;
    top: 53px;
    left: clamp(140px, calc(21.88% - 23.77px), 256px);
    transform: translateX(-50%) rotate(180deg);
    width: clamp(480px, 47.3vw, 605.785px);
    aspect-ratio: 961 / 786;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}
.works__accent::before {
    content: "";
    position: absolute;
    inset: -41.26% -29.35%;
    background: url('../images/coloured-accent.webp') center/contain no-repeat;
}
/* Stacking: head/grid/paging sit above the accent (z=0), but the FILTER
   row needs z-index higher than the grid so its Others dropdown panel
   paints on top of the cards below it. */
.works__head, .works__grid, .works__paging { position: relative; z-index: 1; }
.works__filters { position: relative; z-index: 20; }
.works__head {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: end;
    margin-bottom: 48px;
}
/* Figma 96:942 — "Selected" Regular black, "Works" Medium gray on a
   second line. Not italic. 97.333px / line-height 0.905. */
.works__title {
    font-size: 97.333px;
    font-weight: 400;
    line-height: 0.905;
    letter-spacing: -0.01em;
    margin: 0;
}
.works__title-line2 {
    display: block;
    font-weight: 500;
    color: #535353;
}
.works__intro {
    font-size: 14.985px;
    line-height: 1.5;
    color: rgba(35, 31, 32, 0.85);
    margin: 0;
    text-align: left;
}
/* =========================================================
   Others dropdown — Figma 62:1181. Used on BOTH homepage portfolio
   filters (.portfolio__filter-*) and /portfolios/ (.portfolio__filter-*
   reused via same classes).
   ========================================================= */
/* Trigger when panel is open: SemiBold ITALIC blue, caret flipped up. */
.portfolio__filter-other.is-active {
    color: var(--color-accent);
    font-weight: 600;
    font-style: italic;
}
/* Panel: 384px wide, frosted-glass white 88%, deep shadow. */
.portfolio__filter-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    width: 384px;
    max-width: calc(100vw - 80px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 16px 32.64px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 15px 0;
    z-index: 50;
}
.portfolio__filter-panel[hidden] { display: none; }
/* Each item: 46px tall, 20px Medium black. Centered text block in 335px-wide
   row aligned to the panel content area (42px left padding from Figma). */
.portfolio__filter-panel-item {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    padding: 11px 42px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: color .2s ease, background .2s ease;
}
/* Hover/active: faint white frosted backdrop + blue SemiBold (matches
   Figma's "HoverColor" overlay component blur(17.5px) opacity 66%). */
.portfolio__filter-panel-item:hover,
.portfolio__filter-panel-item:focus-visible {
    color: var(--color-accent);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    outline: none;
}
.portfolio__filter-panel-item.is-active {
    color: var(--color-accent);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
}
@media (max-width: 700px) {
    .portfolio__filter-panel { width: calc(100vw - 48px); }
    .portfolio__filter-panel-item { font-size: 17px; padding: 10px 24px; }
}

/* Filter row — mirrors homepage `.portfolio__filters` exactly: 16px Medium,
   --color-border default, blue --color-accent on hover/active. No top/bottom
   borders (homepage doesn't have them). */
.works__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    min-height: 20.8px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}
.works__filter,
.works__filter--others {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-border);
    font-family: inherit;
    line-height: 1.2;
    transition: color .2s ease;
}
.works__filter:hover,
.works__filter--others:hover { color: var(--color-accent); }
.works__filter.is-active { color: var(--color-accent); font-weight: 600; }
.works__filter--others { display: inline-flex; align-items: center; gap: 6px; }
.works__filter--others .navbar__caret::before { border-top-color: currentColor; }

/* Figma 96:802 — 2 columns @ 583px wide each, ~33px gap, 16:9 thumbs. */
.works__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 33px;
}
.works__card { display: block; }
.works__thumb {
    display: block;
    position: relative;
    aspect-ratio: 583 / 328;
    overflow: hidden;
    border-radius: 4px;
    background: #f4f4f4;
}
/* Two-layer thumb: rest PNG fades OUT, hover GIF fades IN, both scale up
   slightly — same trio of effects the homepage portfolio uses. GIF src
   is set lazily on first hover (see main.js [data-hover-src]). */
.works__thumb-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.works__thumb-img--rest  { opacity: 1; }
.works__thumb-img--hover { opacity: 0; }
/* Two-layer crossfade: featured image fades OUT, work_hover image fades IN,
   both zoom slightly. Hover src is lazy-loaded on first hover (main.js). */
.works__thumb:hover .works__thumb-img--rest,
.works__thumb:focus-within .works__thumb-img--rest  { opacity: 0; }
.works__thumb:hover .works__thumb-img--hover,
.works__thumb:focus-within .works__thumb-img--hover { opacity: 1; }
.works__thumb:hover .works__thumb-img,
.works__thumb:focus-within .works__thumb-img        { transform: scale(1.04); }
/* Title turns blue on card hover — same as homepage. !important guards
   against cache lag where an older v240.css still ships the static rule
   later in the file with equal specificity. */
.works__card:hover .works__card-title,
.works__card:focus-within .works__card-title { color: var(--color-accent) !important; }
/* Fallback for any plain <img> still inside .works__thumb (legacy paths). */
.works__thumb > img:not(.works__thumb-img) {
    width: 100%; height: 100%;
    object-fit: cover;
}
.works__thumb-tag {
    position: absolute; top: 10px; right: 10px;
    background: var(--color-primary); color: #fff;
    font-weight: 700; font-size: 11px;
    padding: 5px 7px; border-radius: 3px;
}
/* Figma 96:809 — 21.788px Medium, black, just under the thumb. */
.works__card-title {
    font-size: 21.788px;
    font-weight: 500;
    margin: 18px 0 4px;
    color: var(--color-text);
    line-height: 1.3;
    transition: color .25s ease;
}
/* Figma 96:810 — 14.007px Medium, 65% black. */
.works__card-sub {
    font-size: 14.007px;
    font-weight: 500;
    color: rgba(35, 31, 32, 0.65);
    margin: 0;
    line-height: 1.4;
}
/* Figma 96:945 — "CLICK HERE" white overlay on the first card thumb.
   Positioned roughly center-ish (35% from left, 44% from top per the
   1280-canvas math). Inter not loaded; Figtree is close enough at 35px. */
.works__click-here {
    position: absolute;
    left: 35%;
    top: 44%;
    font-size: clamp(22px, 2.6vw, 35px);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
    transition: opacity .35s ease;
}
/* Hide once the hover image kicks in so it doesn't sit on top of it. */
.works__thumb:hover .works__click-here,
.works__thumb:focus-within .works__click-here { opacity: 0; }

/* Figma 96:811 — tag row, blue #1566e0, 14.007px Medium, 5.115px gap,
   3.07px round dot separators. */
.works__card-tags {
    list-style: none;
    display: flex;
    gap: 5.115px;
    align-items: center;
    margin: 12px 0 0;
    padding: 0;
    color: var(--color-accent);
    font-size: 14.007px;
    font-weight: 500;
    flex-wrap: wrap;
}
.works__card-tag-sep {
    width: 3.07px; height: 3.07px;
    background: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
}
.works__paging {
    display: flex; justify-content: center; align-items: center;
    gap: 14px; margin-top: 60px;
}
.works__page-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d4d4d4; border: 0; cursor: pointer; padding: 0;
    transition: transform .2s ease, background .2s ease;
}
.works__page-dot.is-active {
    background: var(--color-text); transform: scale(1.4);
}

/* =========================================================
   PORTFOLIO DETAIL — Figma 96:956
   ========================================================= */
.work-detail {
    position: relative;
    padding: 100px 40px 120px;
    max-width: 1280px;
    margin: 0 auto;
}
.work-detail__year {
    font-size: 14.985px;
    font-weight: 400;
    color: var(--color-text);
    text-transform: capitalize;
    margin: 0 0 16px;
    line-height: 1.5;
}
.work-detail__title {
    font-size: 66.667px;
    font-weight: 400;
    line-height: 1.086;
    letter-spacing: -0.005em;
    margin: 0 0 12px;
    max-width: 894px;
}
.work-detail__sub {
    font-size: 21.333px;
    font-weight: 500;
    color: rgba(35, 31, 32, 0.65);
    margin: 0 0 60px;
}
.work-detail__hero {
    position: relative;
    aspect-ratio: 1200 / 615;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    margin-bottom: 100px;
}
.work-detail__hero img,
.work-detail__hero video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Play button swaps the poster for a YouTube/Vimeo iframe in place (main.js). */
.work-detail__hero iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.work-detail__hero-play {
    position: absolute; inset: 0; margin: auto;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 0;
    backdrop-filter: blur(2px);
    transition: transform .25s ease, background .25s ease;
}
.work-detail__hero-play:hover { transform: scale(1.08); background: #fff; }
.work-detail__hero-play::before {
    content: ""; width: 0; height: 0; margin-left: 6px;
    border-left: 22px solid #000;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}
.work-detail__hero-tag {
    position: absolute; top: 16px; right: 16px;
    background: var(--color-primary); color: #fff;
    font-weight: 700; font-size: 14px;
    padding: 8px 10px; border-radius: 3px;
    line-height: 1;
}

.work-detail__overview {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    margin-bottom: 60px;
}
.work-detail__overview-h {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text);
}
.work-detail__overview-body p {
    font-size: 14.667px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0 0 20px;
}
.work-detail__overview-body p:last-child { margin-bottom: 0; }

.work-detail__phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 80px;
}
.work-detail__phones > div {
    aspect-ratio: 583 / 328;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}
.work-detail__phones img {
    width: 100%; height: 100%; object-fit: cover;
}

.work-detail__section-h {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 32px;
    color: var(--color-text);
}

.work-detail__storyboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}
.work-detail__storyboard > div {
    aspect-ratio: 285 / 161;
    background: #d9d9d9;
    border-radius: 6px;
}

/* Section wrapper — shared spacing for Storyboard / Styleframes / 3D. */
.work-detail__section { margin-bottom: 80px; }

.work-detail__styleframes,
.work-detail__3d {
    display: grid;
    gap: 20px;
}
.work-detail__sf-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.work-detail__sf-2col > div {
    aspect-ratio: 590 / 334;
    background: #d9d9d9;
    border-radius: 6px;
}
.work-detail__sf-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.work-detail__sf-3col > div {
    aspect-ratio: 386 / 219;
    background: #d9d9d9;
    border-radius: 6px;
}
.work-detail__sf-6col,
.work-detail__3d-6col {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.work-detail__sf-6col > div,
.work-detail__3d-6col > div {
    aspect-ratio: 183 / 103;
    background: #d9d9d9;
    border-radius: 6px;
}
.work-detail__3d-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.work-detail__3d-4col > div {
    aspect-ratio: 285 / 162;
    background: #d9d9d9;
    border-radius: 6px;
}
/* Photo fills each fixed frame, cropped to fit (size frame first, then crop). */
.work-detail__storyboard > div,
.work-detail__sf-2col > div,
.work-detail__sf-3col > div,
.work-detail__sf-6col > div,
.work-detail__3d-6col > div,
.work-detail__3d-4col > div {
    overflow: hidden;
}
.work-detail__storyboard > div img,
.work-detail__sf-2col > div img,
.work-detail__sf-3col > div img,
.work-detail__sf-6col > div img,
.work-detail__3d-6col > div img,
.work-detail__3d-4col > div img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Balanced grids (storyboard / styleframes / category) — fixed 16:9 cells,
   column count chosen in PHP so rows stay even with no lonely orphan. */
.work-detail__balgrid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}
.work-detail__balgrid:last-child { margin-bottom: 0; }
.work-detail__balgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.work-detail__balgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.work-detail__balgrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.work-detail__balgrid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.work-detail__balgrid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.work-detail__balcell {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #d9d9d9;
}
.work-detail__balcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1024px) {
    .work-detail__balgrid.cols-4,
    .work-detail__balgrid.cols-5,
    .work-detail__balgrid.cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .work-detail__balgrid.cols-3,
    .work-detail__balgrid.cols-4,
    .work-detail__balgrid.cols-5,
    .work-detail__balgrid.cols-6 { grid-template-columns: repeat(2, 1fr); }
}

/* "The Results" — self-hosted result videos, 2-col, natural height. */
.work-detail__videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.work-detail__videos video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #000;
}
@media (max-width: 700px) {
    .work-detail__videos { grid-template-columns: 1fr; }
}

/* Portfolio CTA (reuses .ai-bottom-cta) + bottom nav (back + next project). */
.work-detail__cta { margin: 110px auto 0; padding-bottom: clamp(50px, 7vw, 90px); }

/* Bottom-CTA blue glow (portfolio + blog single only; AI page keeps its aurora).
   Pure-CSS blue blob whose CENTRE is moved to the cursor point by JS translate3d
   (GPU-cheap, no per-frame re-blur). margin:-450px puts the element centre at the
   section (0,0) origin, so translate(x,y) places the glow centre at (x,y).
   Section is overflow:visible so the glow can follow the cursor past the box. */
.work-detail__cta.ai-bottom-cta { overflow: visible; }
.work-detail__cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle 450px at center,
        rgba(56, 135, 255, 0.32) 0%,
        rgba(56, 135, 255, 0.14) 40%,
        rgba(56, 135, 255, 0) 70%);
    filter: blur(55px);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.work-detail__cta-line {
    display: block;
    width: clamp(180px, 28vw, 360px);
    height: 1px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    background: rgba(35, 31, 32, 0.18);
    position: relative;
    z-index: 1;
}

/* CTA typography (portfolio + blog single only — AI page keeps its own sizes).
   campaign / story / experience are <em> → italic; colour kept black here
   (the AI page's em rule tints them accent). */
.work-detail__cta .ai-bottom-cta__title { font-size: 52px; font-weight: 500; font-family: var(--font-sans); }
/* campaign / story / experience: italic SEMI-BOLD (the rest of the headline stays
   medium 500); colour kept black here (the AI-page em rule tints it accent). Force
   Figtree so the italic words don't fall back to a system italic. */
.work-detail__cta .ai-bottom-cta__title em { color: inherit; font-weight: 600; font-style: italic; font-family: var(--font-sans); }
.work-detail__cta .ai-bottom-cta__lede { font-size: 18px; }
/* Blog single only: the CTA headline was 66px = LARGER than the article
   headline (52px), so the closing CTA out-shouted the page title. Bring it down
   to match the .article__title scale so the article headline stays the biggest
   element. Scoped under .article → the portfolio CTA keeps 66px (= its own
   66.667px page title). Responsive steps mirror .article__title (40/34/28). */
.article .work-detail__cta .ai-bottom-cta__title { font-size: 52px; }
@media (max-width: 600px) {
    .work-detail__cta .ai-bottom-cta__title { font-size: 40px; }
    .article .work-detail__cta .ai-bottom-cta__title { font-size: 28px; }
    .ai-bottom-cta__title { font-size: 40px; }
}
.work-detail__nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 90px;
}
.work-detail__back { text-decoration: none; color: var(--color-text); font-weight: 500; }
.work-detail__back:hover { color: var(--color-primary); }
.work-detail__next { margin-left: auto; text-align: right; text-decoration: none; max-width: 60%; }
.work-detail__next-label { display: block; font-weight: 600; font-size: 14px; color: var(--color-primary); }
.work-detail__next-title { display: block; font-size: 12px; color: rgba(35, 31, 32, 0.5); line-height: 1.4; margin-top: 2px; }
.work-detail__next:hover .work-detail__next-title { color: rgba(35, 31, 32, 0.75); }
@media (max-width: 600px) {
    .work-detail__nav { flex-direction: column; align-items: flex-start; }
    .work-detail__next { margin-left: 0; text-align: left; max-width: 100%; }
}

/* "On this page" sticky table-of-contents rail on single posts.
   Fixed to the left gutter; fades in once you scroll past the hero and
   hides again as you reach the bottom CTA. Auto-built from the article's
   H2/H3 headings by the inline script in single.php. */
.article-toc {
    position: fixed;
    top: 50%;
    left: clamp(20px, 4vw, 56px);
    transform: translateY(-50%);
    width: clamp(190px, 17vw, 250px);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.article-toc::-webkit-scrollbar { width: 0; height: 0; }
.article-toc.is-visible { opacity: 1; visibility: visible; }
/* When the list is taller than 80vh (many/long headings) it scrolls with a
   hidden scrollbar — fade the bottom edge so the last item softens out instead
   of hard-cropping mid-line. Class toggled by the TOC script when it overflows. */
.article-toc.is-scrollable {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent 100%);
}
.article-toc__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(35, 31, 32, 0.5);
    margin: 0 0 20px;
}
.article-toc__list { list-style: none; margin: 0; padding: 0; }
.article-toc__item { margin-bottom: 18px; }
.article-toc__item:last-child { margin-bottom: 0; }
.article-toc__link {
    /* clamp long headings to 2 lines + ellipsis so each item stays compact and
       the whole rail fits the viewport (was wrapping to 3-4 lines → overflow). */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(35, 31, 32, 0.55);
    text-decoration: none;
    padding-left: 14px;
    border-left: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.article-toc__item--h3 .article-toc__link { padding-left: 28px; font-size: 14px; }
.article-toc__link:hover { color: var(--color-text); }
.article-toc__item.is-active .article-toc__link {
    color: var(--color-text);
    font-weight: 600;
    border-left-color: var(--color-primary);
}
@media (max-width: 1180px) { .article-toc { display: none; } }

/* "Share" sticky rail on the right gutter — mirror of the TOC. Social links
   + copy-link + back-to-top. Same fade-in timing as the TOC. */
.article-share {
    position: fixed;
    top: 50%;
    right: clamp(20px, 4vw, 56px);
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}
.article-share.is-visible { opacity: 1; visibility: visible; }
.article-share__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(35, 31, 32, 0.5);
    margin-bottom: 4px;
}
.article-share__btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: rgba(35, 31, 32, 0.05);
    color: var(--color-text);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.article-share__btn svg { width: 15px; height: 15px; display: block; }
.article-share__btn:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.article-share__divider { width: 3px; height: 3px; border-radius: 50%; background: rgba(35, 31, 32, 0.22); margin: 3px 0; }
.article-share.is-copied .article-share__btn[data-copy-link] { background: #2e7d32; color: #fff; }
@media (max-width: 1180px) { .article-share { display: none; } }

/* Hero-video lightbox modal — shared by all portfolio detail pages.
   Body gets [data-video-open] when open so we can lock scroll. */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.video-modal[hidden] { display: none !important; }
.video-modal.is-open { display: flex; }
.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 14, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: video-modal-fade .25s ease;
}
.video-modal__panel {
    position: relative;
    width: min(1200px, 96vw);
    max-height: 88vh;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    animation: video-modal-pop .35s cubic-bezier(.2, .7, .2, 1);
}
.video-modal__player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}
.video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #000;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}
.video-modal__close:hover { background: #fff; transform: scale(1.06); }
body[data-video-open] { overflow: hidden; }
@keyframes video-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes video-modal-pop {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
    .video-modal { padding: 12px; }
    .video-modal__close { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 22px; }
}

/* =========================================================
   BLOG LISTING — Figma 96:1049 ("News, Article & Insights")
   ========================================================= */
.news {
    position: relative;
    /* v2.7.0 — wider gutters + roomier top/bottom per user request.
       v2.7.69 — bottom slimmed because pagination now carries the
       extra margin-top, putting the numbers close to the footer. */
    padding: clamp(110px, 14vh, 150px) clamp(56px, 6.5vw, 100px) clamp(70px, 9vh, 110px);
    max-width: 1280px;
    margin: 0 auto;
}
.news__head {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: end;
    /* v2.7.0 — wider breathing room above featured cards. */
    margin-bottom: 100px;
}
.news__title {
    font-size: 97.333px;
    font-weight: 400;
    line-height: 0.905;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--color-text);
}
.news__title-line2 {
    display: block;
    font-weight: 500;
    color: rgba(35, 31, 32, 0.65);
}
.news__intro {
    font-size: 14.985px;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text);
}

.news__featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* v2.7.0 — wider gap between featured + extra breathing under.
       v2.7.69 — bumped per user request for more breathing room. */
    gap: 60px;
    margin-bottom: 130px;
}
.news__featured-card { display: block; cursor: pointer; }
.news__featured-thumb {
    aspect-ratio: 585 / 329;
    overflow: hidden;
    border-radius: 6px;
    background: #eaeaea;
    margin-bottom: 18px;
}
.news__featured-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.news__featured-card:hover .news__featured-thumb img { transform: scale(1.04); }
.news__featured-title {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 10px;
    color: var(--color-text);
}
.news__featured-meta,
.news__card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.489px;
    font-weight: 500;
}
.news__meta-date { color: rgba(35, 31, 32, 0.65); }
.news__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(35, 31, 32, 0.5); }
.news__meta-cat { color: var(--color-accent); }

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* v2.7.0 — widened to 48px row × 40px col.
       v2.7.69 — bumped row gap for more vertical breathing. */
    gap: 72px 56px;
}
.news__card { display: block; cursor: pointer; }
.news__card-thumb {
    aspect-ratio: 380 / 214;
    overflow: hidden;
    border-radius: 6px;
    background: #eaeaea;
    margin-bottom: 14px;
}
.news__card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.news__card:hover .news__card-thumb img { transform: scale(1.04); }

/* Sample-mode pages 2–4: "Coming Soon" placeholder thumb (no image). */
.news__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(135deg, rgba(35,31,32,0.04) 0 12px, rgba(35,31,32,0.07) 12px 24px),
        #e9e9e9;
}
.news__placeholder-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(35, 31, 32, 0.55);
}
.news__card-thumb.news__thumb--placeholder .news__placeholder-label { font-size: 10px; }

.news__card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 6px;
    color: var(--color-text);
}

.news__card-meta {
    font-size: 12px;
    gap: 6.5px;
}
.news__card-meta .news__meta-dot { width: 2.5px; height: 2.5px; }

.news__paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* v2.7.69 — pushed pagination further down toward the footer
       so the numbered row reads as a closing anchor, not midpage. */
    margin-top: 160px;
}
.news__paging .page-numbers,
.news__paging-num {
    display: inline-flex;
    width: 25px; height: 25px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    background: transparent;
    transition: background .2s ease, color .2s ease;
}
.news__paging .page-numbers:hover,
.news__paging-num:hover { background: rgba(35, 31, 32, 0.06); }
.news__paging .page-numbers.current,
.news__paging-num.is-active {
    background: var(--color-text);
    color: #fff;
}
.news__paging-arrow {
    display: inline-flex; width: 25px; height: 25px;
    align-items: center; justify-content: center;
    color: var(--color-text);
}
.news__paging-arrow::before {
    content: ""; width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

/* =========================================================
   BLOG ARTICLE / SINGLE — Figma 96:1261
   ========================================================= */
.article {
    position: relative;
    /* Figma 96:1261 — MAINPAGE container at top:173 from page top.
       Sides at left:35 / right:35. */
    padding: 173px 35px 80px;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible;
}
/* Figma 96:1262 — blurred BG_ABOUT US gradient at the top of the article.
   Sized 1281×592 (aspect 132/61), 65% opacity, blur 53.282px. The Figma
   node imports a baked image (imgBgAboutUs); we recreate the same multi-
   blob radial wash with pure CSS so we don't depend on a 7-day-expiring
   asset URL — same palette as .about::before for visual consistency. */
.article__bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1281px;
    max-width: 100vw;
    height: 592px;
    aspect-ratio: 132 / 61;
    opacity: 0.65;
    filter: blur(53.282px);
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle closest-side at 80% 32%, rgba(74, 222, 128, 0.55), transparent 100%),
        radial-gradient(circle closest-side at 82% 70%, rgba(96, 165, 250, 0.60), transparent 100%),
        radial-gradient(circle closest-side at 55% 50%, rgba(167, 139, 250, 0.28), transparent 100%),
        radial-gradient(circle closest-side at 18% 75%, rgba(236, 72, 153, 0.30), transparent 100%);
}
/* Lift all article content above the .article__bg layer. The fixed TOC rail
   is excluded — it manages its own position/z-index and must NOT be forced
   into the normal flow (else it eats vertical space and pushes content down). */
.article > *:not(.article__bg):not(.article-toc):not(.article-share) { position: relative; z-index: 1; }
.article__head {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}
.article__title {
    font-size: 52px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 817px;
    color: var(--color-text);
}
.article__meta {
    text-align: left;
    padding-top: 22px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
}
.article__meta-date { font-weight: 400; display: block; margin-bottom: 6px; }
.article__meta-tag { color: rgba(35, 31, 32, 0.65); font-weight: 500; }
.article__hero {
    position: relative;
    aspect-ratio: 1200 / 675;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto; margin-right: auto;
}
.article__hero img,
.article__hero video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.article__body {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}
.article__body p { margin: 0 0 1.8em; }
.article__body h2 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.8;
    margin: 1.4em 0 0.4em;
}
.article__body h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 1.2em 0 0.4em;
}
.article__body ul,
.article__body ol { padding-left: 27px; margin: 0 0 1.8em; }
.article__body ul li,
.article__body ol li { margin-bottom: 4px; line-height: 1.8; }

.article__banner {
    position: relative;
    background: #d9d9d9;
    border-radius: 6px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article__banner::before {
    content: attr(data-label);
    color: rgba(0, 0, 0, 0.2);
    font-size: 41px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.article__banner--247 { aspect-ratio: 700 / 120; }
.article__banner--169 { aspect-ratio: 700 / 350; }

/* v2.7.13 — Article body images auto-wrapped with /contact/ link by JS.
   Slight hover lift so readers can tell the banner is clickable. */
.article__cta-img {
    display: block;
    cursor: pointer;
    transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.article__cta-img:hover { opacity: 0.94; transform: translateY(-2px); }
.article__cta-img img { display: block; width: 100%; height: auto; }

/* =========================================================
   CONTACT / QUOTE — Figma 96:1161
   ========================================================= */
.contact {
    position: relative;
    /* v2.7.0 — wider gutters + roomier top/bottom per user request. */
    padding: clamp(110px, 14vh, 150px) clamp(56px, 6.5vw, 100px) clamp(140px, 16vh, 180px);
    max-width: 1280px;
    margin: 0 auto;
}
.contact__head {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 100px;
    align-items: end;
    /* v2.7.0 — extra breathing room before the form. */
    margin-bottom: 130px;
}
.contact__title {
    font-size: 97.333px;
    font-weight: 400;
    line-height: 0.905;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 760px;
}
.contact__title-soft {
    font-weight: 500;
    color: rgba(35, 31, 32, 0.65);
}
.contact__intro {
    font-size: 14.985px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0 0 24px;
    max-width: 293px;
}

.contact__form {
    /* v2.7.0 — slightly narrower form + roomier vertical gap. */
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 48px;
}
.contact__row { display: grid; gap: 48px; }
.contact__row--2 { grid-template-columns: 1fr 1fr; }

.contact__field { position: relative; }
.contact__field label,
.contact__field-label {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 18px;
    line-height: 1.2;
    text-transform: capitalize;
}
.contact__field input,
.contact__field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1.5px solid rgba(35, 31, 32, 0.65);
    background: transparent;
    padding: 6px 0;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text);
    outline: none;
    transition: border-color .25s ease;
}
.contact__field input::placeholder,
.contact__field textarea::placeholder { color: rgba(35, 31, 32, 0.4); }
.contact__field textarea { resize: vertical; min-height: 36px; line-height: 1.5; }
.contact__field input:focus,
.contact__field textarea:focus { border-bottom-color: var(--color-primary); }

.contact__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.contact__pill {
    background: #ffffff;
    border: 0.898px solid #969696;
    border-radius: 101px;
    padding: 11px 22px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1.2;
    transition: background .2s ease, border-color .2s ease;
    font-family: inherit;
    position: relative;
    user-select: none;
}
.contact__pill:not(.is-checked):not(:has(input:checked)):hover { border-color: var(--color-primary); }
/* v2.5.14 — overlay the radio input across the whole pill so clicks always
   register natively. Previously `pointer-events: none` blocked the label's
   native check-toggle, so the pill never reached the .is-checked state. */
.contact__pill input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.contact__pill.is-checked,
.contact__pill:has(input:checked) {
    background: #d9d9d9;
    border-color: #969696;
}
/* Subtle gray hover preview before click — easier to discover the pills are
   clickable. Skipped when a pill is already checked. */
.contact__pill:not(:has(input:checked)):not(.is-checked):hover { background: #f1f1f1; }

.contact__share-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 8px;
    align-items: end;
    border-bottom: 1.5px solid rgba(35, 31, 32, 0.65);
    padding-bottom: 6px;
}
.contact__share-icon {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-text);
    transform: rotate(-53deg);
    font-size: 22px;
}
.contact__share-row input {
    border: 0; background: transparent; outline: none;
    font-size: 18px; font-family: inherit;
    padding: 4px 0;
    color: var(--color-text);
}
.contact__share-row input::placeholder { color: rgba(35, 31, 32, 0.55); }

.contact__submit {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
/* The form's submit reuses .btn .btn--primary from main.css but needs
   to be much larger than the standard 132px hero button. */
.contact__submit .btn--primary {
    width: min(314px, 100%);
    height: 50px;
    font-size: 18px;
    text-transform: capitalize;
}

.contact__status {
    max-width: 807px;
    margin: 0 auto 30px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 13px;
}
.contact__status--ok    { background: #ecf7ec; color: #1f6e2c; }
.contact__status--error { background: #fceaea; color: #a01818; }

/* =========================================================
   Mobile breakpoints
   ========================================================= */
@media (max-width: 1100px) {
    .works__title { font-size: 64px; }
    .news__title, .contact__title { font-size: 72px; }
    .work-detail__title { font-size: 48px; }
    .article__title { font-size: 40px; }
    .article .work-detail__cta .ai-bottom-cta__title { font-size: 40px; }
}
@media (max-width: 900px) {
    .works__head, .news__head, .contact__head { grid-template-columns: 1fr; gap: 24px; }
    .article__head { grid-template-columns: 1fr; gap: 16px; }
    .article__meta { padding-top: 0; }
    .works__grid { grid-template-columns: repeat(2, 1fr); }
    .news__featured { grid-template-columns: 1fr; }
    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .work-detail__overview { grid-template-columns: 1fr; gap: 28px; }
    .work-detail__phones { grid-template-columns: 1fr; }
    .work-detail__storyboard,
    .work-detail__sf-3col,
    .work-detail__3d-4col { grid-template-columns: repeat(2, 1fr); }
    .work-detail__sf-6col,
    .work-detail__3d-6col { grid-template-columns: repeat(3, 1fr); }
    .contact__row--2 { grid-template-columns: 1fr; }
    .navbar__links { gap: 18px; }
    .navbar__dropdown { display: none; }
    .works__title { font-size: 56px; }
    .news__title, .contact__title { font-size: 56px; }
    .work-detail__title { font-size: 40px; }
    .article__title { font-size: 34px; }
    .article .work-detail__cta .ai-bottom-cta__title { font-size: 34px; }
    .work-detail__sub { font-size: 17px; margin-bottom: 36px; }
}
@media (max-width: 600px) {
    .works__grid,
    .news__grid,
    .work-detail__sf-2col,
    .work-detail__sf-3col,
    .work-detail__storyboard,
    .work-detail__3d-4col { grid-template-columns: 1fr; }
    .work-detail__sf-6col,
    .work-detail__3d-6col { grid-template-columns: repeat(2, 1fr); }
    .works__title, .news__title, .contact__title { font-size: 44px; }
    .work-detail__title { font-size: 32px; }
    .article__title { font-size: 28px; }
    .article__body, .news__title-line2 { font-size: 16px; }
}

/* =========================================================
   PORTFOLIO LISTING — v2.4.27 Punchy-style filterbar
   Replaces the old chip-style .works__filters with two big
   pill dropdowns (Type + Audience). URL-driven, full-page
   reload on change. See page-portfolios.php.
   ========================================================= */

/* Single-line "Portfolio" title (replaces "Selected / Works" split). */
.works__title--single {
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
}

/* Filterbar: two columns, generous max-width so pills don't stretch
   to 1280 — matches Punchy reference where each pill is ~50% of an
   ~760px container. */
.works__filterbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 0 64px;
    position: relative;
    z-index: 20;
}
.works__filterbar-submit {
    grid-column: 1 / -1;
    padding: 12px 24px;
    background: var(--color-text);
    color: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}

/* One dropdown unit. */
.works__select { position: relative; }
.works__select-label {
    display: block;
    font-size: 14px;
    color: rgba(35, 31, 32, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}
.works__select-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 26px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    background: #f1f3f6;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    text-align: left;
    line-height: 1.2;
}
.works__select-trigger:hover {
    background: #e7eaef;
}
.works__select.is-open .works__select-trigger,
.works__select-trigger:focus-visible {
    border-color: var(--color-accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(21, 102, 224, 0.12);
}
.works__select-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.works__select-caret {
    flex: none;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform .2s ease;
}
.works__select.is-open .works__select-caret { transform: rotate(180deg); }

/* Dropdown panel.
   v2.7.17 — overscroll-behavior: contain + data-lenis-prevent in markup
   so wheel scrolls the dropdown natively instead of bubbling up to Lenis
   and smooth-scrolling the page underneath. */
.works__select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    margin: 0; padding: 6px 0;
    list-style: none;
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.works__select-list[hidden] { display: none; }
.works__select-list li {
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    color: var(--color-text);
}
.works__select-list li:hover { background: #f4f5f8; }
.works__select-list li.is-active {
    background: var(--color-accent);
    color: #fff;
}

/* Play button overlay on each card thumb (Punchy-style). pointer-events
   none so the click bubbles to the wrapping <a class="works__card">. */
.works__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform .25s ease, background .2s ease;
}
.works__play::before {
    content: "";
    width: 0; height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
    margin-left: 6px;
}
.works__card:hover .works__play,
.works__card:focus-within .works__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #0f4ea8;
}

/* Empty-state when filters return zero matches. */
.works__empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(35, 31, 32, 0.6);
    font-size: 18px;
}

/* Numbered pagination — replaces the static dot row for the new
   ?portfolio_page=N links. */
.works__pagenav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 80px;
    font-size: 18px;
    font-weight: 500;
}
.works__pagenav-item {
    color: var(--color-text);
    text-decoration: none;
    transition: color .15s ease;
    line-height: 1;
}
.works__pagenav-item:hover { color: var(--color-accent); }
.works__pagenav-item.is-current {
    color: var(--color-accent);
    font-weight: 700;
}
.works__pagenav-arrow {
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
    background: none;
}
/* Left-pointing arrow for "previous page" — mirror of the right arrow. */
.works__pagenav-arrow--prev {
    border-left: 0;
    border-right: 12px solid currentColor;
}
.works__pagenav-arrow.is-disabled { opacity: 0.3; }

@media (max-width: 700px) {
    .works__filterbar { grid-template-columns: 1fr; max-width: none; }
    .works__title--single { font-size: 56px; }
    .works__play { width: 64px; height: 64px; }
    .works__play::before {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }
}

/* =======================================================
   FOOTER LEGAL — link styling only.
   v2.7.25 — `right` anchor removed from here; positioning now comes
   from --spx-footer-legal-right in main.css (single source of truth).
   ======================================================= */
.site-footer__legal a {
    color: inherit;
    text-decoration: none;
}
.site-footer__legal a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .site-footer__legal { right: auto; }
}

/* =======================================================
   PROPOSAL TERMS — long-form legal page (Figma 144:1219)
   High-specificity body-class selectors so cached/conflicting
   theme rules don't bleed in and flatten the layout.
   ======================================================= */
body.page-template-page-proposal-terms .site-main.proposal-terms,
.proposal-terms {
    position: relative;
    padding: 60px var(--content-pad) 120px;
    color: var(--color-text);
}

/* Soft pastel backdrop (Figma BG_ABOUT US 144:1221 + COLOURED ACCENT).
   Anchored to body so it spans the entire viewport — site-main's 1280
   max-width can't clip it. Hidden div fallback below for older markup. */
.proposal-terms__aurora { display: none; }

body.page-template-page-proposal-terms::before,
body.page-template-page-privacy-policy::before,
body.page-template-page-terms-of-service::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 760px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background:
        radial-gradient(70% 60% at 20% 38%, rgba(120, 156, 255, 0.45), transparent 70%),
        radial-gradient(60% 55% at 80% 42%, rgba(255, 175, 210, 0.38), transparent 72%),
        radial-gradient(closest-side at 50% 18%, rgba(220, 200, 255, 0.25), transparent 80%);
    /* Soft fade-out at the bottom so the wash blends into the white page
       instead of cutting off at a hard horizontal edge. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}

body.page-template-page-proposal-terms,
body.page-template-page-privacy-policy,
body.page-template-page-terms-of-service { position: relative; }

body .proposal-terms .proposal-terms__article {
    position: relative;
    z-index: 1;
    max-width: 700px !important;
    margin: 0 auto !important;
    width: 100%;
    text-transform: none;
    text-align: left;
}

body .proposal-terms .proposal-terms__head {
    text-align: center !important;
    padding: 80px 0 0 !important;
    margin: 0;
}

body .proposal-terms .proposal-terms__title {
    font-size: 52px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    letter-spacing: -0.005em;
    margin: 0 !important;
    color: var(--color-text);
    text-align: center !important;
    text-transform: none !important;
}

body .proposal-terms .proposal-terms__rule {
    display: block !important;
    width: 252px !important;
    height: 1px !important;
    background: var(--color-text) !important;
    margin: 40px auto 56px !important;
}

/* "Last updated" row — left-aligned within the centred column, with a
   small clock/timer icon (Figma 144:1289). */
body .proposal-terms .proposal-terms__updated {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 36px !important;
    color: rgba(35, 31, 32, 0.65);
    font-size: 16px !important;
    font-weight: 400;
    position: relative;
    z-index: 1;
    text-align: left;
}

.proposal-terms__updated-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(35, 31, 32, 0.65);
    position: relative;
    flex-shrink: 0;
}
.proposal-terms__updated-icon::before,
.proposal-terms__updated-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(35, 31, 32, 0.65);
    transform-origin: 0 0;
    border-radius: 1px;
}
.proposal-terms__updated-icon::before {
    width: 5px;
    height: 1.5px;
    transform: translate(0, -50%);
}
.proposal-terms__updated-icon::after {
    width: 4px;
    height: 1.5px;
    transform: translate(0, -50%) rotate(-90deg);
}

body .proposal-terms .proposal-terms__body {
    position: relative;
    z-index: 1;
    color: var(--color-text);
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-weight: 400;
    text-align: left;
}

body .proposal-terms .proposal-terms__body p {
    margin: 0 0 28px !important;
    font-size: 18px !important;
}

body .proposal-terms .proposal-terms__body h2 {
    color: var(--color-text);
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    margin: 32px 0 8px !important;
    text-transform: none !important;
    letter-spacing: 0;
}

.proposal-terms__body ul {
    margin: 0 0 28px;
    padding-left: 27px;
    list-style: disc;
}

.proposal-terms__body li {
    margin: 0 0 4px;
    line-height: 1.8;
}

.proposal-terms__body a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-skip-ink: auto;
}

.proposal-terms__contact {
    font-weight: 400;
}

@media (max-width: 900px) {
    .proposal-terms__title { font-size: 40px; }
}

@media (max-width: 700px) {
    .proposal-terms { padding: 40px 24px 96px; }
    .proposal-terms__head { padding: 32px 0 0; }
    .proposal-terms__title { font-size: 30px; }
    .proposal-terms__rule { width: 180px; margin: 28px auto 40px; }
    .proposal-terms__updated { font-size: 14px; margin-bottom: 28px; }
    .proposal-terms__body { font-size: 16px; }
    .proposal-terms__body h2 { font-size: 20px; margin-top: 28px; }
    .proposal-terms__aurora { height: 320px; }
}

/* =========================================================
   FREE QUOTE MODAL — v2.5.12  (Figma 96:1161)
   Inline form rendered in footer.php. Pastel gradient backdrop,
   white card with scrollable form, close ×. No iframe.
   ========================================================= */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.quote-modal[hidden] { display: none !important; }
.quote-modal.is-open { display: flex; }

/* Dim layer behind the panel — soft pastel wash (matches the BG_ABOUT US
   gradient elsewhere in the theme) on top of a dark veil so the page
   underneath disappears. */
.quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 55% at 20% 25%, rgba(120, 156, 255, 0.30), transparent 70%),
        radial-gradient(55% 50% at 80% 30%, rgba(255, 175, 210, 0.28), transparent 72%),
        radial-gradient(closest-side at 50% 80%, rgba(220, 200, 255, 0.22), transparent 80%),
        rgba(10, 10, 14, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: quote-modal-fade .25s ease;
}

.quote-modal__panel {
    position: relative;
    /* v2.7.0 — narrower card so it doesn't dominate the viewport. */
    width: min(820px, 94vw);
    max-height: min(90vh, 880px);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    animation: quote-modal-pop .35s cubic-bezier(.2, .7, .2, 1);
    display: flex;
    flex-direction: column;
}
/* The actual form column scrolls; the panel itself doesn't.
   v2.7.15 — flex:1 + min-height:0 makes the inner respect the panel's
   max-height in a flex column so overflow-y:auto actually engages.
   Without these, the inner sized to content and the wheel had nowhere
   to scroll → user had to drag the scrollbar manually. */
.quote-modal__inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* v2.7.0 — bigger inner margin (was 56px / clamp(28,6vw,80) — now 64/clamp(40,7vw,90)) */
    padding: 64px clamp(40px, 7vw, 90px) 64px;
    margin: 0;
    max-width: none;
}
/* v2.5.13 — close button is a sibling of .quote-modal__panel (not nested
   inside it) so the scrolling form area can never intercept clicks on it.
   Position fixed to the viewport, always reachable above the modal. */
.quote-modal__close {
    position: fixed;
    top: calc(4vh + 8px);
    right: calc(2vw + 8px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .96);
    color: #000;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    transition: background .2s ease, transform .2s ease;
}
.quote-modal__close:hover { background: #fff; transform: scale(1.06); }
@media (max-width: 600px) {
    .quote-modal__close { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 24px; }
}

/* Tighter title/intro layout inside the modal — Figma 96:1190/1191.
   v2.7.0 — text + columns shrunk per user request. */
.contact--modal .contact__head {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 32px;
    align-items: end;
    margin-bottom: 36px;
}
.contact--modal .contact__title {
    font-size: clamp(30px, 5vw, 50px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    font-weight: 400;
    margin: 0;
    max-width: none;
}
.contact--modal .contact__intro {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    max-width: none;
}
.contact--modal .contact__form {
    max-width: none;
    margin: 0;
    gap: 30px;
}
.contact--modal .contact__row { gap: 30px; }
.contact--modal .contact__field label,
.contact--modal .contact__field-label {
    font-size: 15px;
    margin-bottom: 12px;
}
.contact--modal .contact__field input,
.contact--modal .contact__field textarea { font-size: 14px; }
.contact--modal .contact__pill {
    padding: 9px 18px;
    font-size: 13px;
}
.contact--modal .contact__share-row input { font-size: 14px; }
.contact--modal .contact__submit { margin-top: 24px; }

body[data-quote-open] { overflow: hidden; }
@keyframes quote-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes quote-modal-pop {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .contact--modal .contact__head { grid-template-columns: 1fr; gap: 16px; }
    .contact--modal .contact__title { font-size: clamp(32px, 8vw, 48px); }
    .quote-modal__inner { padding: 44px 24px 44px; }
}
@media (max-width: 600px) {
    .quote-modal { padding: 12px; }
    .quote-modal__panel { max-height: 94vh; border-radius: 10px; }
    .contact--modal .contact__row--2 { grid-template-columns: 1fr; }
}

/* =========================================================
   AI PAGE — v2.6.0  (Figma node 173:2746)
   ========================================================= */

/* The AI page bypasses the global 1280 site-main cap because
   several sections (hero aurora, dark band, blue band) need
   full-bleed treatment. */
.site-main--ai { max-width: none; width: 100%; margin: 0; }

/* ---------- shared utilities ---------- */
.ai-page-pad { padding-left: clamp(20px, 4vw, 80px); padding-right: clamp(20px, 4vw, 80px); }

/* Inline italic blue accent used by every AI section heading. */
.ai-hero__title em,
.ai-services__title em,
.ai-howit__title em,
.ai-compare__title em,
.ai-bottom-cta__title em,
.ai-approach__title em { font-style: italic; color: var(--color-accent); font-weight: 600; }

/* "Soft" greyed inline span used by Our Approach headline. */
.ai-approach__title-soft { color: #d9d9d9; font-weight: 500; display: block; }

/* v2.6.5 — Explore Services: bordered rectangle that turns blue
   (text + border) on hover. Matches Figma 173:3373 default/hover
   component variants. */
.ai-hero__explore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: #fff;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    /* v2.6.6 — no default outline; border only appears (blue) on hover. */
    border: 1.5px solid transparent;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(35, 31, 32, 0.08);
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ai-hero__explore:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 10px 26px rgba(21, 102, 224, 0.18);
    transform: translateY(-1px);
}
.ai-hero__explore-label { display: inline-block; }
.ai-hero__explore-arrow { font-size: 16px; transition: transform .25s ease; }
.ai-hero__explore:hover .ai-hero__explore-arrow { transform: translateX(4px); }

/* AI-page Discovery-Call CTA variant — wider and taller than the
   homepage `.btn--primary` 132×30 default. */
.btn--ai-cta {
    width: auto;
    min-width: 250px;
    height: 50px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
}
.btn--ai-cta-lg {
    height: 56px;
    min-width: 270px;
    padding: 0 36px;
    font-size: 18px;
}

/* ---------- 1. HERO ---------- */
.ai-hero {
    position: relative;
    padding: clamp(60px, 8vw, 120px) clamp(20px, 4vw, 80px) clamp(80px, 9vw, 140px);
    text-align: center;
    overflow: hidden;
    background: #fff;
}
.ai-hero__aurora {
    position: absolute;
    inset: -120px 0 auto 0;
    height: 760px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 18% 35%, rgba(255, 192, 218, 0.55), transparent 65%),
        radial-gradient(closest-side at 82% 30%, rgba(160, 215, 255, 0.55), transparent 65%),
        radial-gradient(closest-side at 50% 70%, rgba(255, 232, 188, 0.45), transparent 65%);
    filter: blur(60px);
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.ai-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}
.ai-hero__title {
    font-size: clamp(54px, 7vw, 99px);
    font-weight: 400;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.01em;
    color: #000;
    position: relative;
    display: inline-block;
}
.ai-hero__title em { font-weight: 600; }
.ai-hero__rotator {
    /* v2.6.10 — typewriter line below "AI-Powered". The text node grows
       letter-by-letter via JS; cursor blinks via CSS animation. */
    display: block;
    position: relative;
    width: 100%;
    min-height: 1.15em;
    text-align: center;
    margin-top: 8px;
    line-height: 1.05;
}
.ai-hero__rotator-text {
    font-style: italic;
    font-weight: 500;
    color: var(--color-accent);
    white-space: pre;
}
.ai-hero__rotator-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: 400;
    font-style: normal;
    color: var(--color-accent);
    animation: ai-cursor-blink 1s steps(1) infinite;
    transform: translateY(2px);
}
@keyframes ai-cursor-blink {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.ai-hero__arrow {
    /* v2.6.1 — anchor near top-left of the rotating-word line. */
    position: absolute;
    width: 60px;
    height: 60px;
    left: calc(50% - 240px);
    top: calc(1em + 18px);
    transform: rotate(-12deg);
    pointer-events: none;
    opacity: 0.85;
}

.ai-hero__lede {
    font-size: clamp(16px, 1.3vw, 22px);
    line-height: 1.8;
    color: var(--color-text);
    max-width: 920px;
    margin: 32px auto 0;
}
.ai-hero__actions {
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ai-hero__stats {
    list-style: none;
    margin: 64px auto 0;
    padding: 18px clamp(20px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(20px, 3.5vw, 60px);
    max-width: 940px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-shadow: 0 4px 60px rgba(255, 255, 255, 0.35), 0 12px 40px rgba(120, 156, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ai-hero__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    position: relative;
    padding: 0 clamp(8px, 1.5vw, 20px);
}
.ai-hero__stats li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(35, 31, 32, 0.15);
}
.ai-hero__stats strong {
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 500;
    color: var(--color-accent);
    line-height: 1;
}
.ai-hero__stats span {
    font-size: 12px;
    color: #444;
    line-height: 1.3;
    max-width: 140px;
}

.ai-hero__clients {
    margin: 56px auto 0;
    max-width: 980px;
}
.ai-hero__clients-label {
    font-size: 16px;
    color: var(--color-text);
    margin: 0 0 20px;
}
.ai-hero__clients-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 56px);
    opacity: 0.65;
}
.ai-hero__clients-row img { max-height: 36px; width: auto; filter: grayscale(1) contrast(1.1); }

/* ---------- 2. PORTFOLIO ---------- */
.ai-porto {
    max-width: 1280px;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin: 150px auto 0;
    padding: 0 clamp(20px, 4vw, 80px);
}
.ai-porto__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: clamp(40px, 5vw, 80px);
}
/* v2.6.3 — tiles sit on the same baseline (no zig-zag stagger). */
.ai-porto__thumb {
    /* v2.6.4 — square corners on portfolio thumbs. */
    display: block; /* it's an <a> (inline) — block so aspect-ratio gives it height */
    position: relative;
    aspect-ratio: 730 / 410;
    overflow: hidden;
    border-radius: 0;
    background: #1a1a1a;
}
/* v2.6.7 — homepage-style two-image hover fade. Rest image fades
   OUT and the lazy-loaded animated GIF fades IN; both scale up
   slightly. JS in main.js assigns the GIF src on first hover so
   the heavy assets don't ship with initial page load. */
.ai-porto__thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.ai-porto__thumb-img--rest  { opacity: 1; }
.ai-porto__thumb-img--hover { display: none; } /* v2.6.25 — drop GIF swap; hover now blurs the cover instead */
.ai-porto__thumb:hover .ai-porto__thumb-img--rest {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transform: scale(1.04);
}

/* Circular play overlay — hidden by default, fades in on card hover. */
.ai-porto__play {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(.85);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1), background .25s ease;
}
.ai-porto__play::before {
    content: "";
    width: 0; height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid var(--color-accent);
    margin-left: 4px;
}
.ai-porto__thumb:hover .ai-porto__play {
    opacity: 1;
    background: #fff;
    transform: translate(-50%, -50%) scale(1);
}
.ai-porto__title {
    font-size: 23px;
    font-weight: 500;
    margin: 18px 0 4px;
    color: #000;
    line-height: 1.3;
}
.ai-porto__sub {
    font-size: 14.74px;
    font-weight: 500;
    color: var(--color-accent);
    margin: 0;
    line-height: 1.4;
}

/* ---------- 3. SERVICES ---------- */
.ai-services {
    /* v2.6.40 — uniform 150px gap; tight side padding for 4 cards. */
    max-width: 1440px;
    margin: 150px auto 0;
    padding: 0 clamp(16px, 2vw, 32px);
    /* v2.6.41 — leave space for the 76px sticky header when scrolled to via #ai-services anchor. */
    scroll-margin-top: 110px;
}
.ai-services__head { margin-bottom: 48px; }
.ai-services__title {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 1080px;
}
.ai-services__grid {
    /* v2.6.35 — flexible 4-col grid that fits the 1280 container. */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ai-services__card {
    /* v2.6.38 — internal padding tightened (44 → 32 sides) so body text
       wraps to 4 lines consistently at 1280-1440 viewports. */
    position: relative;
    background:
        radial-gradient(circle at 18% 14%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0) 55%),
        #efefef;
    border-radius: 0;
    padding: 48px 32px 36px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 32px;
    color: #000;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    /* v2.6.43 — text color snaps faster (0.15s) so it doesn't lag behind the bg gradient. */
    transition: color .15s ease, box-shadow .35s ease;
}
.ai-services__card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* v2.6.32 — hover: blue center fading out to white at the edges. */
.ai-services__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 50%,
            #2E72D8 0%,
            #4585E0 28%,
            #79A4EC 52%,
            #B5CCF1 75%,
            #E3EDF8 92%,
            #FFFFFF 100%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
/* v2.6.42 — white inset border removed per user request. */
.ai-services__card::after { content: none; }
.ai-services__card > * { position: relative; z-index: 1; }
.ai-services__card:hover { color: #fff; }
.ai-services__card:hover::before,
.ai-services__card:hover::after { opacity: 1; }
.ai-services__card-title {
    /* v2.6.30 — bumped to match Figma 25.57px, capitalize. */
    font-size: 26px;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: capitalize;
    margin: 0;
    line-height: 1.2;
    /* v2.6.43 — quicker color transition so it doesn't visibly lag. */
    transition: color .15s ease;
}
.ai-services__card:hover .ai-services__card-title { color: #fff; }
.ai-services__card-body {
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
    margin: 0;
    text-transform: capitalize;
}
/* v2.6.30 — standard list bullets per Figma; bullet colour follows text colour. */
.ai-services__card-list {
    list-style: disc;
    padding: 0 0 0 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    color: inherit;
    text-transform: capitalize;
}
.ai-services__card-list li {
    position: static;
    padding-left: 0;
}
.ai-services__card-list li::before { content: none; }
.ai-services__card-link {
    margin-top: auto;
    font-size: 14px;
    font-weight: 400;
    color: inherit;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-transform: capitalize;
    transition: color .2s ease, transform .2s ease;
}
.ai-services__card:hover .ai-services__card-link { color: #fff; }

/* ---------- 4. OUR APPROACH (dark band) ---------- */
.ai-approach {
    background: #231f20;
    color: #fff;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin-top: 150px;
    padding: clamp(70px, 8vw, 130px) clamp(20px, 4vw, 80px);
}
.ai-approach__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 110px);
    align-items: center;
}
.ai-approach__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    /* v2.6.31 — cap so portraits stay close to Figma's 240x292 even on
       wider columns; centered within the column. */
    max-width: 500px;
}
.ai-approach__photo {
    /* v2.6.4 — square corners on director portraits. */
    position: relative;
    aspect-ratio: 240 / 292;
    border-radius: 0;
    overflow: hidden;
    background: #1a1a1a;
}
/* v2.6.31 — Figma 173:2877: column 2 (Mark + Jean) sits ~48px HIGHER
   than column 1, not the other way around. */
.ai-approach__photo--2 { margin-top: -48px; }
.ai-approach__photo--3 { margin-top: 0; }
.ai-approach__photo--4 { margin-top: -48px; }
/* v2.6.3 — grayscale by default, color on hover (mirrors homepage
   .cta__portrait pattern). */
/* v2.6.47 — image always fills frame (scale ≥ 1.0). Zoom-out effect =
   base scale 1.1 → hover scale 1.0. object-position: center 25% biases
   the crop toward the upper portion of the source so natural headroom
   stays visible (heads aren't mepet at the top). */
/* v2.6.75 — idle/hover pre-graded image pair (270x329). Idle = desat,
   hover = color. Cross-fade on hover; keep scale 1.1 → 1.0 zoom-out.
   v2.7.74 — slower opacity + transform synced with CTA portraits so
   the cross-fade and zoom-out resolve as one motion. */
.ai-approach__photo img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.1);
    transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.ai-approach__img--hover { opacity: 0; }
.ai-approach__photo:hover .ai-approach__img--idle { opacity: 0; }
.ai-approach__photo:hover .ai-approach__img--hover { opacity: 1; }
.ai-approach__photo:hover img { transform: scale(1); }
.ai-approach__name {
    /* v2.6.31 — Figma 173:2877: plain text labels in bottom-left, no chip. */
    position: absolute;
    left: 21px;
    bottom: 14px;
    color: #fff;
    font-size: 12.5px;
    line-height: 1.35;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ai-approach__name strong { display: block; font-weight: 500; }
.ai-approach__name span { color: #969696; font-size: 9px; font-weight: 500; }

.ai-approach__copy { max-width: 660px; }
.ai-approach__eyebrow {
    font-size: clamp(15px, 1.2vw, 21px);
    font-weight: 500;
    color: var(--color-accent);
    margin: 0 0 22px;
}
.ai-approach__title {
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: #fff;
}
/* v2.6.31 — Figma 173:2877: first line is light-grey, italic phrase stays white. */
.ai-approach__title-soft { color: #d9d9d9; display: block; }
.ai-approach__title em { color: #fff; font-style: italic; font-weight: 600; }
.ai-approach__body {
    margin: 28px 0 32px;
    font-size: 16px;
    line-height: 1.65;
    color: #fff;
}
.ai-approach__body p { margin: 0 0 1em; }
.ai-approach__body p:last-child { margin-bottom: 0; }
/* v2.6.8 — minimal "tick + text" row (no pill background or border).
   Each item is a checkmark icon (circle with tick) followed by the
   white label. */
.ai-approach__pills {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.ai-approach__pills li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}
.ai-approach__pill-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
}
.ai-approach__pill-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
}

/* ---------- 5. HOW IT WORKS ---------- */
/* v2.7.22 — reverted from scroll-pinned runway back to sticky-head
   pattern (same as About How We Work). Title pinned in left col,
   step list flows in right col. */
.ai-howit {
    max-width: 1280px;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin: 150px auto 0;
    padding: 0 clamp(20px, 4vw, 80px);
}
.ai-howit__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}
.ai-howit__head { max-width: 480px; position: sticky; top: 120px; }
.ai-howit__title {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
}
.ai-howit__lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}
/* v2.7.22 — back to flowing list (no absolute stacking). */
.ai-howit__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: ai-steps;
    position: relative;
}
.ai-howit__step {
    position: relative;
    padding: 4px 0 26px 56px;
    min-height: 64px;
}
.ai-howit__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -6px;
    width: 1px;
    background: rgba(35, 31, 32, 0.25);
}
.ai-howit__step-num {
    position: absolute;
    left: 0; top: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(35, 31, 32, 0.35);
    color: var(--color-text);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    z-index: 1;
}
/* v2.6.3 — active/CTA step circle uses black instead of blue. */
.ai-howit__step.is-active .ai-howit__step-num,
.ai-howit__step-num--cta {
    background: #000;
    border-color: #000;
    color: #fff;
}
.ai-howit__step-body h3 {
    font-size: 21px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.25;
}
.ai-howit__step-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text);
}
.ai-howit__step-note {
    margin-top: 8px !important;
    font-size: 14px !important;
    font-style: italic;
    color: #909090 !important;
}
.ai-howit__step--cta { padding-top: 8px; }
.ai-howit__step--cta .btn { margin-top: 18px; }

/* ---------- 6. COMPARISON TABLE ---------- */
.ai-compare {
    max-width: 1280px;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin: 150px auto 0;
    padding: 0 clamp(20px, 4vw, 80px);
    position: relative;
}
.ai-compare__head { max-width: 860px; margin-bottom: 56px; }
.ai-compare__title {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
}
.ai-compare__lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    max-width: 600px;
}
.ai-compare__table {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(35, 31, 32, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.ai-compare__row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 0;
    align-items: stretch;
}
.ai-compare__row--head {
    background: rgba(255, 255, 255, 0.75);
}
.ai-compare__row--head .ai-compare__cell--col1,
.ai-compare__row--head .ai-compare__cell--col2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
}
/* v2.6.3 — separate column borders: each cell carries its own
   bottom + right border so the table reads as a grid of cells
   rather than full-width horizontal rows. */
.ai-compare__cell {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    padding: 16px 22px;
    border-right: 1px solid rgba(35, 31, 32, 0.10);
    border-bottom: 1px solid rgba(35, 31, 32, 0.10);
    display: flex;
    align-items: center;
}
.ai-compare__cell:last-child { border-right: 0; }
.ai-compare__row:last-child .ai-compare__cell { border-bottom: 0; }
.ai-compare__row--head .ai-compare__cell { padding-top: 22px; padding-bottom: 22px; }
.ai-compare__cell--label {
    font-weight: 600;
    color: #000;
}
.ai-compare__cell--col2 {
    color: #000;
    font-weight: 500;
}

/* ---------- 7. WISHFORM (blue band) ---------- */
.ai-wishform {
    background: var(--color-accent);
    color: #fff;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin-top: 150px;
    padding: clamp(60px, 7vw, 100px) clamp(20px, 4vw, 80px);
}
.ai-wishform__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.ai-wishform__title {
    font-size: clamp(36px, 5vw, 66px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: #fff;
    max-width: 660px;
}
.ai-wishform__body {
    margin: 24px 0 28px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}
.ai-wishform__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ai-wishform__tags li {
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    color: #fff;
}
.ai-wishform__form { max-width: 480px; }
.ai-wishform__field {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.ai-wishform__field input[type="email"] {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
}
.ai-wishform__field input[type="email"]::placeholder { color: #999; }
.ai-wishform__submit {
    width: auto;
    min-width: 0;
    height: auto;
    border-radius: 0;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
}
.ai-wishform__help {
    margin: 14px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- 8. FAQ ---------- */
.ai-faq {
    max-width: 1120px;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin: 150px auto 0;
    padding: 0 clamp(20px, 4vw, 80px);
}
.ai-faq__title {
    font-size: clamp(34px, 4.6vw, 66px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 36px;
}
.ai-faq__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(35, 31, 32, 0.18);
}
.ai-faq__item { border-bottom: 1px solid rgba(35, 31, 32, 0.18); }
.ai-faq__q {
    width: 100%;
    background: none;
    border: 0;
    padding: 24px 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    line-height: 1.4;
    transition: color .25s ease;
}
/* v2.6.3 — hover OR is-open opens the panel & tints the question
   blue (mirrors homepage .faq__item behaviour). */
.ai-faq__item:hover .ai-faq__q,
.ai-faq__item.is-open .ai-faq__q { color: var(--color-accent); }
.ai-faq__q-text { padding-right: 24px; flex: 1; }
.ai-faq__icon {
    width: 14px; height: 14px;
    position: relative;
    flex-shrink: 0;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.ai-faq__icon::before,
.ai-faq__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}
.ai-faq__icon::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.ai-faq__icon::after  { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.ai-faq__item:hover .ai-faq__icon,
.ai-faq__item.is-open .ai-faq__icon { transform: rotate(45deg); }

/* Smooth grid-rows expand (same recipe as homepage .faq__panel). */
.ai-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1);
    overflow: hidden;
}
.ai-faq__panel[hidden] { display: grid; }
.ai-faq__panel > p {
    min-height: 0;
    margin: 0;
    padding-top: 0;
    opacity: 0;
    transition: opacity .25s ease, padding-top .4s cubic-bezier(.2,.7,.2,1), padding-bottom .4s cubic-bezier(.2,.7,.2,1);
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    max-width: 880px;
}
.ai-faq__item:hover .ai-faq__panel,
.ai-faq__item.is-open .ai-faq__panel { grid-template-rows: 1fr; }
.ai-faq__item:hover .ai-faq__panel > p,
.ai-faq__item.is-open .ai-faq__panel > p {
    opacity: 1;
    padding: 0 0 24px;
    transition-delay: .08s;
}

/* ---------- 9. BOTTOM CTA ---------- */
.ai-bottom-cta {
    position: relative;
    text-align: center;
    padding: clamp(90px, 10vw, 160px) clamp(20px, 4vw, 80px) clamp(120px, 12vw, 200px);
    max-width: 1100px;
    /* v2.6.40 — uniform 150px gap between AI page sections. */
    margin: 150px auto 0;
    /* v2.9.22 — visible so the cursor-follow blue glow (.work-detail__cta__bg,
       added to this CTA too) isn't hard-clipped at the section box. */
    overflow: visible;
}
.ai-bottom-cta__aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 25% 40%, rgba(160, 215, 255, 0.45), transparent 70%),
        radial-gradient(closest-side at 75% 50%, rgba(220, 200, 255, 0.45), transparent 70%),
        radial-gradient(closest-side at 50% 75%, rgba(255, 232, 188, 0.40), transparent 65%);
    filter: blur(60px);
    opacity: 0.4;
}
.ai-bottom-cta__title,
.ai-bottom-cta__lede,
.ai-bottom-cta .btn { position: relative; z-index: 1; }
.ai-bottom-cta__title {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: #000;
}
.ai-bottom-cta__lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 760px;
    margin: 32px auto 40px;
}

/* ---------- responsive breakpoints ---------- */
@media (max-width: 1000px) {
    .ai-services__grid { grid-template-columns: repeat(2, 1fr); }
    .ai-approach__inner,
    .ai-howit__inner,
    .ai-wishform__inner { grid-template-columns: 1fr; }
    .ai-compare__row { grid-template-columns: 1.4fr 1fr 1fr; padding: 14px 16px; }
    .ai-hero__arrow { display: none; }
}
@media (max-width: 700px) {
    .ai-porto__grid { grid-template-columns: 1fr; row-gap: 40px; }
    .ai-services__grid { grid-template-columns: 1fr; }
    .ai-services__card { min-height: 0; padding: 32px 24px; }
    .ai-approach__photos { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ai-approach__photo--2 { margin-top: 0; }
    .ai-approach__photo--3 { margin-top: 0; }
    .ai-compare__row { grid-template-columns: 1fr; gap: 4px; }
    .ai-compare__cell--label { font-size: 14px; color: #000; text-transform: uppercase; letter-spacing: 0.04em; }
    .ai-compare__row--head { display: none; }
    .ai-wishform__field { flex-direction: column; }
    .ai-wishform__submit { width: 100%; padding: 14px; }
    .ai-hero__stats { flex-direction: column; }
    .ai-hero__stats li + li::before { display: none; }
}

/* =========================================================
   v2.6.33 — Homepage CTA portraits staggered (Figma 22:1076).
   Column 2 (Mark + Jean) sits HIGHER than column 1 — same
   bias as the AI page approach section. Achieved by pushing
   column 1 (Kelvin + Syafiq) DOWN by 80px.
   ========================================================= */
.cta__portrait:nth-child(1),
.cta__portrait:nth-child(3) {
    transform: translateY(80px);
}
.cta__portraits {
    /* Reserve the bottom space the translated col-1 portraits occupy. */
    padding-bottom: 80px;
}
@media (max-width: 768px) {
    .cta__portrait:nth-child(1),
    .cta__portrait:nth-child(3) { transform: none; }
    .cta__portraits { padding-bottom: 0; }
}

/* =========================================================
   SERVICES PAGE (page-services.php) — Figma 279:1504
   Reuses .clients / .portfolio__card / .faq / .testimonials /
   .work-detail__cta from elsewhere; the .svc-* rules below are
   the service-specific sections.
   ========================================================= */
/* Full-width page with even gutters that match the navbar
   (clamp(20px,3.3vw,63px)) — no 1280 cap, so wide monitors don't leave a big
   empty right margin. All svc sections pad with --svc-gutter for equal sides. */
.site-main--services {
    padding-bottom: 0;
    max-width: none;
    width: 100%;
    --svc-gutter: clamp(20px, 3.3vw, 63px);
}
.svc-section-title {
    font-size: 44px; font-weight: 500; text-align: center;
    letter-spacing: -0.01em; margin: 0 0 48px; color: var(--color-text);
}

/* ---- 1. Hero ---- */
.svc-hero { padding: 56px var(--svc-gutter) 0; }
/* H1 hugs the LEFT gutter; the aside (lede + buttons) hugs the RIGHT gutter so
   both sides touch their margins evenly — no trapped space that makes the right
   margin look bigger. The left 1fr absorbs the slack between them. */
.svc-hero__top {
    display: grid; grid-template-columns: 1fr minmax(0, 486px); gap: clamp(48px, 6vw, 120px);
    align-items: end; margin-bottom: 40px;
}
.svc-hero__title {
    font-size: 44px; font-weight: 500; line-height: 1.1;
    letter-spacing: -0.01em; margin: 0 0 14px; max-width: 560px; color: var(--color-text);
}
.svc-hero__oneliner { font-size: 18px; color: var(--color-muted); margin: 0; }
.svc-hero__aside { align-self: end; justify-self: end; width: 100%; max-width: 486px; }
.svc-hero__lede { font-size: 16px; line-height: 1.5; color: var(--color-text); margin: 0 0 22px; }
.svc-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.svc-hero__media {
    border-radius: 0; overflow: hidden; aspect-ratio: 1200 / 390; background: #1a1a1a;
}
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* ---- Hero foot: stats (left) + Trusted-by logos (right) on one row ---- */
.svc-hero__foot {
    display: flex; align-items: center; gap: 40px; margin-top: 26px;
}
.svc-hero__stats {
    display: flex; align-items: center; gap: 20px; list-style: none;
    margin: 0; padding: 0; font-size: 15px; color: var(--color-text); flex: 0 0 auto;
}
.svc-hero__stats-sep { width: 1px; height: 16px; background: rgba(0,0,0,.25); }
/* label ON TOP, sliding logos BELOW it (logos start under the "T"). */
.svc-hero__trusted {
    flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    position: static; width: auto; max-width: none; margin: 0; padding: 0;
    background: transparent;
}
.svc-trusted__label {
    flex: 0 0 auto; font-size: 12px; letter-spacing: .04em;
    color: var(--color-muted-2); margin: 0; text-transform: none; white-space: nowrap;
}
.svc-hero__trusted .clients__marquee { width: 100%; min-width: 0; margin: 0; overflow: hidden; }
.svc-hero__trusted .clients__logo { height: 27px; }

/* ---- 3. Selected work (16:9 cells, sharp corners) ---- */
.svc-work { padding: 90px var(--svc-gutter) 0; }
.svc-work__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: clamp(40px, 5vw, 80px); }
.svc-work .portfolio__thumb {
    display: block; aspect-ratio: 16 / 9; height: auto; border-radius: 0; overflow: hidden;
}
.svc-work .portfolio__thumb-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---- 4. Why it works ---- */
.svc-why { padding: 110px var(--svc-gutter) 0; }
.svc-why__inner { display: grid; grid-template-columns: 548px 1fr; gap: 52px; align-items: center; }
.svc-why__title { font-size: 44px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 26px; }
.svc-why__para { font-size: 16px; line-height: 1.5; color: var(--color-text); margin: 0 0 30px; }
.svc-why__checks { display: flex; flex-wrap: nowrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.svc-why__checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; white-space: nowrap; }
/* checkmarks are STROKE (outlined circle), not a filled disc */
.svc-why__check {
    width: 16px; height: 16px; border-radius: 50%; background: transparent;
    border: 1.5px solid var(--color-accent); flex: 0 0 16px; position: relative;
}
.svc-why__check::after {
    content: ""; position: absolute; left: 4.5px; top: 3px; width: 3.5px; height: 6.5px;
    border: solid var(--color-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.svc-why__media {
    position: relative; aspect-ratio: 607 / 400; border-radius: 0;
    overflow: hidden; background: #d9d9d9;
}
.svc-why__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* numbered process buttons — grey glassmorphism, blue when active */
.svc-why__dots { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 15px; }
.svc-why__dot {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
    background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease;
}
.svc-why__dot.is-on { background: var(--color-accent); border-color: var(--color-accent); }
.svc-why__media-label {
    position: absolute; right: 20px; bottom: 24px; font-size: 20px; font-weight: 500; color: #fff;
}

/* ---- 5. What we offer (accordion) ---- */
.svc-offer { position: relative; padding: 120px var(--svc-gutter) 90px; margin-top: 100px; overflow: visible; }
/* Green glow: RIGHT side only, low opacity. Extends UP (top:-220px) to reach the
   bottom of the Why-2D photo; soft radial that fades out (no hard crop edge). */
.svc-offer__bg {
    position: absolute; z-index: 0; pointer-events: none;
    top: -220px; bottom: 60px; right: calc(50% - 50vw); width: 58vw;
    background: radial-gradient(70% 55% at 100% 38%, rgba(120, 205, 160, 0.26), rgba(120, 205, 160, 0) 72%);
}
.svc-offer__head, .svc-offer__list { position: relative; z-index: 1; }
.svc-offer__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.svc-offer__title { font-size: 44px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 16px; }
.svc-offer__sub { font-size: 17px; line-height: 1.5; color: var(--color-muted); margin: 0; }
.svc-offer__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1055px; }
.svc-offer__item { border-top: 1px solid rgba(0,0,0,.16); }
.svc-offer__item:last-child { border-bottom: 1px solid rgba(0,0,0,.16); }
.svc-offer__row {
    display: flex; align-items: center; gap: 40px; width: 100%; padding: 22px 4px;
    background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
    color: var(--color-text); transition: color .2s ease;
}
.svc-offer__num { font-size: 21px; font-weight: 400; width: 40px; flex: 0 0 40px; }
.svc-offer__name { font-size: 21px; font-weight: 500; text-transform: capitalize; }
.svc-offer__item:hover .svc-offer__row,
.svc-offer__item.is-open .svc-offer__row,
.svc-offer__row:hover { color: var(--color-accent); }
/* Closed = TITLE ONLY (panel fully collapsed). Opens on HOVER (like .faq);
   click toggles .is-open to persist. max-height collapse is bulletproof here —
   the grid-rows trick leaked because the aspect-ratio video resisted it. */
.svc-offer__panel {
    overflow: hidden; max-height: 0;
    transition: max-height .45s cubic-bezier(.2,.7,.2,1);
}
.svc-offer__item:hover .svc-offer__panel,
.svc-offer__item.is-open .svc-offer__panel { max-height: 560px; }
.svc-offer__panel-inner {
    display: grid; grid-template-columns: 345px 1fr; gap: 56px; align-items: start;
    padding: 8px 4px 36px 80px;
}
.svc-offer__media {
    position: relative; overflow: hidden; aspect-ratio: 345 / 200; border-radius: 0; background: #585858;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
}
.svc-offer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.svc-offer__media span { position: relative; z-index: 1; font-weight: 500; }
.svc-offer__desc { font-size: 17px; line-height: 1.5; margin: 0 0 18px; max-width: 360px; }
.svc-offer__best-label { font-size: 14px; color: var(--color-muted); margin: 0 0 2px; }
.svc-offer__best { font-size: 14px; color: var(--color-muted); margin: 0 0 26px; max-width: 360px; line-height: 1.45; }
.svc-offer__cta { min-width: 0; }

/* ---- 6. How we work ---- */
.svc-how { padding: 100px var(--svc-gutter) 0; text-align: center; }
.svc-how__title { font-size: 44px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 14px; }
.svc-how__lede { font-size: 16px; color: var(--color-muted); margin: 0 0 60px; }
.svc-how__steps {
    list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 45px;
}
.svc-how__step {
    position: relative; flex: 0 0 187px; max-width: 187px; display: flex; flex-direction: column; align-items: center;
}
.svc-how__step:not(:last-child)::after {
    content: ""; position: absolute; top: 20px; right: -33px; width: 22px; height: 1px; background: rgba(0,0,0,.4);
}
.svc-how__num {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: #000; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px;
}
.svc-how__step-name { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.svc-how__step-note { font-size: 14px; line-height: 1.4; color: var(--color-muted); margin: 0; }

/* ---- 9. CTA related services (rest reuses .work-detail__cta / .ai-bottom-cta) ---- */
.svc-cta { text-align: center; }
.svc-cta__actions { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.svc-cta .btn--outline-dark.svc-cta__call {
    display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 36px; font-size: 18px;
}
.svc-cta__related { margin-top: 70px; }
.svc-cta__related-label { font-size: 22px; font-weight: 500; margin: 0 0 18px; }
.svc-cta__related-list {
    list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 56px; flex-wrap: wrap; justify-content: center;
}
.svc-cta__related-list a { font-size: 18px; font-weight: 500; color: var(--color-text); transition: color .2s ease; }
.svc-cta__related-list a:hover { color: var(--color-accent); }

/* ---- Services responsive ---- */
@media (max-width: 1100px) {
    .svc-hero__top { grid-template-columns: 1fr; gap: 24px; align-items: start; }
    .svc-hero__aside { align-self: start; justify-self: start; max-width: none; }
    .svc-hero__actions { justify-content: flex-start; }
    .svc-why__inner { grid-template-columns: 1fr; gap: 32px; }
    .svc-offer__panel-inner { grid-template-columns: 300px 1fr; gap: 36px; padding-left: 40px; }
    .svc-how__steps { flex-wrap: wrap; gap: 40px 24px; }
    .svc-how__step:not(:last-child)::after { display: none; }
    .svc-hero__foot { flex-direction: column; align-items: flex-start; gap: 18px; }
    .svc-hero__trusted { width: 100%; }
}
@media (max-width: 700px) {
    .svc-hero__title { font-size: 34px; }
    .svc-section-title, .svc-why__title, .svc-offer__title, .svc-how__title { font-size: 30px; }
    .svc-work__grid { grid-template-columns: 1fr; row-gap: 32px; }
    .svc-why__checks { flex-wrap: wrap; }
    .svc-offer__panel-inner { grid-template-columns: 1fr; gap: 20px; padding-left: 0; }
    .svc-offer__item:hover .svc-offer__panel,
    .svc-offer__item.is-open .svc-offer__panel { max-height: 820px; }
    .svc-offer__row { gap: 20px; }
    .svc-offer__num, .svc-offer__name { font-size: 19px; }
    .svc-how__step { flex-basis: 130px; }
    .svc-cta__related-list { gap: 22px 32px; }
}
@media (max-width: 480px) {
    .svc-hero, .svc-work, .svc-why, .svc-how { padding-left: 20px; padding-right: 20px; }
    .svc-offer { padding-left: 20px; padding-right: 20px; }
    .svc-hero__stats { flex-wrap: wrap; gap: 8px 14px; }
}
