/* Three Harbours — "Three Cities" palette */
:root {
  --paper: #F4F6F5;
  --white: #FFFFFF;
  --ink: #1A2228;
  --muted: #56616B;
  --line: #DDE3E1;
  --dublin: #2E6A55;   /* Liffey green */
  --sydney: #2B6F9E;   /* Harbour blue, main accent */
  --london: #56616B;   /* Thames slate */
  --dublin-soft: #86C0AA;
  --sydney-soft: #7FB4DA;
  --london-soft: #AEB9C2;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --btn-radius: 10px;

  --mark-line: var(--ink); --mark-bg: var(--paper);
  --mark-1: var(--dublin); --mark-2: var(--sydney); --mark-3: var(--london);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--sydney); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sydney); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--body); text-decoration: none; border-radius: var(--btn-radius); padding: 14px 22px; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--sydney); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--gutter); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .btn { justify-self: end; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; margin: -10px -6px; }
.brand-word { font: 600 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--sydney); }
.nav-cta .short { display: none; }
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }
  .brand-word { font-size: 12px; letter-spacing: .14em; }
}

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: clamp(64px, 12vw, 140px) var(--gutter) clamp(56px, 8vw, 96px); max-width: 1000px; margin: 0 auto; }
.eyebrow { color: var(--sydney); font-weight: 500; font-size: 17px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); }
.hero-copy { color: var(--muted); max-width: 40ch; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.cred { font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.cred::before { content: ""; width: 22px; height: 1.5px; background: currentColor; flex: none; }
@media (max-width: 520px) { .cred { font-size: 11px; text-align: center; } .cred::before { display: none; } }

/* Logo wall */
.logos { padding: 0 var(--gutter) clamp(56px, 7vw, 88px); max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.logos-intro { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo-row { list-style: none; margin: 0; padding: 26px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); border-block: 1px solid var(--line); }
.lg { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.lg:hover, .lg:focus-visible { filter: none; opacity: 1; }
.lg span { font: 700 17px var(--display); text-transform: uppercase; letter-spacing: .18em; }
.lg-wy span { color: #1D2D3D; letter-spacing: .22em; }
.lg-us { height: 34px; width: auto; }
.lg-cup { height: 46px; width: auto; }
.lg-paddy { height: 58px; width: auto; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: .72; transition: filter .25s, opacity .25s; }
.lg-plain:hover .lg-paddy { filter: none; opacity: 1; }

/* Cities band */
.cities { padding: 0 var(--gutter) clamp(64px, 9vw, 120px); max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.cities-intro { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cities-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.cities-list::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 9px; height: 2px; background: var(--ink); }
.cities-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; }
.cities-list .dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--c); background: var(--paper); margin-bottom: 14px; }
.cities-list .dot-fill { background: var(--c); }
.cities-list strong { font: 700 26px/1.1 var(--display); letter-spacing: -.01em; }
.cities-list span { color: var(--muted); font-size: 15px; }
.cities-list code { font: 400 12px var(--mono); color: var(--c); margin-top: 4px; }
@media (max-width: 560px) { .cities-list strong { font-size: 20px; } .cities-list code { font-size: 10px; } .cities-list span { font-size: 13px; } }

/* Process */
.process { position: relative; background: var(--ink); color: var(--paper); transition: background-color .6s ease; }
.step { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding: clamp(72px, 10vw, 120px) var(--gutter); max-width: 1200px; margin: 0 auto; }
.step-text { display: flex; flex-direction: column; gap: 18px; max-width: 46ch; }
.step-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 600 18px var(--display); background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper) 25%, transparent); }
.step h2 { font-size: clamp(30px, 3.4vw, 40px); }
.step p { color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: 17px; }
.step-art { display: flex; justify-content: center; }
.step .deliverable { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); font-size: 16px; }
.deliverable span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 65%, transparent); }
@media (max-width: 860px) {
  .step { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .art-roadmap { gap: 8px; }
  .art-roadmap .col { min-width: 0; padding: 10px; }
  .art-roadmap i { font-size: 12px; padding: 8px; }
}

/* Process progress rail: the logo's route, one stop per step */
.rail { position: absolute; top: 0; bottom: 0; left: var(--gutter); width: 120px; pointer-events: none; z-index: 2; }
.rail-inner { position: sticky; top: calc(50vh - 90px); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.rail-inner::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--paper) 30%, transparent); }
.rail-inner li { position: relative; padding-left: 26px; font: 500 12px/18px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); transition: color .3s; }
.rail-inner li::before { content: ""; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--paper) 55%, transparent); background: var(--rail-bg, var(--ink)); transition: all .3s; }
.rail-inner li.done { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.rail-inner li.done::before { border-color: var(--paper); }
.rail-inner li.active { color: var(--paper); }
.rail-inner li.active::before { border-color: var(--paper); background: var(--paper); }
@media (max-width: 1519px) { .rail-inner li { font-size: 0; padding-left: 14px; } }
@media (max-width: 1259px) { .rail { display: none; } }

/* Step art: roadmap */
.art-roadmap { gap: 14px; }
.art-roadmap .col { flex: 1; max-width: 180px; background: color-mix(in srgb, var(--paper) 10%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.art-roadmap b { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.art-roadmap i { font-style: normal; font-size: 13px; line-height: 1.3; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.art-roadmap .col:nth-child(1) i { border-left: 4px solid var(--dublin); }
.art-roadmap .col:nth-child(2) i { border-left: 4px solid var(--sydney); }
.art-roadmap .col:nth-child(3) i { border-left: 4px solid var(--london); }

/* Step art: phones */
.art-phone { position: relative; height: 380px; }
.phone { width: 190px; height: 380px; background: var(--paper); border-radius: 30px; border: 8px solid #0F1519; padding: 26px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.phone-back { position: absolute; left: 50%; top: 30px; transform: translateX(10%) rotate(6deg); z-index: 1; opacity: .9; }
.phone .bar { position: absolute; top: 8px; left: 50%; width: 50px; height: 6px; border-radius: 6px; background: #0F1519; transform: translateX(-50%); }
.ph-title { height: 14px; width: 60%; border-radius: 4px; background: var(--ink); }
.ph-card { height: 110px; border-radius: 12px; background: linear-gradient(135deg, var(--dublin), var(--sydney)); }
.ph-row { display: flex; gap: 8px; }
.ph-row span { height: 10px; border-radius: 4px; background: var(--line); flex: 1; }
.ph-row span:first-child { flex: 2; background: var(--london-soft); }
.ph-btn { margin-top: auto; height: 36px; border-radius: 999px; background: var(--ink); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-grid span { height: 70px; border-radius: 10px; background: var(--line); }
.ph-grid span:nth-child(1) { background: var(--dublin-soft); }
.ph-grid span:nth-child(4) { background: var(--sydney-soft); }
@media (max-width: 860px) { .art-phone { transform: translateX(-20%); } }

/* Step art: code */
.win { width: min(460px, 100%); background: #0F1519; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.win-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1A2228; }
.win-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--london); }
.win-top i:nth-child(1) { background: var(--dublin-soft); } .win-top i:nth-child(2) { background: var(--sydney-soft); }
.win-top span { margin-left: 8px; font: 12px var(--mono); color: var(--london-soft); }
.win pre { margin: 0; padding: 20px; font: 14px/1.7 var(--mono); color: #DCE3E1; overflow-x: auto; }
.win .k { color: var(--sydney-soft); } .win .f { color: var(--dublin-soft); }

/* Step art: dashboard */
.dash { width: min(460px, 100%); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 20px; box-shadow: 0 24px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-head b { font: 600 15px var(--display); }
.pill { font: 500 12px var(--mono); background: color-mix(in srgb, var(--dublin) 14%, var(--paper)); color: var(--dublin); padding: 4px 10px; border-radius: 999px; }
.bars { height: 180px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 44px, var(--line) 44px 45px); }
.bars span { flex: 1; height: var(--h); background: var(--london-soft); border-radius: 5px 5px 0 0; }
.bars span:nth-last-child(-n+2) { background: var(--sydney); }

/* Big section headings */
.big { font-size: clamp(38px, 6vw, 76px); text-align: center; max-width: 16ch; margin: 0 auto; }

/* Work */
.work { padding: clamp(80px, 10vw, 120px) var(--gutter); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.cases { display: flex; flex-direction: column; gap: 28px; max-width: 1200px; width: 100%; margin: 0 auto; }
.case { position: sticky; top: 96px; min-height: clamp(420px, 50vw, 600px); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); color: var(--fg); box-shadow: 0 -10px 30px rgba(26,34,40,.14); scroll-margin-top: 96px; }
.case-media { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px) 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.shot img { display: block; width: 100%; height: auto; }
.shot-poster { width: min(330px, 78%); border-radius: 22px 22px 0 0; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: translateY(6%); }
.shot-phone { width: min(300px, 72%); border: 10px solid #0F1519; border-bottom: 0; border-radius: 36px 36px 0 0; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.4); background: #fff; }
.shot-phone img { aspect-ratio: 720 / 900; object-fit: cover; object-position: top; }
.shot-browser { width: 150%; max-width: none; flex: none; align-self: flex-end; margin-left: 42%; border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(13,14,16,.22); border: 1px solid rgba(13,14,16,.12); border-bottom: 0; }
.shot-browser .chrome { display: flex; gap: 6px; padding: 10px 12px; background: #F6F4EE; border-bottom: 1px solid rgba(13,14,16,.08); }
.shot-browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(13,14,16,.18); }
.shot-browser img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top left; }
.case-body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.case-logo { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-bottom: 6px; }
.case-logo .logo-cup { height: 64px; width: auto; }
.case-logo .logo-us { height: 40px; width: auto; }
.wm { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 18px; }
.wm-pacer { font-size: 22px; letter-spacing: .18em; }
.wm-dash { font-size: 12px; letter-spacing: .3em; font-weight: 600; opacity: .8; align-self: flex-end; margin-bottom: 2px; }
.wm-wy { letter-spacing: .22em; }
.tag { font-size: 13px; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); padding: 4px 12px; border-radius: 999px; }
.case h3 { font: 700 clamp(30px, 3.4vw, 42px)/1.1 var(--display); letter-spacing: -.01em; margin: 0; }
.case p { color: color-mix(in srgb, var(--fg) 80%, transparent); max-width: 42ch; }
.case-status { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.case-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.case-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.case .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-case { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn-case:hover { filter: brightness(1.08); }
.btn-case-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 50%, transparent); }
.btn-case-ghost:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
@media (max-width: 860px) {
  .case { grid-template-columns: minmax(0, 1fr); position: relative; top: 0; }
  .case-media { order: 2; max-height: 380px; }
  .shot-browser { width: 100%; margin-left: 0; }
}

/* Contact */
.contact { padding: clamp(80px, 10vw, 120px) var(--gutter); display: flex; flex-direction: column; gap: 48px; background: var(--white); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; width: 100%; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 8px; }
.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2228' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sydney); outline-offset: 0; border-color: transparent; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Free review offer */
.offer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 760px; margin: 0 auto; }
.offer-eyebrow { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sydney); background: color-mix(in srgb, var(--sydney) 10%, var(--white)); padding: 6px 12px; border-radius: 999px; }
.offer-copy { color: var(--muted); font-size: 18px; max-width: 46ch; }
.offer-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.offer-list li { font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: flex; align-items: center; gap: 8px; }
.offer-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--dublin); }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--muted); }
.footer .brand { color: var(--ink); --mark-bg: var(--white); }
.footer .legal a { color: var(--ink); text-decoration: none; }
.footer .legal a:hover { color: var(--sydney); }

/* Entrance motion (content is visible without JS; only animates when supported) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .process, .btn { transition: none; }
}
