/* Styles: see the apple-styles task. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f1f1f4;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.1);
  --nav-bg: rgba(251,251,253,.72);
  --accent: #0a66d8;
  --radius: 22px;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #111114;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255,255,255,.14);
    --nav-bg: rgba(0,0,0,.62);
  }
}
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) {
  body {
    font-size: 19px;
  }
}
html {
  scroll-behavior: smooth;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

/* Nav and footer */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Shared pieces */
.eyebrow {
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: filter .2s;
}
.btn:hover {
  filter: brightness(1.1);
}
.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 17px;
}
.link::after {
  content: " ›";
}
.link:hover {
  text-decoration: underline;
}

/* Home */
.hero {
  text-align: center;
  padding: clamp(96px, 18vw, 200px) var(--gutter) clamp(64px, 10vw, 120px);
}
.hero-title {
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
  margin: 0 auto;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 26px);
  color: var(--muted);
  max-width: 32ch;
  margin: 24px auto 0;
}
.feature {
  text-align: center;
  padding: clamp(72px, 12vw, 160px) var(--gutter) 0;
  overflow: hidden;
}
.feature:nth-of-type(even) {
  background: var(--bg-alt);
}
.feature-title {
  font-size: clamp(40px, 7.5vw, 84px);
  letter-spacing: -0.03em;
}
.feature-tagline {
  font-size: clamp(21px, 2.8vw, 30px);
  color: var(--muted);
  margin: 12px 0 24px;
}
.feature-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.feature-shot img {
  width: min(100%, 1200px);
  margin: 0 auto;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  will-change: transform;
}
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  text-align: center;
  margin-bottom: 48px;
}
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card a:hover img {
  transform: scale(1.02);
}
.card-name {
  display: block;
  font-size: 21px;
  font-weight: 600;
  margin-top: 16px;
}
.card-tagline {
  display: block;
  color: var(--muted);
  font-size: 17px;
}

/* Work page */
.work-hero {
  text-align: center;
  padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(40px, 6vw, 72px);
}
.work-title {
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
  margin: 0 auto;
}
.work-tagline {
  font-size: clamp(21px, 2.8vw, 30px);
  color: var(--muted);
  margin: 12px 0 24px;
}
.work-cta {
  margin-top: 28px;
}
.work-cta-end {
  text-align: center;
  padding: 0 var(--gutter) clamp(64px, 10vw, 120px);
}
.work-shot {
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 1280px;
}
.work-shot img {
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
.work-section {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter) 0;
}
.work-section h2 {
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.work-section p {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.details {
  list-style: none;
  margin: clamp(64px, 10vw, 128px) auto 0;
  padding: 0 var(--gutter);
  max-width: var(--max);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .details {
    grid-template-columns: repeat(3, 1fr);
  }
}
.detail {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}
.detail h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.detail p {
  color: var(--muted);
  margin: 0;
}
.work-phone {
  margin: clamp(64px, 10vw, 128px) auto;
  padding: 0 var(--gutter);
  max-width: 360px;
}
.work-phone img {
  border-radius: 36px;
  border: 8px solid var(--text);
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
}
.work-next {
  border-top: 1px solid var(--line);
}
.work-next a {
  display: block;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  text-decoration: none;
}
.work-next-name {
  display: block;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* About and 404 */
.about,
.notfound {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(96px, 16vw, 200px) var(--gutter);
}
.about-title,
.notfound h1 {
  font-size: clamp(44px, 8vw, 88px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.about-text {
  font-size: clamp(21px, 2.8vw, 30px);
  color: var(--muted);
  margin-bottom: 32px;
}

/* Reveals */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card img,
  .feature-shot img {
    transition: none;
    transform: none !important;
  }
}

/* Badge and note for in-progress works */
.badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 980px;
  font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: 0; vertical-align: middle;
  color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line);
}
.card-name .badge { font-size: 12px; }
.work-note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
