/* v5 original. Warm sand, photo led, built for the phone first. */
@font-face { font-family: "Sora"; src: url("../assets/fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../assets/fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sand: #f3efe6;
  --sand-2: #e8e2d5;
  --ink: #231f20;
  --ink-2: #5b5552;
  --blue: #2c4aff;
  --blue-deep: #1a2fc8;
  --night: #0b0d24;
  --white: #fff;
  --pad: 18px;
  --r: 18px;
  --head: "Sora", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.55 var(--body); overflow-x: hidden; }
body.lock { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

.kicker { font: 600 13px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.kicker-light { color: #fff; opacity: 0.85; }
.h2 { font: 700 clamp(32px, 8.4vw, 76px)/1.02 var(--head); letter-spacing: -0.035em; max-width: 18ch; }
.h3 { font: 700 clamp(40px, 11vw, 96px)/0.98 var(--head); letter-spacing: -0.04em; margin-bottom: 14px; }
.h4 { font: 700 clamp(24px, 6.4vw, 40px)/1.08 var(--head); letter-spacing: -0.03em; margin-bottom: 10px; max-width: 20ch; }
.body-lg { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.sec-head { padding-inline: var(--pad); margin-bottom: 28px; }

/* Buttons. A fill rises from the bottom on hover, the button lifts and the arrow slides. */
.btn { --fill: var(--blue-deep); --on: #fff; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent; background: transparent; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s; }
/* Hover fills the whole button, border included, so no ring of the old color shows. */
.btn:hover { background-color: var(--fill); border-color: var(--fill); color: var(--on); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(44, 74, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.arr { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 0.35s var(--ease); }
.btn:hover .arr, .dock:hover .arr { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-sm .arr { width: 14px; height: 14px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-line { border-color: var(--ink); --fill: var(--blue); --on: #fff; }
.btn-white { background: #fff; color: var(--ink); --fill: var(--blue); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; --fill: #fff; --on: var(--ink); }
.btn-ghost:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25); }

/* Header */
.top { position: fixed; top: 0; inset-inline: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad); transition: background 0.3s, box-shadow 0.3s; }
.top.is-solid { background: rgba(243, 239, 230, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--sand-2); }
.top-logo { display: inline-flex; align-items: center; min-height: 44px; }
.top-logo img { width: 136px; }
.top-nav { display: none; }

/* Phones and tablets: one hamburger in the header opens a full-screen menu. Desktop keeps the inline nav and the button. */
.top-cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--night); color: #fff; cursor: pointer; transition: background-color 0.3s, transform 0.35s var(--ease); }
.menu-btn:hover { background: var(--blue); transform: translateY(-2px); }
.menu-btn:active { transform: scale(0.95); }
.bars { position: relative; display: block; width: 20px; height: 10px; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.bars::before { top: 0; }
.bars::after { bottom: 0; transform-origin: right; }
.menu-btn:not(.is-close):hover .bars::after { transform: scaleX(0.6); }
.menu-btn.is-close { background: rgba(255, 255, 255, 0.12); }
.menu-btn.is-close:hover { background: var(--blue); }
.is-close .bars::before { transform: translateY(4px) rotate(45deg); }
.is-close .bars::after { transform-origin: center; transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--night); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.menu[open] { display: flex; flex-direction: column; animation: menu-in 0.45s var(--ease); }
.menu::backdrop { background: rgba(11, 13, 36, 0.6); }
.menu-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad); }
.menu-logo { width: 136px; height: auto; }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px var(--pad); }
.menu-nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; font: 700 clamp(40px, 11vw, 76px)/1 var(--head); letter-spacing: -0.04em; transition: color 0.3s, transform 0.4s var(--ease); }
.menu-nav a:first-child { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.menu-nav a:hover { color: #8ea0ff; transform: translateX(8px); }
.menu-num { flex: none; font: 600 13px/1 var(--body); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5); }
.menu[open] .menu-nav a, .menu[open] .menu-foot { animation: menu-link 0.6s var(--ease) both; }
.menu[open] .menu-nav a:nth-child(2) { animation-delay: 0.05s; }
.menu[open] .menu-nav a:nth-child(3) { animation-delay: 0.1s; }
.menu[open] .menu-nav a:nth-child(4) { animation-delay: 0.15s; }
.menu[open] .menu-foot { animation-delay: 0.2s; }
.menu-foot { display: grid; gap: 16px; padding: 0 var(--pad) max(28px, env(safe-area-inset-bottom)); }
.menu-cta { width: 100%; }
.menu-reach { display: flex; flex-wrap: wrap; column-gap: 24px; margin: 0; }
.menu-reach a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.8); font-weight: 600; text-decoration: none; transition: color 0.3s; }
.menu-reach a:hover { color: #fff; }
.menu .social { margin-top: 0; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes menu-link { from { opacity: 0; transform: translateY(24px); } }

/* Hero */
.hero { padding-top: 96px; display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }
.hero-copy { padding-inline: var(--pad); }
.hero-title { font: 700 clamp(46px, 14.4vw, 168px)/0.98 var(--head); letter-spacing: -0.05em; margin-inline-start: -0.083em; }
.hero-title em { font-style: normal; color: var(--blue); white-space: nowrap; }
.film-wall { display: grid; gap: 8px; overflow: hidden; }
.film-row { overflow: hidden; }
.film-run { display: flex; gap: 8px; width: max-content; animation: run 46s linear infinite; }
.film-row[data-dir="right"] .film-run { animation-direction: reverse; animation-duration: 52s; }
.film-run img { width: 66vw; max-width: 520px; aspect-ratio: 1600 / 656; object-fit: cover; border-radius: 12px; }
@keyframes run { to { transform: translateX(calc(-50% - 4px)); } }
.hero-foot { padding-inline: var(--pad); display: grid; gap: 24px; }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 44ch; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Client logo ticker. The logo files are white, so they are turned ink here. */
.logos { padding: 30px 0 34px; border-block: 1px solid var(--sand-2); }
.logos-label { padding-inline: var(--pad); font: 600 13px var(--body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); margin-bottom: 20px; }
.logo-run { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; gap: 48px; padding-inline-end: 48px; flex: none; animation: logos 34s linear infinite; }
.logo-track img { height: 56px; width: auto; filter: brightness(0); opacity: 0.72; transition: opacity 0.3s, transform 0.4s var(--ease); }
/* On hover the logo turns Widenext blue. The filter paints the blue through the logo shape. */
.logo-track img:hover { filter: url(#tint-blue); opacity: 1; transform: scale(1.06); }
.logo-run:hover .logo-track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-100%); } }

/* Services */
.services { padding: 64px 0 24px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; padding-inline: var(--pad); }
.tile img, .tile video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); margin-bottom: 10px; background: var(--sand-2); }
.tile-wide { grid-column: 1 / -1; }
.tile-wide video { aspect-ratio: 16 / 9; }
.tile-name { font: 700 17px/1.2 var(--head); letter-spacing: -0.01em; }
.tile-line { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* Work */
.work { padding: 64px 0 24px; }
/* Case cards. Closed, each shows a cover, the client and one line. Tapping anywhere on the head opens the work in place. */
.cases { display: grid; gap: 14px; padding-inline: var(--pad); }
.case { --cp: 14px; position: relative; background: #fff; border-radius: 24px; transition: box-shadow 0.35s var(--ease); }
.case:hover { box-shadow: 0 18px 44px rgba(11, 13, 36, 0.08); }
.case-head { position: relative; display: grid; gap: 18px; padding: var(--cp); }
.case-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--sand-2); }
.case-cover > :first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.case-head:hover .case-cover > :first-child { transform: scale(1.03); }
.asir-logo { position: absolute; inset-inline-start: 12px; top: 12px; width: 92px; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(11, 13, 36, 0.18); }
.case-info { display: grid; align-content: center; gap: 10px; padding: 0 4px 6px; }
.case-info .kicker, .case-title, .case-line { margin: 0; }
.case-btn { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: start; font: 700 clamp(24px, 6.4vw, 40px)/1.08 var(--head); letter-spacing: -0.03em; cursor: pointer; }
/* The button's hit area covers the whole card head */
.case-btn::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.case-btn:focus-visible { outline: none; }
.case-btn:focus-visible::after { outline: 3px solid var(--blue); outline-offset: -3px; }
.case-plus { position: relative; flex: none; width: 44px; height: 44px; margin-top: -4px; border: 1.5px solid rgba(35, 31, 32, 0.2); border-radius: 50%; transition: background-color 0.3s, border-color 0.3s, transform 0.45s var(--ease); }
.case-plus::before, .case-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--ink); transition: transform 0.45s var(--ease), background-color 0.3s; }
.case-plus::after { transform: rotate(90deg); }
.case-head:hover .case-plus { background: var(--blue); border-color: var(--blue); }
.case-head:hover .case-plus::before, .case-head:hover .case-plus::after { background: #fff; }
.case.is-open .case-plus { transform: rotate(180deg); }
.case.is-open .case-plus::after { transform: rotate(0deg); }
.case-line { color: var(--ink-2); max-width: 46ch; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.scope li { font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 12px; border: 1px solid rgba(35, 31, 32, 0.16); border-radius: 999px; color: var(--ink-2); }

/* Opening animates the body row from 0 to its content height. Without JS every card stays open. */
.case-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s var(--ease); }
.js .case:not(.is-open) .case-body { grid-template-rows: 0fr; }
.case-inner { min-height: 0; overflow: hidden; padding-inline: var(--cp); }
.case-inner > :first-child { margin-top: 4px; }
.case-inner > :last-child { margin-bottom: var(--cp); }
.case-sub { margin: 28px 4px 12px; }
.case-inner > .case-sub:first-child { margin-top: 8px; }

/* Sliders. Swipe on phones, drag with the mouse, or use the arrows. Items snap into place. */
.rail { position: relative; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--cp)); padding: 2px var(--cp); scroll-padding-inline: var(--cp); overscroll-behavior-x: contain; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.is-drag li { pointer-events: none; }
.rail li { flex: 0 0 auto; height: 300px; max-width: 84%; aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--sand-2); }
.rail li.wide { aspect-ratio: 16 / 10; }
.rail li.sq { aspect-ratio: 1 / 1; }
.rail img, .rail video { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.slider-nav { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.slider-count { flex: none; min-width: 44px; font: 600 14px/1 var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.slider-bar { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(35, 31, 32, 0.12); overflow: hidden; }
.slider-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0.2); transition: transform 0.2s; }
.slider-btns { display: flex; gap: 8px; }
.slider-btns button { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(35, 31, 32, 0.2); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s; }
.slider-btns button:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }
.slider-btns button:disabled { opacity: 0.35; cursor: default; }
.slider-btns svg { width: 18px; height: 18px; }

