:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: #fffaf0;
  --text: #1e2528;
  --muted: #657070;
  --line: rgba(30, 37, 40, 0.16);
  --accent: #e2533f;
  --accent-2: #156f7d;
  --accent-3: #f0b84b;
  --shadow: 0 18px 50px rgba(30, 37, 40, 0.14);
  --radius: 8px;
  --header-h: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111512;
  --surface: #1b211d;
  --text: #f4f0e6;
  --muted: #b0b9ad;
  --line: rgba(244, 240, 230, 0.18);
  --accent: #ff735f;
  --accent-2: #4bb4c4;
  --accent-3: #f6ca62;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fffaf0;
  background: var(--text);
  border-radius: 8px;
  font-size: 15px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 37, 40, 0.06);
}

.sun,
.moon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.sun {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -10px 0 -7px currentColor,
    0 10px 0 -7px currentColor,
    10px 0 0 -7px currentColor,
    -10px 0 0 -7px currentColor,
    7px 7px 0 -7px currentColor,
    -7px -7px 0 -7px currentColor,
    7px -7px 0 -7px currentColor,
    -7px 7px 0 -7px currentColor;
}

.moon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  box-shadow: inset -6px -2px 0 1px currentColor;
  opacity: 0;
}

:root[data-theme="dark"] .sun {
  opacity: 0;
}

:root[data-theme="dark"] .moon {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 54px);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 42%, transparent 74%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 70px 0 116px;
}

.eyebrow,
.section-kicker,
.work-type {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: color-mix(in srgb, var(--accent) 78%, #000 10%);
  background: var(--accent);
  color: #fffaf0;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button.secondary {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text);
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 64px);
}

.split,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.about-copy {
  color: var(--muted);
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 54px auto 0;
}

.stat-card,
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: clamp(20px, 4vw, 34px);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
}

.work-section {
  background: color-mix(in srgb, var(--accent-2) 8%, var(--bg));
  border-block: 1px solid var(--line);
}

.section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 34px;
}

.text-link {
  color: var(--accent);
  font-weight: 780;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.work-card {
  overflow: hidden;
}

.work-media {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.86), rgba(255, 250, 240, 0.18)),
    var(--media);
}

.work-media.product {
  --media:
    radial-gradient(circle at 78% 24%, #f0b84b 0 12%, transparent 13%),
    linear-gradient(135deg, #156f7d 0 44%, #1e2528 45% 62%, #e2533f 63% 100%);
}

.work-media.studio {
  --media:
    radial-gradient(circle at 28% 34%, #e2533f 0 11%, transparent 12%),
    linear-gradient(140deg, #f0b84b 0 33%, #f7f3ea 34% 44%, #156f7d 45% 100%);
}

.work-media.writing {
  --media:
    radial-gradient(circle at 70% 30%, #156f7d 0 10%, transparent 11%),
    linear-gradient(145deg, #1e2528 0 35%, #f0b84b 36% 55%, #e2533f 56% 100%);
}

.work-body {
  padding: 22px;
}

.work-body h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.work-body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.notes-section {
  max-width: 1180px;
  margin: 0 auto;
}

.notes-section h2 {
  margin-bottom: 30px;
}

.note-list {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.note-row span,
.note-row small {
  color: var(--muted);
}

.note-row strong {
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.22;
}

.contact {
  padding: clamp(70px, 10vw, 128px) clamp(18px, 5vw, 64px);
  background: var(--text);
  color: var(--bg);
}

.contact-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.contact h2 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.contact .eyebrow {
  color: var(--accent-3);
}

.contact .button.secondary {
  background: transparent;
  color: var(--bg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 58%, transparent 100%),
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent);
  }

  .hero-content {
    align-self: end;
    width: min(680px, calc(100% - 32px));
    margin-inline: 16px;
    padding-bottom: 70px;
  }

  h1 {
    max-width: 10ch;
  }

  .split,
  .section-heading,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 16px;
    align-items: start;
  }

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

@media (max-width: 560px) {
  .site-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    justify-content: space-around;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 8px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .work-media {
    min-height: 190px;
  }

  .note-row {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 112px;
  }

  .note-row small {
    grid-column: 2;
  }

  body {
    padding-bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
