@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #1b1e1a;
  --ink-muted: #5b6058;
  --ink-subtle: #82877e;
  --paper: #f4f1ea;
  --paper-alt: #eae6dc;
  --surface: #ffffff;
  --line: #d5d2c8;
  --accent: #ff5e3a;
  --accent-soft: #ff5e3a18;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 48px rgba(27, 30, 26, 0.08);
  --shadow-device: 0 24px 60px rgba(18, 24, 32, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
}

.skip:focus {
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(244, 241, 234, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 26px;
}

.brand-dot {
  color: var(--accent);
}

.brand-mark {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-12deg);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(0deg);
}

.brand-mark i {
  background: var(--ink);
  border-radius: 50%;
}

.brand-mark i:last-child {
  background: var(--accent);
}

.header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.header nav a:hover {
  color: var(--accent);
}

.header nav span {
  color: var(--ink-subtle);
  margin-left: 4px;
}

/* Typography helpers */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  padding: 42px 5% 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 64px 0 56px;
}

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(54px, 7.6vw, 118px);
  letter-spacing: -0.055em;
  line-height: 0.96;
  font-weight: 700;
  margin: 0;
}

.hero h1 .serif-italic {
  font-size: 1.06em;
  color: var(--ink);
}

.hero-byline {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  margin-top: 22px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 6px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
  transform: translateY(-2px);
}

/* Studio Metrics Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat-item {
  padding: 24px 20px 24px 0;
  border-right: 1px solid var(--line);
}

.stat-item:not(:first-child) {
  padding-left: 24px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat-value span {
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Work Section */
.work {
  padding: 96px 5% 110px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
}

.section-heading h2,
.archive-heading h2,
.press-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 14px 0 0;
}

.section-heading h2 span,
.archive-heading h2 span,
.press-heading h2 span,
footer h2 span {
  color: var(--accent);
}

.section-heading p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 320px;
  margin: 0;
  text-align: right;
}

/* Featured Project Cards */
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.project-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.project-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 36px;
  min-height: 440px;
  overflow: hidden;
}

.visual-label {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  color: var(--ink);
}

/* Framed screenshots: never crop text */
.device-frame {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 440px;
}

.device-frame img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: var(--shadow-device);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project:hover .device-frame img {
  transform: translateY(-6px) scale(1.015);
}

/* Project theme stages */
.gusty .project-visual {
  background: linear-gradient(145deg, #c6d6e6 0%, #9ab1c9 100%);
}

.weather-lines {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.weather-lines::before,
.weather-lines::after {
  content: '';
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.weather-lines::after {
  inset: 28%;
}

.kins .project-visual {
  background: linear-gradient(145deg, #f3dfd3 0%, #e5c4b2 100%);
}

.kins-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 250, 245, 0.55);
  pointer-events: none;
}

.spy .project-visual {
  background: linear-gradient(145deg, #e5ba70 0%, #cf9543 100%);
}

.spy-stripe {
  position: absolute;
  inset: -30% 38%;
  transform: rotate(32deg);
  background: #c7653c;
  opacity: 0.72;
  pointer-events: none;
}

.soccer .project-visual {
  background: #1b382b;
  padding: 0;
}

.soccer .project-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.soccer:hover .project-visual img {
  transform: scale(1.03);
}

.soccer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 36, 27, 0.65) 0%, transparent 50%);
  pointer-events: none;
}

/* Project Info */
.project-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-muted);
}

.platform-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.project-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}

.project-title h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
}

.project-info p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 14px 0 0;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-pills span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  padding: 6px 12px;
  border-radius: 8px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
}

.text-link-muted {
  color: var(--ink-muted);
}

.round-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  flex: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.round-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  transform: rotate(45deg);
}

/* 2-column & 3-column grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-grid .project {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.project-grid .project-visual {
  min-height: 360px;
  height: 360px;
  padding: 28px;
}

.project-grid .soccer .project-visual {
  padding: 0;
}

.project-grid .device-frame {
  max-height: 304px;
}

.project-grid .device-frame img {
  max-height: 300px;
}

.project-grid .project-info {
  flex: 1;
  padding: 28px 30px;
}

/* Light Flow Spotlight & Press Quotes */
.press-spotlight {
  margin-top: 84px;
  background: #1f231e;
  color: #f4f1ea;
  border-radius: var(--radius-lg);
  padding: 56px 5%;
}

.press-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
}

.press-header .eyebrow {
  color: #b4b9af;
}

.press-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 14px 0 0;
}

.press-header h2 span {
  color: var(--accent);
}

.press-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.press-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #c8cdc3;
}

.press-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.press-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 94, 58, 0.16);
  color: #ff8e74;
  border: 1px solid rgba(255, 94, 58, 0.32);
}

.press-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.quote-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #f4f1ea;
}

.quote-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a4aba0;
}

.press-footer {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.press-footer .text-link {
  color: #f4f1ea;
}

.press-footer .text-link:hover {
  color: var(--accent);
}

/* Archive / Utilities */
.archive-heading {
  margin: 84px 0 32px;
}

.archive-heading h2 {
  font-size: clamp(34px, 4.2vw, 56px);
}

.archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.archive-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 22px;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.archive-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.archive-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.archive h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 6px 0 6px;
}

.archive p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Footer */
footer {
  background: #1b1e1a;
  color: #f4f1ea;
  padding: 72px 5% 32px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 64px;
}

.footer-main .eyebrow {
  color: #a3aaa0;
}

footer h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 0;
}