/* Asir film. The two cuts are a small switch on the frame. */
.player { position: relative; }
.player-frame { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--sand-2); }
.player-frame img, .player-frame video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.player-cap { position: absolute; inset-inline-start: 12px; bottom: 12px; font: 600 13px/1 var(--body); color: #fff; background: rgba(11, 13, 36, 0.55); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 999px; }
.player-frame video ~ .player-cap { bottom: auto; top: 12px; }
.player-tabs { position: absolute; inset-inline-end: 10px; bottom: 10px; display: flex; gap: 2px; padding: 3px; background: rgba(11, 13, 36, 0.55); backdrop-filter: blur(8px); border-radius: 999px; }
.player-tabs button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 600 13px var(--body); cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.player-tabs [aria-selected="true"] { background: #fff; color: var(--ink); }
.player-frame:has(video) ~ .player-tabs { bottom: auto; top: 10px; }
.library-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-head .kicker { margin: 0; }
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.library-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.library-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s; }
.library-grid button:hover img { transform: scale(1.05); }

/* Moving statements */
.statement { padding: 56px 0; overflow: hidden; display: grid; gap: 4px; }
.say { overflow: hidden; }
.say-run { display: flex; width: max-content; font: 700 clamp(52px, 15vw, 180px)/1.02 var(--head); letter-spacing: -0.05em; white-space: nowrap; animation: say 30s linear infinite; }
.say-run span { padding-inline-end: 0.45em; }
.say-blue .say-run { color: var(--blue); animation-direction: reverse; animation-duration: 34s; }
/* Outline text. The fill is the page colour painted over the inner half of a doubled stroke, which hides the lines where letter shapes overlap. */
.hollow { color: var(--sand); -webkit-text-stroke: 4px currentColor; paint-order: stroke fill; }
.say-run .hollow { -webkit-text-stroke-color: var(--ink); }
.say-blue .say-run .hollow { -webkit-text-stroke-color: var(--blue); }
@keyframes say { to { transform: translateX(-50%); } }

/* Approach */
.how { padding: 24px 0 72px; }
.steps { padding-inline: var(--pad); display: grid; border-top: 1px solid var(--sand-2); }
.steps li { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--sand-2); }
.step-n { font: 700 15px var(--head); color: var(--blue); }
.step-t { font: 700 clamp(22px, 6vw, 30px)/1.15 var(--head); letter-spacing: -0.02em; }

