:root {
  --ink: #0E1116;
  --ink-2: #14181F;
  --line-dark: #262A32;
  --paper: #F7F7F4;
  --card: #FFFFFF;
  --line: #E4E3DD;
  --line-2: #DDDCD5;
  --chip: #F1F0EA;
  --text: #0E1116;
  --text-2: #2A2E36;
  --muted: #565B66;
  --on-dark: #F2F2EE;
  --on-dark-2: #C9CBD1;
  --on-dark-3: #A9ACB4;
  --accent: #FF6B3D;
  --accent-on-dark: #FF8A63;
  --accent-on-light: #C2410C;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent-on-light); }
a:hover { color: #9A3412; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.dark { background: var(--ink); color: var(--on-dark); }

/* Header */
.header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.brand:hover { color: var(--on-dark); }
.brand-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 17px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { padding: 12px 14px; color: var(--on-dark-2); text-decoration: none; }
.nav a:hover { color: #FFFFFF; }
.nav .btn-outline { margin-left: 6px; padding: 11px 18px; border: 1.5px solid var(--accent); color: var(--accent-on-dark); border-radius: 999px; font-weight: 600; }
.nav .btn-outline:hover { background: var(--accent); color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid #343842; border-radius: 10px; background: transparent; color: var(--on-dark); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); }
  .nav .btn-outline { margin: 12px 0 0; text-align: center; border-bottom: 1.5px solid var(--accent); }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 64px; padding-bottom: 88px; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.eyebrow { margin: 0 0 22px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-dark); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 8vw, 104px); line-height: .95; letter-spacing: -.035em; }
.hero-intro { margin: 30px 0 0; font-size: 20px; line-height: 1.6; color: var(--on-dark-2); max-width: 640px; }
.industries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.industries li { padding: 8px 14px; border: 1px solid #343842; border-radius: 999px; font-size: 14px; color: #E4E5E9; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-primary, .btn-ghost { display: inline-block; padding: 16px 28px; font-weight: 600; border-radius: 999px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-on-dark); color: var(--ink); }
.btn-ghost { border: 1.5px solid #4A4F5A; color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); color: #FFFFFF; }
.stats { position: relative; z-index: 1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; }
.stats div { background: var(--ink-2); padding: 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dd { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--accent-on-dark); }
.stats dt { font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 420px) { .stats div { padding: 18px 14px; } .stats dd { font-size: 34px; } .stats dt { font-size: 13px; } }

.dark.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap > .header, .hero-wrap > .hero { position: relative; z-index: 1; }
.hero-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.portrait { position: absolute; z-index: 0; top: 40px; right: max(-60px, calc((100vw - 1200px) / 2 - 140px)); width: min(760px, 62vw); height: auto;
  opacity: .14; filter: grayscale(.2); pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 55% 45%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 60% at 55% 45%, #000 35%, transparent 100%); }
.hero-side .stats { width: 100%; }
@media (max-width: 760px) { .hero { gap: 32px; } .portrait { top: 70px; right: -90px; width: 460px; opacity: .1; } }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 96px; padding-bottom: 40px; }
.label { flex: 1 1 260px; font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-on-light); }
.about p { flex: 999 1 560px; margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -.01em; }

/* Sections */
.section { padding-top: 88px; padding-bottom: 24px; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; line-height: 1.05; }
.section h2.h2-sm { font-size: clamp(32px, 4vw, 48px); }
.section-head { margin-bottom: 32px; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.section-head.row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }

/* Experience cases */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.case-img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; }
.case-cover { height: 180px; border-radius: 10px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.case-cover-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.case-cover-sector { font-size: 13px; font-weight: 600; opacity: .85; }
.cover-green { background: #E3ECE4; color: #23452D; }
.cover-violet { background: #EDE7F6; color: #3F2A6B; }
.case-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--accent-on-light); }
.pill { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--chip); color: #3B3F48; text-align: right; }
.case h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; line-height: 1.15; }
.case p { margin: 0; font-size: 15px; line-height: 1.6; color: #3B3F48; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 500; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); }

/* Live sites */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 500 15px var(--body); cursor: pointer; border: 1.5px solid #D3D2CB; background: #FFFFFF; color: var(--text-2); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.site[hidden] { display: none; }
.site a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.site a:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(14, 17, 22, .35); }
@media (prefers-reduced-motion: reduce) { .site a { transition: none; } .site a:hover { transform: none; } }
.site-frame { background: #ECEBE5; padding: 12px 12px 0; }
.site-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #FFFFFF; border-radius: 9px 9px 0 0; }
.site-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D3D2CB; flex-shrink: 0; }
.site-bar span { margin-left: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-frame img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: top left; background: #FFFFFF; }
.site-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.site-label { font-size: 12px; font-weight: 600; color: var(--accent-on-light); text-transform: uppercase; letter-spacing: .05em; }
.site-body h3 { font-size: 17px; font-weight: 600; }
.site-cta { font-size: 14px; font-weight: 500; color: var(--muted); }

/* Work history */
.jobs { margin-top: 36px; border-top: 1px solid var(--line-2); }
.job { display: flex; flex-wrap: wrap; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line-2); }
.job-head { flex: 1 1 260px; }
.job-when { font-size: 14px; font-weight: 600; color: var(--accent-on-light); }
.job-head h3 { margin: 8px 0 4px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.job-role { font-size: 15px; color: var(--muted); }
.job-points { flex: 999 1 520px; min-width: 0; list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* Skills */
.skills { padding-bottom: 96px; }
.skill-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.skill-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.skill-card h3 { margin-bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 7px 12px; background: var(--chip); border-radius: 8px; color: var(--text-2); }

/* Contact */
.contact { padding-top: 96px; padding-bottom: 72px; }
.contact h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; max-width: 900px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 48px; }
.contact-grid a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid #2E323B; border-radius: 16px; color: var(--on-dark); text-decoration: none; min-width: 0; }
.contact-grid a:hover { border-color: var(--accent); color: #FFFFFF; }
.contact-grid span { font-size: 13px; color: var(--on-dark-3); }
.contact-grid strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.footer-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-3); }
.footer-bar a { color: var(--on-dark-2); }
.footer-bar a:hover { color: #FFFFFF; }
