:root {
  color-scheme: light;
  --ink: #111214;
  --muted: #5f656b;
  --soft: #e8e5df;
  --paper: #f4f1eb;
  --white: #ffffff;
  --charcoal: #202428;
  --steel: #5c6972;
  --signal: #b35f3d;
  --blueprint: #203947;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  align-items: center;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 18, 20, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 44px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-size: 15px;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.58fr);
  min-height: calc(100vh - 140px);
  padding: 62px 56px 38px;
}

.hero-copy {
  align-self: center;
  max-width: 860px;
}

.eyebrow,
.section-kicker,
.project-label,
.work-row span,
.engineering-grid span,
.system-grid span {
  color: var(--signal);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 28px;
}

.lede {
  color: #34383c;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.25;
  max-width: 780px;
}

.hero-panel {
  align-self: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  min-height: 0;
}

.hero-image {
  background: #f8f7f3;
  border: 1px solid rgba(17, 18, 20, 0.12);
  margin: 0;
  overflow: hidden;
}

.hero-image img {
  height: 100%;
  object-fit: cover;
}

.hero-image-large {
  height: min(62vh, 590px);
  min-height: 420px;
}

.hero-portrait img {
  object-position: center 38%;
}

.proof-strip {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-strip div {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 142px;
  padding: 30px 34px;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  font-size: clamp(32px, 3.5vw, 50px);
  letter-spacing: 0;
  line-height: 1;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 14px;
  margin-top: 12px;
  max-width: 240px;
}

.section {
  display: grid;
  gap: 46px;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 82px 56px;
}

.section h2,
.case-hero h2,
.section-heading h2,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(32px, 3.45vw, 52px);
  line-height: 1.04;
  margin-bottom: 22px;
  max-width: 980px;
}

.section p {
  color: var(--muted);
  font-size: 18px;
  max-width: 850px;
}

.intro {
  background: var(--white);
}

.intro-wide {
  display: block;
}

.case-hero {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.65fr);
  margin-bottom: 64px;
}

.case-hero h2 {
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1;
  margin: 0;
  max-width: 1050px;
}

.case-hero p {
  align-self: end;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 0;
}

.span-image-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  margin-bottom: 72px;
}

.span-image-grid figure {
  background: #f7f7f4;
  border: 1px solid rgba(17, 18, 20, 0.12);
  margin: 0;
}

.span-image-grid img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
}

.span-image-grid figcaption {
  background: rgba(17, 18, 20, 0.94);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 16px;
}

.span-image-main {
  grid-row: span 2;
}

.span-image-main img {
  height: calc(100% - 47px);
}

.engineering-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.engineering-grid article {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 24px 0 0;
}

.engineering-grid article + article {
  padding-left: 24px;
}

.engineering-grid article:last-child {
  border-right: 0;
}

.engineering-grid span {
  color: #d8906f;
}

.engineering-grid h3 {
  font-size: 25px;
  line-height: 1.06;
  margin-bottom: 16px;
}

.engineering-grid p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  margin-bottom: 0;
}

.system-section {
  background: var(--white);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-grid article {
  border-top: 1px solid var(--soft);
  min-height: 176px;
  padding: 24px 28px 20px 0;
}

.system-grid article:nth-child(3n + 2),
.system-grid article:nth-child(3n + 3) {
  border-left: 1px solid var(--soft);
  padding-left: 28px;
}

.system-grid span {
  color: var(--ink);
  margin-bottom: 14px;
}

.system-grid p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.work-section {
  background: var(--paper);
  padding: 104px 56px;
}

.section-heading {
  display: grid;
  gap: 46px;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-bottom: 54px;
}

.section-heading h2 {
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.02;
  margin: 0;
  max-width: 1050px;
}

.case-card {
  background: var(--white);
  border: 1px solid rgba(17, 18, 20, 0.12);
  margin: 0 0 34px;
  padding: 54px;
}

.case-card .case-hero {
  margin-bottom: 44px;
}

.case-card .case-hero h2 {
  font-size: clamp(34px, 4.1vw, 58px);
}

.span-case {
  background: var(--blueprint);
  color: var(--white);
}

.span-case .case-hero p,
.span-case .engineering-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.span-case .engineering-grid {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.portfolio-image,
.apple-image-grid figure {
  background: #f7f7f4;
  border: 1px solid rgba(17, 18, 20, 0.12);
  margin: 0 0 46px;
  overflow: hidden;
}

.portfolio-image img {
  aspect-ratio: 16 / 9.6;
  height: 100%;
  object-fit: cover;
}

.span-image-grid.two-up {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.span-image-grid.two-up .span-image-main {
  grid-row: auto;
}

.span-image-grid.two-up .span-image-main img,
.span-image-grid.two-up img {
  height: 520px;
}

.apple-image-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.78fr 1.22fr;
  margin-bottom: 48px;
}

.apple-image-grid figure {
  margin-bottom: 0;
}

.apple-image-grid img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
}

.apple-image-grid figure:first-child img {
  object-position: center;
}

.apple-image-grid figcaption {
  background: rgba(17, 18, 20, 0.94);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 16px;
}

.light-grid {
  border-top-color: rgba(17, 18, 20, 0.14);
}

.light-grid article {
  border-right-color: rgba(17, 18, 20, 0.14);
}

.light-grid span {
  color: var(--signal);
}

.light-grid p {
  color: var(--muted);
}

.work-row {
  border-top: 1px solid rgba(17, 18, 20, 0.14);
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 0.72fr);
  padding: 42px 0;
}

