/* AX1 Limited — site styles
   Palette: white / near-black / single green accent. Type: Montserrat (titles) + Roboto (body). */

:root {
  --ink: #111111;
  --ink-2: #313130;
  --muted: #666666;
  --line: #e6e6e6;
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --accent: #1fa35c;
  --accent-2: #2eb86c;
  --dot: #1fa35c;
  --title: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --label-col: minmax(160px, 1fr);
  --content-col: 3fr;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dot { color: var(--dot); }
.nw { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .nav-cta {
  border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; }

.menu-btn {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.menu-btn span { display: block; width: 36px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s var(--ease); }

/* Full-screen mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 0 var(--gutter) 40px;
  transform: translateY(-100%); transition: transform .5s var(--ease);
  visibility: hidden;
}
.menu.open { transform: none; visibility: visible; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.menu-top img { height: 30px; width: auto; }
.menu-close { background: none; border: 0; color: #fff; font: inherit; font-size: 15px; cursor: pointer; padding: 10px; margin-right: -10px; }
.menu nav { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-size: clamp(40px, 11vw, 64px); font-weight: 700; letter-spacing: -0.03em; text-decoration: none; line-height: 1.15; }
.menu nav a[aria-current="page"]::after { content: "."; color: var(--dot); }
.menu-foot { margin-top: 40px; font-size: 15px; color: #bbb; }
.menu-foot a { color: #fff; }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(44px, 7.4vw, 112px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.0;
}
.h-xl { font-size: clamp(36px, 5.2vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.h-lg { font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.h-md { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.h-sm { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 160px) 0; }
.section.tight { padding: clamp(48px, 6vw, 96px) 0; }
.section.grey { background: var(--paper-2); }
.section.ink { background: var(--ink); color: #fff; }
.section.ink .lead, .section.ink .muted { color: #bdbdbd; }

.page-title { padding: clamp(56px, 9vw, 150px) 0 clamp(48px, 7vw, 110px); }
.page-title .display { max-width: 14ch; }
.page-title .lead { margin-top: 28px; max-width: 46ch; }

/* Label column + content column (the benchmark's signature layout) */
.split {
  display: grid; grid-template-columns: var(--label-col) var(--content-col);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-2);
  position: sticky; top: 110px;
}
.label::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); flex: none;
}
.section.ink .label { color: #fff; }
.content > * + * { margin-top: 28px; }
.content .h-lg { max-width: 24ch; }
.content .lead, .content p { max-width: 62ch; }

/* ---------- Hero ---------- */
.hero-title { padding: clamp(48px, 7vw, 120px) 0 clamp(40px, 6vw, 96px); }
.hero-img {
  position: relative; min-height: clamp(520px, 92vh, 980px); color: #fff;
  display: flex; align-items: flex-end; overflow: hidden; background: #0e1522;
}
.hero-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 2.4s var(--ease);
}
.hero-img.in img { transform: scale(1); }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.72) 100%);
}
.hero-img .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 6vw, 96px); }
.hero-img .h-xl { max-width: 23ch; font-size: clamp(30px, 3.9vw, 60px); font-weight: 700; line-height: 1.1; }

