/* Type: Inter throughout. */
:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-2: #0c1a23;
  --ink: #eef3f6;
  --gray: #aab9c3;
  --line: rgba(255, 255, 255, .1);
  --azul: #26536b;          /* Azul Colonial */
  --azul-lit: #3d7c9c;
  --azul-text: #9fd0ea;     /* the blue, readable on dark */
  --pad: clamp(16px, 3.4vw, 48px);
  --radius: 14px;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --billing: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --azul-head: #f4f8fa;     /* headings: near-white for contrast; blue is the accent */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(61, 124, 156, .28), transparent 62%),
    radial-gradient(900px 600px at -10% 18%, rgba(38, 83, 107, .32), transparent 60%),
    var(--bg) no-repeat; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
section { padding: 0 var(--pad); scroll-margin-top: 80px; }
::selection { background: var(--azul-lit); color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); background: rgba(7, 16, 22, .55); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; }
.brand img { height: 46px; width: auto; }
.top nav { display: flex; gap: 34px; font-family: var(--billing); font-weight: 500; letter-spacing: 0; font-size: 18px; color: #dbe5ea; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--azul-text); }

/* Intro */
.intro { position: relative; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 52px); }
.intro .eyebrow { display: block; font-family: var(--label); font-size: 14px; font-weight: 500; color: var(--azul-text); margin-bottom: 16px; }
.intro h1 { font-family: var(--display); font-weight: 500; color: var(--azul-head); font-size: clamp(36px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -.02em; }
.intro h1 b { font-weight: inherit; color: var(--azul-text); white-space: nowrap; }
/* Short descriptive lines under headings and on cards. */
.billing { font-family: var(--billing); font-weight: 400; line-height: 1.4; color: #c8d4dc; font-size: clamp(16px, 1.4vw, 20px); }
.billing small { font-size: 1em; }
.billing small:first-child { margin-left: 0; }
.billing .dot { margin: 0 .35em; color: var(--azul-text); opacity: .7; }
.billing.credit { margin: 4px 0 28px; }
.intro .sub { margin-top: clamp(24px, 2.6vw, 40px); }
.intro > p:only-child { font-family: var(--display); font-weight: 500; color: var(--azul-head); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -.02em; max-width: 16em; }
.hl { font-style: normal; white-space: nowrap; background: linear-gradient(100deg, #b9def0 0%, #6fb0d2 45%, #3d7c9c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Work: two previews per row */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.project { position: relative; display: block; border-radius: var(--radius); overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(61, 124, 156, .45); transition: box-shadow .4s ease; }
.project:hover { box-shadow: 0 0 0 1px rgba(140, 192, 219, .35), 0 50px 140px -40px rgba(61, 124, 156, .75); }
.media { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.project:hover .media video { transform: scale(1.025); }
.media.empty { background:
  radial-gradient(60% 80% at 30% 30%, rgba(61, 124, 156, .55), transparent 70%),
  radial-gradient(50% 70% at 80% 80%, rgba(38, 83, 107, .7), transparent 70%),
  linear-gradient(135deg, #0e2230, #08131a); background-size: 160% 160%; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.appicon { position: absolute; top: clamp(12px, 1.4vw, 20px); right: clamp(12px, 1.4vw, 20px); z-index: 2; width: clamp(44px, 4.4vw, 64px); height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55)); pointer-events: none; }
.caption { position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; padding: clamp(16px, 2vw, 28px); padding-top: 90px; background: linear-gradient(to top, rgba(4, 10, 14, .88), rgba(4, 10, 14, .4) 55%, transparent); }
.caption h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1; }
.caption p { grid-row: 2; margin-top: 8px; }
.caption .billing { color: #c3d2da; font-size: clamp(15px, 1.2vw, 18px); }
.caption span { grid-row: 1 / 3; grid-column: 2; color: var(--gray); font-family: var(--label); font-size: 12px; letter-spacing: .05em; }

/* Labeled sections */
/* Approach, Talks, Contact pages */
.page-head { padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(20px, 2.4vw, 32px); }
.page-head h1 { font-family: var(--display); font-weight: 500; color: var(--azul-head); font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.approach, .talks, .contact { display: block; }
.label { font-family: var(--label); font-size: 14px; font-weight: 500; color: var(--azul-text); }

.approach { margin: 0; }
.approach .lead { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -.01em; max-width: 30em; margin-bottom: clamp(28px, 3.5vw, 48px); }
.approach .lead span { color: var(--azul-text); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.points li { background: #0e1d27; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 30px; }
.points h2 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; letter-spacing: -.01em; }
.points p { font-size: 15px; color: #c8d4dc; line-height: 1.5; }
.ico { width: 48px; height: 48px; fill: none; stroke: var(--azul-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* Gentle looping motion on the icons; off for reduced motion. */
.ico-crew circle:nth-of-type(1), .ico-crew path:nth-of-type(1) { animation: nod 2.4s ease-in-out infinite; }
.ico-crew circle:nth-of-type(2), .ico-crew path:nth-of-type(2) { animation: nod 2.4s ease-in-out -1.2s infinite; }
.ico-fast .hand { transform-origin: 24px 26px; animation: tick 4s linear infinite; }
.ico-adapt .spin { transform-origin: 24px 24px; animation: turn 6s linear infinite; }
.ico-own { overflow: visible; }
.ico-own * { transform-box: view-box; transform-origin: 16px 24px; animation: keyturn 3.2s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tick { to { transform: rotate(360deg); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes keyturn { 0%, 15% { transform: translateX(0) scaleY(1); } 35% { transform: translateX(5px) scaleY(1); } 50% { transform: translateX(5px) scaleY(.12); } 65% { transform: translateX(5px) scaleY(1); } 85%, 100% { transform: translateX(0) scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .ico, .ico * { animation: none !important; } }

.talk h3 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.02em; line-height: 1; }
.talk .talk-sub { color: #d3dee4; font-size: clamp(20px, 2vw, 28px); margin: 12px 0 6px; }
.talk p:not(.talk-sub):not(.billing) { font-size: 17px; max-width: 38em; margin-bottom: 26px; color: #d3dee4; }

.link { color: var(--azul-text); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: #fff; }
.contact p { font-size: 17px; margin-bottom: 14px; color: #d3dee4; }
.contact .big { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.8vw, 56px); letter-spacing: -.02em; border-bottom-width: 2px; }
.contact > a { justify-self: start; }

.foot { margin-top: clamp(56px, 7vw, 96px); padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--gray); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: radial-gradient(800px 300px at 50% 120%, rgba(61, 124, 156, .35), transparent 70%); }
.foot { flex-direction: column; align-items: stretch; gap: 28px; }
.foot .block { text-align: center; line-height: 1.35; font-size: clamp(15px, 1.5vw, 21px); color: #8ea2ae; max-width: 60em; margin: 8px auto 0; }
.foot-row { display: flex; justify-content: flex-start; align-items: center; gap: 16px; }
.foot img { height: 30px; width: auto; }

/* Case study */
.case-head { padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: 36px; }
.case-head .back { color: var(--azul-text); font-family: var(--billing); font-weight: 400; font-size: 15px; display: inline-block; margin-bottom: 32px; }
.case-head h1 { font-family: var(--display); font-weight: 500; color: #fff; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 28px; }
.case-head p { font-size: clamp(20px, 2.2vw, 28px); color: #c3d2da; max-width: 26em; line-height: 1.3; }
.case-media { padding: 0 var(--pad); }
.case-media .media { aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 50px 140px -40px rgba(61, 124, 156, .6); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 36px var(--pad) 0; font-size: 15px; }
.facts dt { font-family: var(--billing); font-weight: 500; font-size: 13px; color: var(--azul-text); }
.facts dd { margin: 2px 0 0; font-family: var(--billing); font-weight: 400; font-size: 18px; }
.cast { padding-bottom: clamp(40px, 5vw, 64px); }
.case-body { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding-top: clamp(48px, 6vw, 88px); }
.case-body .text { max-width: 38em; }
.case-body .text p { font-size: 19px; line-height: 1.55; margin-bottom: 1em; color: #d3dee4; }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); padding: clamp(48px, 6vw, 88px) var(--pad) 0; }
.stills img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.stills.phones { grid-template-columns: repeat(4, 1fr); }
.stills.phones img { aspect-ratio: 1284 / 2778; object-fit: cover; }
.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.5; color: #d3dee4; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--azul-text); }
.stills .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.next { padding-top: clamp(56px, 7vw, 104px); }
.next a { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 56px); letter-spacing: -.02em; }
.next a span { color: var(--gray); }
.next a:hover { color: var(--azul-text); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
  background: radial-gradient(70% 60% at 50% 35%, rgba(61, 124, 156, .5), transparent 70%), linear-gradient(160deg, #10273a, #08131a); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h2 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.01em; line-height: 1.1; }
.person .role { font-family: var(--billing); font-weight: 400; font-size: 15px; color: var(--azul-text); margin: 4px 0 12px; }
.person p:not(.role) + p { margin-top: .8em; }
.person p:not(.role) { font-size: 15px; max-width: 30em; color: #d3dee4; }

@media (max-width: 900px) { .team, .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .top nav { gap: 16px; font-size: 16px; }
  .work { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .stills { grid-template-columns: 1fr; }
  .stills.phones { grid-template-columns: 1fr 1fr; }
  .case-body { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .project { border-radius: 12px; background: var(--bg-2); }
  .caption { position: static; padding: 18px 18px 20px; background: none; }
  .caption h2 { font-size: 26px; }
}
@media (max-width: 560px) { .team, .points { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .media video { transition: none; } .media.empty { animation: none; } }

/* Talks timeline */
.page-sub { margin-top: 12px; font-size: clamp(17px, 1.5vw, 20px); color: #c8d4dc; max-width: 36em; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 900px; border-left: 2px solid rgba(159, 208, 234, .25); }
.timeline li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 0 0 34px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--azul-text); }
.tl-year { font-weight: 600; color: var(--azul-text); font-size: 17px; padding-top: 1px; }
.tl-body h2 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.tl-where { margin-top: 4px; color: #c8d4dc; font-size: 15px; }
.tl-who { margin-top: 2px; color: var(--azul-text); font-size: 15px; }
.tl-note { margin-top: 6px; color: #aab9c3; font-size: 15px; max-width: 40em; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; } }

/* Get in touch form */
.get-in-touch { margin-top: clamp(48px, 6vw, 80px); max-width: 760px; }
.get-in-touch h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.gi-lead { margin: 8px 0 24px; color: #c8d4dc; font-size: 17px; }
#contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: #c8d4dc; }
#contact-form input, #contact-form select, #contact-form textarea { font: inherit; font-size: 16px; color: var(--ink); background: #0e1d27; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
#contact-form textarea { resize: vertical; min-height: 140px; }
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus { outline: 2px solid var(--azul-text); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ffb4a8; font-size: 15px; min-height: 1em; }
.btn { justify-self: start; font: inherit; font-weight: 600; font-size: 16px; color: #06131b; background: var(--azul-text); border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; }
.btn:hover { background: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.sent h3 { font-size: 22px; font-weight: 600; }
.sent p { margin-top: 6px; color: #c8d4dc; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
#contact-turnstile:empty, .form-error:empty { display: none; }