.work-row:last-child {
  border-bottom: 1px solid rgba(17, 18, 20, 0.14);
}

.work-row.flip {
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.92fr);
}

.work-row.flip figure {
  order: 2;
}

.work-row.flip div {
  order: 1;
}

.work-row figure {
  background: var(--white);
  border: 1px solid rgba(17, 18, 20, 0.12);
  margin: 0;
  overflow: hidden;
}

.work-row img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
}

.work-row div {
  align-self: center;
}

.work-row h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  margin-bottom: 18px;
}

.work-row p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 0;
  max-width: 640px;
}

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark .section-kicker {
  color: #d8906f;
}

.principles {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles article {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 0;
  padding: 18px 20px 0;
}

.principles h3 {
  font-size: 23px;
  line-height: 1.08;
  margin-bottom: 12px;
}

.principles p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.philosophy {
  padding-bottom: 70px;
  padding-top: 70px;
}

.timeline {
  background: var(--white);
}

.timeline-list {
  border-top: 1px solid var(--soft);
}

.timeline-list article {
  border-bottom: 1px solid var(--soft);
  display: grid;
  gap: 28px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 28px 0;
}

.timeline time {
  color: var(--signal);
  font-size: 13px;
  font-weight: 850;
}

.timeline h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.timeline p {
  font-size: 16px;
  margin-bottom: 0;
}

.contact {
  background: #0e161b;
  color: var(--white);
  padding: 92px 56px 112px;
}

.contact .eyebrow {
  color: #d8906f;
}

.contact h2 {
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  margin-bottom: 28px;
  max-width: 1000px;
}

.contact-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 22px;
  font-weight: 780;
}

@media (max-width: 1040px) {
  .site-header {
    padding: 0 24px;
  }

  nav {
    gap: 14px;
  }

  .hero,
  .case-hero,
  .section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 60px 24px 32px;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-image-large {
    height: 420px;
    min-height: 0;
  }

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

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section,
  .work-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .case-card {
    padding: 34px;
  }

  .span-image-grid,
  .apple-image-grid,
  .engineering-grid,
  .system-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .span-image-main {
    grid-row: auto;
  }

  .span-image-main img {
    height: 420px;
  }

  .span-image-grid img {
    height: 360px;
  }

  .engineering-grid article,
  .engineering-grid article + article {
    border-right: 0;
    padding: 26px 0;
  }

  .engineering-grid article + article {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .light-grid article + article {
    border-top-color: rgba(17, 18, 20, 0.14);
  }

  .system-grid article,
  .system-grid article:nth-child(3n + 2),
  .system-grid article:nth-child(3n + 3) {
    border-left: 0;
    padding-left: 0;
  }

  .work-row,
  .work-row.flip {
    grid-template-columns: 1fr;
  }

  .work-row.flip figure,
  .work-row.flip div {
    order: initial;
  }
}

@media (min-width: 760px) and (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  }

  .hero-image-large {
    height: 420px;
  }

}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 0;
    padding: 14px 18px;
    position: static;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    font-size: 12px;
  }

  .hero,
  .section,
  .work-section,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 28px;
    padding-top: 42px;
  }

  h1 {
    font-size: 43px;
    line-height: 0.96;
  }

  .lede {
    font-size: 18px;
  }

  .hero-image-large {
    height: 360px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 0;
    min-height: 112px;
    padding: 24px 20px;
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .work-section {
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .case-card {
    padding: 24px;
  }

  .case-hero {
    gap: 22px;
    margin-bottom: 34px;
  }

  .case-hero h2,
  .case-card .case-hero h2,
  .section-heading h2 {
    font-size: 42px;
  }

  .case-hero p,
  .work-row p,
  .principles p,
  .section p {
    font-size: 16px;
  }

  .span-image-grid {
    gap: 14px;
    margin-bottom: 36px;
  }

  .span-image-main img,
  .span-image-grid img,
  .span-image-grid.two-up .span-image-main img,
  .span-image-grid.two-up img {
    height: 250px;
  }

  .apple-image-grid img,
  .portfolio-image img {
    aspect-ratio: 4 / 3;
  }

  .work-row {
    gap: 24px;
    padding: 32px 0;
  }

  .work-row img {
    aspect-ratio: 4 / 3;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
  }

  .contact {
    padding-top: 68px;
    padding-bottom: 78px;
  }
}