.band { position: relative; height: clamp(320px, 62vw, 820px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.credit { font-size: 12px; color: var(--muted); padding: 10px var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.hero-img .credit-on { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: 12px; color: rgba(255,255,255,.75); }

/* ---------- Cards: four priorities ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 72px); }
.card {
  background: var(--accent); padding: 28px 26px 32px; min-height: 300px;
  display: flex; flex-direction: column; border-radius: 2px;
  transition: transform .4s var(--ease), background .3s;
}
.card:hover { transform: translateY(-4px); background: var(--accent-2); }
.card .num { font-size: 15px; font-weight: 700; }
.card h3 { font-size: clamp(22px, 1.9vw, 28px); margin-top: auto; padding-top: 48px; letter-spacing: -0.025em; }
.card p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.45; color: #1f1f1f; }

/* ---------- Links / buttons ---------- */
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border-bottom: 2px solid var(--ink); padding-bottom: 4px;
}
.arrow-link::after { content: "→"; transition: transform .3s var(--ease); }
.arrow-link:hover::after { transform: translateX(6px); }
.section.ink .arrow-link { border-color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0;
  font: inherit; font-weight: 600; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: var(--accent); color: var(--ink); }
.btn::after { content: "→"; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.stat .big { font-size: clamp(64px, 9vw, 140px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.stat .big sup { font-size: .45em; vertical-align: top; position: relative; top: .15em; margin-left: 2px; }
.stat p { margin-top: 18px; font-weight: 600; max-width: 26ch; }

/* ---------- Lists ---------- */
.rule-list { list-style: none; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; border-top: 1px solid var(--ink); }
.rule-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule-list li .n { font-weight: 700; font-size: 19px; line-height: 1.35; }
.rule-list li strong { display: block; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.rule-list li span.d { color: var(--ink-2); }
.section.ink .rule-list { border-color: #fff; }
.section.ink .rule-list li { border-color: #333; }
.section.ink .rule-list li span.d { color: #cfcfcf; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; list-style: none; }
.tags li { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.section.ink .tags li { border-color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }

/* ---------- Project feature ---------- */
.project { padding: clamp(56px, 7vw, 112px) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
.project-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; flex-wrap: wrap; margin-bottom: 28px; }
.project-meta { font-size: 14px; color: var(--muted); font-weight: 500; }
.project-img { overflow: hidden; background: var(--paper-2); }
.project-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-img:hover img { transform: scale(1.03); }
.project-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 36px; }
.project-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.project-body h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.project-body p { font-size: 16px; color: var(--ink-2); margin: 0; }

.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teaser { text-decoration: none; display: block; }
.teaser .img { overflow: hidden; background: var(--paper-2); }
.teaser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.teaser:hover img { transform: scale(1.04); }
.teaser .meta { font-size: 13px; color: var(--muted); margin-top: 16px; font-weight: 500; }
.teaser h3 { font-size: 21px; margin-top: 6px; letter-spacing: -0.02em; }
.teaser p { font-size: 15px; color: var(--ink-2); margin-top: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--ink); }
.table td:first-child { font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Portrait placeholder / figure */
.figure img { width: 100%; object-fit: cover; }
.figure figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.contact-line { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.025em; text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact-line:hover { background: var(--accent); }
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--accent); background: #f3fbf6; }
.form .note { font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.cta a.big {
  display: inline;
  font-size: clamp(40px, 7vw, 104px); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  text-decoration: none;
}
.cta a.big::after { content: "\00a0→"; display: inline-block; transition: transform .4s var(--ease); font-weight: 400; }
.cta a.big:hover::after { transform: translateX(14px); }
.cta a.big:hover .u { background: linear-gradient(transparent 70%, var(--accent) 70%); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 32px; border-top: 1px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo img { width: clamp(140px, 16vw, 220px); height: auto; }
.footer-tag { margin-top: 18px; font-weight: 700; }
.ack { font-size: 14px; color: var(--ink-2); max-width: 44ch; margin-top: 28px; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-meta { font-size: 14px; color: var(--ink-2); }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-img img, .menu { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .label { position: static; }
  .stats { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .site-header .wrap, .menu-top { height: 68px; }
  .brand img, .menu-top img { height: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rule-list li { grid-template-columns: 40px 1fr; }
}

/* Portraits (source is 400px — displayed no larger than ~300px) */
.portrait { margin: 28px 0 0; max-width: 300px; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person { display: flex; gap: 20px; align-items: center; }
.person img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex: none; }
@media (max-width: 860px) { .portrait { max-width: 220px; } }

/* Brand typefaces: Montserrat for titles, Roboto for body */
h1, h2, h3, h4, h5, h6, .display, .h-xl, .h-lg, .h-md, .h-sm, .label, .stat .big, .cta a.big,
.menu nav a, .contact-line, .footer-tag, .card .num, .rule-list li strong, .rule-list li .n,
.btn, .arrow-link, .nav a, .project-meta, .teaser .meta, .table th { font-family: var(--title); }
.display { letter-spacing: -0.03em; font-size: clamp(38px, 7vw, 108px); overflow-wrap: break-word; }
.h-xl, .cta a.big, .stat .big { letter-spacing: -0.025em; }
.h-lg, .h-md, .h-sm, h3, .card h3, .menu nav a { letter-spacing: -0.015em; }

/* ---------- Process circles (Approach › How we work) ----------
   Desktop: a diagonal run from top-left (1) to bottom-right (4).
   Tablet: 2 x 2 grid, still reading 1 top-left to 4 bottom-right.
   Phone: a single column, 1 at the top to 4 at the bottom. */
.circles {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: start;
}
.circle {
  aspect-ratio: 1; width: 100%; max-width: 360px; justify-self: center;
  border-radius: 50%; background: var(--accent); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 13%;
  transition: background .3s, transform .4s var(--ease);
}
.circle:hover { background: var(--accent-2); }
.circle .num { font-family: var(--title); font-weight: 800; font-size: clamp(40px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.circle h3 { font-size: clamp(20px, 1.6vw, 24px); margin-top: 10px; letter-spacing: -0.015em; }
.circle p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: #10251a; }
.circle:nth-child(2) { margin-top: 90px; }
.circle:nth-child(3) { margin-top: 180px; }
.circle:nth-child(4) { margin-top: 270px; }

@media (max-width: 1320px) {
  .circles { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin-left: auto; margin-right: auto; }
  .circle:nth-child(n) { margin-top: 0; }
  .circle p { font-size: 15px; }
}
@media (max-width: 700px) {
  .circles { grid-template-columns: 1fr; gap: 16px; }
  .circle { max-width: 330px; }
  .circle p { font-size: 14.5px; }
}
@media (max-width: 360px) {
  .circle { padding: 11%; }
  .circle p { font-size: 13.5px; }
}

/* Project video (plays like a GIF: muted, looping, inline) */
.project-img video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #0b0f1a; }
.hero-img .credit-on { max-width: min(560px, calc(100% - 2 * var(--gutter))); text-align: right; line-height: 1.4; }

/* Project attribution in headings: "Project — Practice for Client" */
.project-by { font-weight: 500; color: var(--muted); }
.project-head h2 { max-width: 30ch; }
.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.project-pair .project-img img { aspect-ratio: 16 / 9; }
.project-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.teaser .by { font-family: var(--title); font-weight: 600; font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .project-pair { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }
.table { min-width: 620px; }

/* Image captions: project — practice for client above; Peter's role below */
.cap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); font-size: 13px; line-height: 1.4; }
.cap-top { font-family: var(--title); font-weight: 600; color: var(--ink); padding-bottom: 10px; }
.cap-bottom { color: var(--muted); padding-top: 10px; }
.project .cap-bottom { padding-right: 0; margin: 0; }
.hero-img .cap-on { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.88); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.hero-img .cap-on-top { top: 18px; font-family: var(--title); font-weight: 600; }
.hero-img .cap-on-bottom { bottom: 14px; text-align: right; }
.hero-img::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); pointer-events: none; }

/* Single caption line: bold project/practice/client, regular role */
.cap-top { font-family: inherit; font-weight: 400; color: var(--ink-2); }
.cap-top strong, .cap-on strong { font-family: var(--title); font-weight: 700; color: var(--ink); }
.hero-img .cap-on-top { font-family: inherit; font-weight: 400; }
.hero-img .cap-on strong { color: #fff; }
.project .cap-top { margin: 0; }

/* ---------- Images shown in full (no cropping) ---------- */
.hero-img { display: block; min-height: 0 !important; }
.hero-img img { position: relative; inset: auto; width: 100%; height: auto; object-fit: contain; transform: none; }
.hero-img .wrap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; }
.band { height: auto !important; overflow: visible; }
.band img { width: 100%; height: auto; object-fit: contain; }
.project-img img, .project-pair .project-img img { aspect-ratio: auto; height: auto; object-fit: contain; }
.project-img:hover img, .teaser:hover img { transform: none; }
.teaser .img { background: #fff; }
.teaser img { aspect-ratio: 4 / 3; object-fit: contain; }
@media (max-width: 700px) {
  /* On phones the statement sits below the photo so the whole image stays visible */
  .hero-img { background: var(--ink); }
  .hero-img::after { display: none; }
  .hero-img .wrap { position: static; padding-top: 28px; padding-bottom: 36px; }
}