/* Contact */
.contact { position: relative; background: var(--night); color: #fff; overflow: hidden; border-radius: 0 0 28px 28px; }
.contact-bg { width: 100%; height: 240px; object-fit: cover; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.contact-inner { position: relative; padding: 0 var(--pad) 56px; margin-top: -40px; display: grid; gap: 30px; }
/* Big letters with a straight left stem carry extra side space in the font. Pulling them left by that amount puts the ink on the page edge. */
#contact-title { margin-inline-start: -0.083em; }
.contact-note { margin-top: 14px; color: rgba(255, 255, 255, 0.8); max-width: 42ch; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.card { background: #fff; color: var(--ink); border-radius: 24px; padding: 22px 18px; }
.form { display: grid; gap: 14px; }
.form-note { font-size: 14px; color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field label { font: 600 15px var(--body); }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #cfc8bb; border-radius: 12px; background: var(--sand); color: var(--ink); font: 400 17px var(--body); appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44, 74, 255, 0.2); background: #fff; }
.field [aria-invalid="true"] { border-color: #c4312b; background: #fff6f5; }
.err { font-size: 14px; color: #b0261f; font-weight: 600; }
.form-send { width: 100%; }
.form-done { padding: 12px 4px; font-size: 17px; }
.form-done-title { font: 700 28px/1.1 var(--head); margin-bottom: 8px; color: var(--blue); }

/* Footer */
.foot { background: var(--night); color: #fff; padding: 56px var(--pad) 96px; margin-top: 12px; border-radius: 28px 28px 0 0; overflow: hidden; }
.foot a { text-decoration: none; }
.foot-top { display: grid; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.foot-big { font: 700 clamp(28px, 7.6vw, 52px)/1.05 var(--head); letter-spacing: -0.03em; max-width: 14ch; margin-bottom: 22px; text-wrap: balance; margin-inline-start: -0.083em; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.foot-cols > div:first-child { grid-column: 1 / -1; }
.foot-h { font: 600 13px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #8ea0ff; margin-bottom: 14px; }
.foot-cols ul { display: grid; gap: 10px; }
.foot-cols a { color: rgba(255, 255, 255, 0.78); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.25s, background-size 0.35s var(--ease); }
.foot-cols a:hover { color: #fff; background-size: 100% 1px; }
.social { display: flex !important; gap: 10px !important; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 50%; color: #fff; background: none !important; transition: background-color 0.3s, border-color 0.3s, transform 0.35s var(--ease) !important; }
.social a:hover { background-color: var(--blue) !important; border-color: var(--blue); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social .dot { fill: currentColor; }
.foot-base { display: grid; gap: 8px; padding: 22px 0 28px; font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.foot-ar { text-align: start; }
.foot-up { color: #fff; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.foot-up:hover { color: #8ea0ff; }
.foot-logo { width: 100%; height: auto; }

/* Phone dock */
.dock { position: fixed; z-index: 25; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 16px; background: var(--blue); color: #fff; font: 600 16px var(--body); text-decoration: none; box-shadow: 0 10px 30px rgba(44, 74, 255, 0.35); transform: translateY(140%); transition: transform 0.35s ease; }
.dock.is-on { transform: none; }
.dock { gap: 10px; }

/* Lightbox */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 16px; border: 0; background: #111; color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; }
.lb-close { min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 12px; background: none; cursor: pointer; font-weight: 600; }
.lb-stage { flex: 1; display: grid; place-content: center; gap: 12px; }
.lb-stage img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; }
.lb-stage figcaption { color: rgba(255, 255, 255, 0.75); text-align: center; }
.lb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Rise on enter */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .hero-cta .btn { padding: 0 12px; gap: 8px; font-size: 15px; }
}

@media (min-width: 768px) {
  :root { --pad: 40px; --r: 22px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
  .tile-wide { grid-column: span 2; }
  /* The wide tile takes its height from the photo tiles in its row. The video fills what is left after the caption. */
  .tile-wide { display: flex; flex-direction: column; }
  .tile-wide video { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; }
  .hero-cta { display: flex; }
  .cases { gap: 18px; }
  .case { --cp: 18px; border-radius: 28px; }
  .case-btn::after { border-radius: 28px; }
  .case-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .case-info { padding: 8px 8px 8px 0; }
  .case-btn { font-size: clamp(26px, 3.2vw, 40px); }
  .asir-logo { width: 112px; inset-inline-start: 16px; top: 16px; }
  .player-frame img, .player-frame video { aspect-ratio: 1600 / 656; }
  .player-tabs { inset-inline-end: 14px; bottom: 14px; }
  .library-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rail li { height: 360px; max-width: none; }
  .card { padding: 32px; }
  .form { grid-template-columns: 1fr 1fr; gap: 16px; }
  .field-full, .form-note, .form-send, .form-done { grid-column: 1 / -1; }
  .form-send { width: auto; justify-self: start; }
  .contact-bg { height: 340px; }
  .foot { padding: 80px var(--pad) 40px; margin-top: 16px; border-radius: 36px 36px 0 0; }
  .contact { border-radius: 0 0 36px 36px; }
  .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: auto; }
  .foot-base { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
  .logo-track img { height: 72px; }
  .logo-track { gap: 64px; padding-inline-end: 64px; }
  .lb-nav { width: 360px; margin-inline: auto; }
}

@media (min-width: 1100px) {
  .top { padding: 16px var(--pad); }
  .top-logo img { width: 150px; }
  .top-nav { display: flex; gap: 28px; font-weight: 600; }
  .top-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .top-nav a { text-decoration: none; }
  .top-nav a:hover { color: var(--blue); }
  .hero { padding-top: 120px; gap: 40px; padding-bottom: 56px; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
  .film-run img { width: 34vw; max-width: 560px; }
  .film-wall { gap: 12px; }
  .film-run { gap: 12px; }
  .services, .work { padding-top: 110px; }
  .sec-head { margin-bottom: 44px; }
  .case { --cp: 20px; }
  .case-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .case-feature .case-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .case-feature .case-btn { font-size: clamp(40px, 4.2vw, 60px); }
  .case-sub { margin-top: 36px; }
  .rail li { height: 420px; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border: 0; gap: 24px; }
  .steps li { flex-direction: column; gap: 12px; border: 0; border-top: 2px solid var(--ink); padding-top: 18px; }
  .how { padding-block: 40px 120px; }
  .statement { padding-block: 96px; }
  .foot-top { grid-template-columns: 1fr 1.6fr; gap: 64px; padding-bottom: 64px; }
  .top-nav a { position: relative; }
  .top-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
  .top-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .contact-bg { position: absolute; inset: 0; height: 100%; opacity: 0.45; -webkit-mask-image: none; mask-image: none; }
  .contact-inner { grid-template-columns: 1fr 1.1fr; gap: 64px; padding-block: 120px; margin: 0; align-items: start; }
  .contact-copy { position: sticky; top: 120px; }
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-run, .say-run { animation: none; }
  .logo-run { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; flex-wrap: wrap; row-gap: 20px; padding-inline: var(--pad); }
  .logo-track[aria-hidden="true"] { display: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .menu[open], .menu[open] .menu-nav a, .menu[open] .menu-foot { animation: none; }
  * { transition: none !important; }
}
