/*
  VOICE: confident, clean, studio-grade — few words, lots of air.
  IDEA: a designer's desk at night — screens floating in deep blue.
  PICTURE: hero scene (phone + browser on a blue grid, orange glow); real project screenshots form the portfolio collage.
  COLOUR & TYPE: white ground, ALTO blue #1550e6, accent orange #ff7a1a; Montserrat (echoes the logo) + Inter.
  LAYOUT: sticky white bar, logo left, menu top right; three full-width bands: hero, collage, contact.
*/
:root {
  color-scheme: light;
  --blue: #1550e6;
  --blue-dk: #0a2a86;
  --navy: #061a52;
  --orange: #ff7a1a;
  --orange-dk: #e8650a;
  --ink: #0d1733;
  --muted: #5a6480;
  --line: #e3e8f4;
  --soft: #f4f7ff;
  --white: #fff;
  --radius: 18px;
  --head-h: 76px;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.6 Inter, system-ui, sans-serif; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: Montserrat, Inter, sans-serif; line-height: 1.08; margin: 0; text-wrap: balance; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(4vw, 18px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(6,26,82,.06); }
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 52px; width: auto; }
.nav { position: relative; display: flex; align-items: center; gap: 6px; }
.nav a { position: relative; z-index: 1; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; color: var(--ink); transition: color .3s; }
.nav a:hover { color: var(--blue); }
.nav a.active, .nav a.active:hover { color: #fff; }
/* Blue pill that slides to the section you're viewing */
.nav-pill { position: absolute; left: 0; top: 0; height: 0; width: 0; border-radius: 999px; background: var(--blue); box-shadow: 0 6px 16px rgba(21,80,230,.28); z-index: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), width .4s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--soft); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 700 16px/1 Montserrat, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(255,122,26,.35); }
.btn-orange:hover { background: var(--orange-dk); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Hero */
.hero { position: relative; margin-top: var(--head-h); min-height: max(620px, calc(100vw * 656 / 1584)); display: grid; place-items: center; padding: 48px 0 90px; overflow: hidden; color: #fff; isolation: isolate; background: #0a2a86; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 60% at 50% 50%, rgba(4,17,58,.35), transparent 70%); }
.hero-content { text-align: center; max-width: 900px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { display: block; color: #fff; }
.hero h1 span::after { content: ""; display: block; width: 84px; height: 6px; border-radius: 3px; background: var(--orange); margin: 22px auto 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.86); max-width: 620px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 16px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.work, .contact { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2, .contact h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.015em; }
.section-head p { color: var(--muted); max-width: 520px; margin: 12px 0 0; font-size: 17px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 15px Inter, sans-serif; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Collage */
.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(6,26,82,.08); transition: transform .35s, box-shadow .35s, opacity .7s; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.collage .tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(6,26,82,.18); }
.collage .tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.96); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; transform: translateY(8px); opacity: 0; transition: all .3s; box-shadow: 0 8px 20px rgba(6,26,82,.14); }
.tile:hover .cap, .tile:focus .cap, .tile:focus-within .cap { transform: none; opacity: 1; }
.cap b { font: 700 15px Montserrat, sans-serif; color: var(--ink); white-space: nowrap; }
.cap span { font-size: 13px; font-weight: 600; color: var(--orange-dk); text-align: right; }
.tile.hide { display: none; }
.cta-tile { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 28px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dk)); }
.cta-tile b { font: 800 24px/1.1 Montserrat, sans-serif; }
.cta-tile span { color: rgba(255,255,255,.85); font-size: 15px; }
.cta-tile i { font-style: normal; margin-top: 8px; background: var(--orange); color: #fff; font: 700 15px Montserrat, sans-serif; padding: 12px 20px; border-radius: 999px; }
.cta-tile:hover i { background: var(--orange-dk); }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy), var(--blue-dk) 55%, var(--blue)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-intro p { color: rgba(255,255,255,.84); font-size: 18px; margin: 16px 0 30px; max-width: 460px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 14px 1fr; column-gap: 16px; }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); margin-top: 5px; grid-row: span 2; box-shadow: 0 0 0 5px rgba(255,122,26,.22); }
.steps b { font-family: Montserrat, sans-serif; font-size: 17px; }
.steps span { color: rgba(255,255,255,.75); font-size: 15px; }
.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px rgba(2,10,38,.35); display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 14px; }
.field em { color: var(--muted); font-style: normal; font-weight: 500; }
input, select, textarea { width: 100%; font: 16px Inter, sans-serif; color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; min-height: 50px; transition: border-color .2s, background .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21,80,230,.14); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; padding-right: 46px; font-weight: 600; cursor: pointer; }
.err { color: #c8341a; font-size: 13px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #e0573a; background: #fff6f3; }
.field.invalid .err { display: block; }
.form-status { display: none; border-radius: 12px; padding: 14px 16px; font-size: 15px; background: #eaf8ef; color: #17643a; border: 1px solid #bfe6cc; }
.form-status.show { display: block; }
.form-status.warn { background: #fff4ea; color: #8a4310; border-color: #ffd3b0; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 30px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 40px; width: auto; }
.site-footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 12px; color: var(--muted); }
.site-footer nav a:hover { color: var(--blue); }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: rgba(4,17,58,.5); }
}
@media (max-width: 760px) {
  :root { --head-h: 68px; }
  .brand img { height: 44px; }
  .menu-btn { display: flex; }
  .nav { position: absolute; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px max(4vw, 18px) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(6,26,82,.1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 16px; transition: color .2s, background .2s; }
  .nav a.active { background: var(--blue); }
  .nav-pill { display: none; }
  .tile .cap { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .collage { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 230px; }
  .tile.big { grid-column: auto; grid-row: auto; }
  .tile.tall { grid-row: span 2; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .hero { min-height: calc(100svh - var(--head-h)); }
  .hero::before { background: rgba(4,17,58,.62); }
  .foot-row { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
