/* H Dev Studio website. Brand system: Aperture Volt (brand book v1.0, 8 Nov 2026). */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Palette */
  --void: #0A0A0A;
  --shadow: #1A1A1A;
  --edge: #2A2A2A;
  --chalk: #F5F5F5;
  --ash: #A3A3A3;
  --volt: #C6F432;
  --dot-sky: #7DD3FC;
  --dot-pink: #FF6FB5;
  --dot-orange: #FF9F43;
  --dot-violet: #B794F6;

  /* Semantic (dark first) */
  --bg: var(--void);
  --surface: var(--shadow);
  --line: var(--edge);
  --text: var(--chalk);
  --text-muted: var(--ash);
  --action: var(--volt);
  --on-action: var(--void);
  --focus: var(--volt);

  --font: "Manrope", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px;
  --gutter: 24px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--chalk); color: var(--void); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; padding: 12px 20px; background: var(--chalk); color: var(--void); border-radius: 22px; font-weight: 700; text-decoration: none; z-index: 10; }
.skip:focus { top: 12px; }

/* Type */
.label { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.lead { font-size: 1.1875rem; line-height: 1.875rem; color: var(--text-muted); max-width: 32rem; }
.h-xl { font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.h-1 { font-size: 2.125rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.03em; }
.h-2 { font-size: 1.5rem; line-height: 1.875rem; font-weight: 700; letter-spacing: -0.02em; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand svg { width: 20px; height: 24px; }
.brand span { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.035em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 0.875rem; font-weight: 500; }
.nav a { color: var(--text-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color 150ms ease-out; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .pill { color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 0 20px; transition: border-color 150ms ease-out; }
.nav .pill:hover { border-color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: var(--radius-xl); font: 700 1rem/1 var(--font); text-decoration: none; transition: opacity 150ms ease-out, background-color 150ms ease-out; }
.btn-primary { background: var(--chalk); color: var(--void); }
.btn-primary:hover { opacity: 0.88; }
.btn-text { padding: 0 12px; color: var(--text); }
.btn-text svg { width: 20px; height: 20px; transition: transform 150ms ease-out; }
.btn-text:hover svg { transform: translateX(3px); }

/* Hero */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-top: 72px; }
.hero-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 32px; padding-bottom: 120px; min-width: 0; }
.hero h1 { font-size: clamp(2.75rem, 5.6vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.045em; max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: flex-end; margin-bottom: -96px; min-width: 0; }
.hero-art svg { width: 100%; max-width: 500px; height: auto; }

/* Signature motion: the dot arrives (280ms, ease-out). */
.dot-in { transform-box: fill-box; transform-origin: center; animation: dot-in 280ms var(--ease-out) 300ms both; }
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding-block: 140px 120px; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.section-head h2 { flex: 1 1 480px; max-width: 16ch; }
.section-head p { flex: 0 1 380px; font-size: 1rem; line-height: 1.625rem; color: var(--text-muted); }

/* Mission */
.mission .wrap { display: flex; flex-direction: column; gap: 32px; }
.mission-title { font-size: clamp(2.25rem, 5.5vw, 5rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; max-width: 18ch; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.pillars div { display: flex; flex-direction: column; gap: 12px; }
.pillars p { line-height: 1.625rem; color: var(--text-muted); max-width: 26rem; }

/* Studio */
.studio { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; padding-block: 120px; }
.studio h2 { flex: 1 1 520px; max-width: 16ch; }
.studio-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; max-width: 30rem; }
.studio-copy p { font-size: 1.0625rem; line-height: 1.75rem; color: var(--text-muted); }

/* Contact */
.contact .wrap { padding-block: 120px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 80px 32px; border: 1px solid var(--line); border-radius: var(--radius-xl); }
.contact-card p { font-size: 1.125rem; line-height: 1.75rem; color: var(--text-muted); max-width: 30rem; }
.btn-action { background: var(--action); color: var(--on-action); padding: 0 32px; }
.btn-action:hover { opacity: 0.88; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding-block: 40px 56px; }
.footer-id { display: flex; flex-direction: column; gap: 12px; max-width: 34rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand svg { width: 16px; height: 20px; }
.footer-brand span { font-size: 1rem; font-weight: 700; letter-spacing: -0.035em; }
.site-footer p { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 0.875rem; font-weight: 500; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--text); }

/* Long-form pages (privacy, terms, support) */
.page-head { padding-block: 96px 56px; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.prose { max-width: 44rem; padding-block: 64px 120px; }
.prose h2 { font-size: 1.5rem; line-height: 1.875rem; font-weight: 700; letter-spacing: -0.02em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; margin: 32px 0 8px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.75rem; color: var(--text-muted); }
.prose p + p { margin-top: 16px; }
.prose ul { padding-left: 1.25rem; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--text); text-underline-offset: 4px; }
.prose .note { margin-top: 48px; padding: 24px; background: var(--surface); border-radius: var(--radius-lg); font-size: 0.875rem; line-height: 1.375rem; }

.support-grid { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 64px 0; }
.support-card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.support-card svg { width: 24px; height: 24px; }
.support-card h2 { margin-top: 8px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; }
.support-card p { color: var(--text-muted); }
.support-card a { color: var(--text); font-weight: 700; text-underline-offset: 4px; }

.faq { max-width: 44rem; padding-block: 96px 120px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; min-height: 44px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 200ms ease-out; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; line-height: 1.625rem; color: var(--text-muted); }

/* 404 */
.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found .wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-block: 96px; }

@media (max-width: 640px) {
  .section { padding-block: 96px 80px; }
  .section-head { margin-bottom: 40px; }
  .hero .wrap { padding-top: 40px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-art { margin-bottom: -64px; justify-content: center; }
  .hero-art svg { max-width: 260px; }
  .nav-wide { display: none !important; }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 16px; }
  .brand span { white-space: nowrap; font-size: 1.125rem; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .studio .wrap, .contact .wrap { padding-block: 80px; }
  .contact-card { padding: 56px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
  .dot-in { animation: fade-in 150ms ease-out both; }
}
.nowrap { white-space: nowrap; }
.pillars p, .hero h1, .studio h2, .contact-card h2 { text-wrap: balance; }

/* Brand film */
.mission { padding-bottom: 96px; }
.film .wrap { padding-bottom: 120px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--void); border: 1px solid var(--line); border-radius: var(--radius-xl); }

/* Footer: centre the 44px link targets on the 24px logo row */
.site-footer nav { margin-top: -10px; }

@media (max-width: 640px) {
  .mission { padding-bottom: 64px; }
  .film .wrap { padding-bottom: 80px; }
  .film video { border-radius: var(--radius-lg); }
}

/* Support cards: email links share one baseline */
.support-card a { margin-top: auto; padding-top: 4px; }


/* Very small phones: tighter header spacing so the menu stays inside the margin */
@media (max-width: 374px) { .site-header .wrap { gap: 12px; } .nav { gap: 12px; } .brand { gap: 10px; } }