.footer-contact {
  border-bottom: 1px solid #6e756c;
  padding-bottom: 12px;
  min-width: 240px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-contact:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #3c423a;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a3aaa0;
}

.footer-bottom .brand {
  color: #f4f1ea;
  letter-spacing: -0.06em;
}

.footer-bottom .brand-mark i {
  background: #f4f1ea;
}

.footer-bottom .brand-mark i:last-child {
  background: var(--accent);
}

/* Reveal animation */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Product Detail Pages */
.detail {
  padding: 40px 5% 100px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.detail-back:hover {
  color: var(--ink);
}

.detail-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  padding: 56px 0 48px;
}

.detail-intro h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 16px 0 0;
}

.detail-intro h1 span {
  color: var(--accent);
}

.detail-copy {
  max-width: 480px;
}

.detail-copy p {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  margin: 0 0 26px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.detail-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.detail-button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.detail-button-secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

.detail-visual {
  border-radius: var(--radius-lg);
  min-height: 440px;
  padding: 48px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.detail-visual img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.detail-gusty {
  background: linear-gradient(145deg, #c6d6e6 0%, #9ab1c9 100%);
}

.detail-kins {
  background: linear-gradient(145deg, #f3dfd3 0%, #e5c4b2 100%);
}

.detail-spy {
  background: linear-gradient(145deg, #e5ba70 0%, #cf9543 100%);
}

.detail-soccer {
  background: #1b382b;
  padding: 0;
  min-height: auto;
}

.detail-soccer img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
}

.detail-lightflow {
  background: #252830;
}

.detail-volumesync {
  background: #cdd9b5;
}

.detail-lightflow img,
.detail-volumesync img {
  width: min(210px, 45%);
  border-radius: 22%;
  box-shadow: var(--shadow-device);
}

.detail-gusty img,
.detail-kins img,
.detail-spy img {
  border-radius: 26px;
  box-shadow: var(--shadow-device);
}

/* Product Features & Gallery */
.product-details {
  padding-top: 96px;
}

.product-details-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}

.product-details-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin: 0 0 44px;
}

.feature-list {
  margin-left: 33.333%;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 44px minmax(160px, 1fr) 1.4fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature-number {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-subtle);
  padding-top: 4px;
}

.feature-row h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0;
}

.feature-row p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.product-gallery figure {
  margin: 0;
  min-width: 0;
  min-height: 480px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-alt);
  padding: 36px;
}

.product-gallery img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(27, 30, 26, 0.16);
}

.gallery-gusty figure {
  background: #d5e0eb;
}

.gallery-kins figure {
  background: #eedbd0;
}

.gallery-spy-racer figure {
  background: #e5c991;
}

.gallery-lightflow figure {
  background: #e2e1db;
}

.gallery-volumesync figure {
  background: #d9e4d0;
}

.gallery-lightflow,
.gallery-volumesync {
  grid-template-columns: 1fr;
}

.gallery-lightflow figure,
.gallery-volumesync figure {
  min-height: 360px;
}

.gallery-lightflow img,
.gallery-volumesync img {
  max-height: 360px;
  border-radius: 14px;
}

/* Speedy Soccer gallery: never crop text on soccer-modes.png */
.gallery-speedy-soccer {
  grid-template-columns: 1fr;
}

.gallery-speedy-soccer figure {
  padding: 0;
  min-height: auto;
  background: #16241d;
}

.gallery-speedy-soccer img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* Contact Page */
.contact-page {
  min-height: calc(100vh - 200px);
  padding: 40px 5% 96px;
}

.contact-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  padding: clamp(72px, 12vh, 140px) 0 64px;
}

.contact-intro h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 16px 0 0;
}

.contact-intro h1 span {
  color: var(--accent);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--accent);
  padding: 8px 0;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--accent);
}

/* Legal pages */
.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 5% 120px;
}

.legal h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 20px 0;
}

.legal h1 span {
  color: var(--accent);
}

.legal-date {
  color: var(--ink-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.legal-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: #4e544c;
}

.legal-body h2 {
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
}

.legal-body a,
.legal-nav a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-body li {
  margin: 12px 0;
}

.legal-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 56px;
  font-size: 13px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .project-featured,
  .press-header,
  .detail-intro,
  .contact-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .press-quotes {
    grid-template-columns: 1fr;
  }

  .archive {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header {
    height: 70px;
  }

  .header nav {
    gap: 20px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-top span:last-child {
    display: none;
  }

  .hero-grid {
    padding: 40px 0 40px;
  }

  .work {
    padding: 64px 5% 80px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading p {
    text-align: left;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 320px;
    padding: 36px 20px;
  }

  .device-frame img {
    max-height: 300px;
  }

  .project-info {
    padding: 24px;
  }

  .press-spotlight {
    padding: 36px 24px;
    margin-top: 56px;
  }

  .archive-item {
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    padding: 20px;
  }

  .archive-icon {
    width: 60px;
    height: 60px;
  }

  .product-details {
    padding-top: 64px;
  }

  .product-details-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-details-heading h2 {
    margin-bottom: 24px;
  }

  .feature-list {
    margin-left: 0;
  }

  .feature-row {
    grid-template-columns: 32px 1fr;
    gap: 12px;
  }

  .feature-row p {
    grid-column: 2;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .product-gallery figure {
    min-height: 340px;
    padding: 24px;
  }

  .gallery-speedy-soccer figure {
    padding: 0;
    min-height: auto;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 48px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-bottom .brand {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
