:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #68615b;
  --line: #ded6cd;
  --accent: #246b62;
  --accent-strong: #163f3a;
  --gold: #d69833;
  --rose: #c8584f;
  --shadow: 0 20px 60px rgba(35, 30, 25, 0.12);
  --hero-bg: url("images/brand/unsupervised-robot.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 244, 239, 0.9);
  border-bottom: 1px solid rgba(222, 214, 205, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(36, 107, 98, 0.1);
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: clamp(560px, 72vh, 760px);
  margin-left: calc(50% - 50vw);
  grid-template-columns: minmax(0, 720px);
  align-items: center;
  padding: clamp(70px, 9vw, 118px) max(20px, calc((100vw - 1180px) / 2)) clamp(84px, 10vw, 132px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background: var(--hero-bg) center right / min(96vw, 1180px) auto no-repeat;
  opacity: 0.52;
}

.hero::after {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(247, 244, 239, 0.9) 0%,
    rgba(247, 244, 239, 0.72) 30%,
    rgba(247, 244, 239, 0.28) 60%,
    rgba(247, 244, 239, 0.14) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.9rem, 6.2vw, 5.8rem);
  font-weight: 800;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.tagline {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--accent-strong);
  font-size: clamp(1.35rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
}

.intro {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

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

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0 84px;
}

.section-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.section-card:hover,
.section-card:focus-visible {
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
}

.section-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.section-card h2 {
  font-size: 1.45rem;
}

.section-card p:last-child,
.split-section p,
.services-copy p:last-child {
  color: var(--muted);
}

.studio-updates {
  padding: 28px 0 84px;
  border-bottom: 1px solid var(--line);
}

.studio-updates-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.studio-updates-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.studio-updates-intro p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.update-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.update-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.update-card:hover,
.update-card:focus-within {
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
}

.update-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.update-card p:not(.section-kicker) {
  margin: 18px 0 24px;
  color: var(--muted);
}

.update-card .button {
  width: fit-content;
  margin-top: auto;
}

.services-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.services-copy h2 {
  max-width: 680px;
}

.services-copy p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-list p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.page-intro {
  padding: clamp(10px, 3vw, 32px) 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.page-intro > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.book-copy > p:not(.section-kicker) {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.book-copy h2 {
  max-width: 620px;
}

.book-subtitle {
  max-width: 620px;
  color: var(--accent-strong);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.35;
}

.book-details {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
}

.book-details div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.book-details div:last-child {
  border-bottom: 1px solid var(--line);
}

.book-details dt,
.book-details dd {
  margin: 0;
}

.book-details dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-details dd {
  color: var(--ink);
  font-weight: 700;
}

.book-cover-card {
  justify-self: end;
  width: min(100%, 330px);
  aspect-ratio: 0.68;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: url("images/books/nude-among-friends-cover.jpg") center / cover no-repeat var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.album-section {
  padding: 28px 0 82px;
  border-bottom: 1px solid var(--line);
}

.album-section-intro {
  max-width: 760px;
}

.album-section-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.album-section-intro p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.album-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.album-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.56fr) minmax(360px, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.album-copy h3 {
  margin: 0;
  font-size: 1.45rem;
}

.album-copy p {
  margin: 16px 0 0;
  color: var(--muted);
}

.album-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
}

.album-card .button {
  grid-column: 2;
  width: fit-content;
}

.album-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.selected-projects {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.selected-projects-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.selected-projects-intro > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.project-card p {
  margin: 18px 0 24px;
  color: var(--muted);
}

.project-card span {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.video-card:hover,
.video-card:focus-within {
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.video-card p {
  margin: 18px 0 24px;
  color: var(--muted);
}

.video-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.connect-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.connect-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.connect-card span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-card strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.connect-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.connect-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.split-section > p {
  margin: 0;
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--accent-strong);
}

.footer-links,
.social-links,
.social-links a {
  display: flex;
  align-items: center;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.social-links {
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.social-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--accent-strong);
}

.social-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: clamp(520px, 76vh, 680px);
    padding: 64px 20px 76px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 10vw, 5.7rem);
  }

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-section,
  .featured-book,
  .split-section {
    grid-template-columns: 1fr;
  }

  .album-card {
    grid-template-columns: 1fr;
  }

  .album-card .button {
    grid-column: 1;
  }

  .book-cover-card {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .site-footer {
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.1;
  }

  .hero {
    min-height: 560px;
    padding: 48px 14px 62px;
  }

  .hero::before {
    background-position: center;
    background-size: min(120vw, 760px) auto;
    opacity: 0.36;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(247, 244, 239, 0.88) 0%,
      rgba(247, 244, 239, 0.7) 50%,
      rgba(247, 244, 239, 0.42) 100%
    );
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3.75rem);
    line-height: 1.05;
  }

  .page-intro {
    padding: 14px 0 46px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section-grid {
    grid-template-columns: 1fr;
    padding-bottom: 54px;
  }

  .section-card {
    min-height: 210px;
  }

  .studio-updates {
    padding: 18px 0 58px;
  }

  .update-card-grid {
    grid-template-columns: 1fr;
  }

  .update-card {
    min-height: 240px;
  }

  .selected-projects {
    padding: 58px 0;
  }

  .album-section {
    padding: 18px 0 58px;
  }

  .album-card {
    padding: 20px;
  }

  .album-card iframe {
    min-height: 300px;
  }

  .connect-section {
    padding: 58px 0;
  }

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

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

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

  .project-card {
    min-height: 250px;
  }

  .services-section,
  .featured-book,
  .video-section,
  .split-section {
    padding: 58px 0;
  }

  .book-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .book-cover-card {
    width: min(100%, 280px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .hero {
    gap: 18px;
    min-height: 540px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(2.25rem, 10.2vw, 4.2rem);
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    width: auto;
    min-height: 42px;
    padding: 10px 15px;
    font-size: 0.92rem;
  }

  .hero::before {
    opacity: 0.36;
  }
}
