:root {
  color-scheme: light;
  --paper: #f4f1f8;
  --ink: #1c1824;
  --muted: #777080;
  --line: #dcd7e4;
  --accent: #9568ee;
  --video-bg: #e2deea;
  --footer-surface: #191522;
  --footer-text: #f4f1f8;
  --footer-line: #40394c;
  --footer-muted: #aaa1b7;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17131f;
  --ink: #f1ecf8;
  --muted: #aaa0b9;
  --line: #393244;
  --accent: #b08cff;
  --video-bg: #0c0a10;
  --footer-surface: #100e16;
  --footer-text: #f1ecf8;
  --footer-line: #3b3347;
  --footer-muted: #aaa1b7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  column-gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 88px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.heading-period,
.contact-title span {
  color: var(--accent);
}

.wordmark-avatar {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.eyebrow,
.section-count,
.text-link,
.project-caption p,
.email-link,
.social-links,
.footer-note {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.045em;
}

.wordmark-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.colombo-clock {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 11px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.colombo-clock time {
  grid-row: span 2;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.clock-colon {
  animation: clock-colon-blink 1s steps(2, start) infinite;
}

@keyframes clock-colon-blink {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clock-colon {
    animation: none;
  }
}

.clock-zone {
  grid-column: 2;
  font-size: 9px;
  letter-spacing: 0.035em;
}

.main-nav {
  display: flex;
  justify-self: end;
  gap: clamp(18px, 2.5vw, 38px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav a,
.text-link,
.social-links a,
.email-link {
  transition: color 180ms ease;
}

.main-nav a:hover,
.text-link:hover,
.social-links a:hover,
.email-link:hover {
  color: var(--accent);
}

.main-nav span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.theme-toggle {
  display: inline-flex;
  min-width: 84px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 11px/1 var(--sans);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.eyebrow-square {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--accent);
  vertical-align: 1px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
}

.eyebrow-square {
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.hero {
  padding: 44px 5.2vw 0;
}

.hero-meta,
.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-count,
.hero-caption > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.045em;
}

.hero-title-wrap {
  width: 100%;
  padding: 34px 0 30px;
}

.hero-title-wrap h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 1;
}

.hero-title-wrap h1 span {
  color: var(--accent);
}

.hero-caption {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.text-link {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.text-link span {
  margin-left: 12px;
}

.work-section {
  padding: 62px 5.2vw 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.section-count {
  padding-bottom: 8px;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4vw;
  row-gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.project-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--video-bg);
}

.project-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
}

.project-caption h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.project-caption h3 a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.project-caption h3 a:hover,
.project-caption h3 a:focus-visible {
  color: var(--accent);
}

.project-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.contact-section {
  padding: 54px 5.2vw 28px;
  background: var(--footer-surface);
  color: var(--footer-text);
}

.contact-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.contact-top .eyebrow {
  color: #b7aec5;
}

.contact-top .eyebrow-square {
  background: var(--accent);
}

.contact-arrow {
  color: var(--accent);
  font-size: 22px;
}

.contact-title {
  display: inline-block;
  margin: 30px 0 42px;
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.95;
  transition: color 180ms ease;
}

.contact-title:hover {
  color: #d3cce0;
}

.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--footer-line);
}

.email-link span {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 26px;
}

.footer-note {
  color: var(--footer-muted);
}

@media (min-width: 1500px) {
  .hero {
    padding-top: 54px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 42px 28px;
    min-height: 92px;
    row-gap: 8px;
    padding: 10px 6vw;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
  }

  .colombo-clock {
    grid-column: 2;
    grid-row: 1;
    margin-right: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
    min-width: 38px;
    padding: 0 9px;
  }

  .theme-toggle-label {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 42px 28px;
    column-gap: 0;
    min-height: 92px;
    row-gap: 8px;
    padding: 10px 6vw;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
  }

  .colombo-clock {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 14px;
    font-size: 9px;
  }

  .colombo-clock time {
    font-size: 16px;
  }

  .clock-zone {
    font-size: 7px;
  }

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
    min-width: 38px;
    min-height: 34px;
    padding: 0 9px;
  }

  .theme-toggle-label {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    gap: clamp(20px, 8vw, 40px);
    font-size: 11px;
  }

  .hero {
    padding: 28px 6vw 0;
  }

  .work-section {
    padding: 48px 6vw 72px;
  }

  .work-grid {
    column-gap: 22px;
    row-gap: 34px;
  }

  .contact-section {
    padding: 42px 6vw 24px;
  }

  .contact-title {
    margin: 26px 0 34px;
  }

  .contact-bottom {
    align-items: start;
    flex-wrap: wrap;
  }

  .footer-note {
    width: 100%;
    padding-top: 5px;
  }
}

@media (max-width: 420px) {
  .wordmark-avatar {
    width: 36px;
    height: 36px;
  }

  .wordmark-label {
    font-size: 8px;
  }

  .main-nav {
    gap: 40px;
    font-size: 10px;
  }

  .hero-caption > span,
  .text-link {
    font-size: 9px;
  }

  .hero-caption {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .hero-caption .text-link {
    margin-left: auto;
  }

  .work-section {
    padding-top: 42px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .project-caption h3 {
    font-size: 14px;
  }

  .contact-bottom {
    flex-direction: column;
  }

  .social-links {
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: 42px auto auto;
    row-gap: 8px;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
  }

  .colombo-clock {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin-right: 0;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

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