@charset "UTF-8";

:root {
  --bg: #fbfbf9;
  --ink: #0b2545;
  --ink-soft: #4a5b73;
  --line: #d8dde6;
  --accent: #2f6fe4;
  --accent-light: #8fb2f7;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --pad-x: clamp(24px, 5vw, 80px);
  --gutter: clamp(32px, 5vw, 88px);
  --box-h: 340px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Vertical wordmark */
.wordmark {
  position: fixed;
  top: 40px;
  left: clamp(20px, 3vw, 44px);
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* Top navigation */
.topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 30px var(--pad-x);
  display: flex;
  justify-content: flex-end;
}

.topbar nav { display: flex; gap: 28px; }

.topbar a {
  font-size: 0.95rem;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}

.topbar a:hover { background-size: 100% 1px; }

/* Layout shell */
.shell {
  padding-left: clamp(96px, 10vw, 168px);
  padding-right: var(--pad-x);
}

.label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.label--bar {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.label--light { color: #fff; }

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--gutter);
  align-items: center;
  padding: 96px 0 64px;
}

.hero-media {
  margin: 0;
  height: min(78vh, 720px);
  overflow: hidden;
  background: #dfe3ea;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.7s ease;
}

.hero-media:hover img { filter: grayscale(0) contrast(1); }

h1, h2, .row-title, .row-value {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0.45em 0 0.55em;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cta span, .arrow { display: inline-block; transition: transform 0.25s ease; }
.cta:hover span { transform: translateX(5px); }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: minmax(90vh, auto);
  gap: var(--gutter);
  align-items: start;
  padding: 8vh 0 14vh;
}

.panel {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 96px;
  min-height: var(--box-h);
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Right column fills the section row: lists on top, photo at the bottom. */
.split-col {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

/* Same size as the panel (5/6 of the 6fr column = 5fr), bottom-aligned so the two
   boxes sit side by side once the sticky panel reaches the end of the section. */
.photo {
  flex: 0 0 auto;
  width: calc(100% * 5 / 6);
  height: var(--box-h);
  margin: 0;
  overflow: hidden;
  background: #dfe3ea;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.7s ease;
}

.photo:hover img { filter: grayscale(0) contrast(1); }

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.panel-quote {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.panel-quote footer {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.panel-quote cite { font-style: normal; }

.currently-col .label { margin-bottom: 20px; }
.currently-col .label--spaced { margin-top: 56px; }
#projects { scroll-margin-top: 140px; }

/* Pixel sprite: 8px art pixels shown at half size (96px wide = 4px per pixel) */
.sprite {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 60px;
  margin-left: auto;
}

.sprite img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: auto;
  image-rendering: pixelated;
}

.sprite-hover { opacity: 0; }
.rows a:hover .sprite-rest { opacity: 0; }
.rows a:hover .sprite-hover { opacity: 1; }

/* Rows */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rows li { border-bottom: 1px solid var(--line); }

.rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.row-text { display: flex; flex-direction: column; gap: 6px; }

.row-title {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.row-sub {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.arrow { font-size: 1.35rem; flex-shrink: 0; }
.rows a:hover .arrow { transform: translateX(6px); }
.rows a:hover .row-title { color: var(--accent); }

/* Contact band (full-bleed). The clipped light wordmark inside it takes over
   from the dark one where the two overlap, so the name changes colour at the edge. */
.band {
  position: relative;
  z-index: 2;
  clip-path: inset(0);
  background: var(--ink);
  color: #fff;
  padding: 22vh var(--pad-x) 22vh clamp(96px, 10vw, 168px);
}

.wordmark--light { color: #fff; z-index: auto; }

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--gutter);
  align-items: start;
}

.band-intro { display: flex; flex-direction: column; gap: 24px; }

.band h2 { color: #fff; max-width: 14ch; }

.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fields a {
  display: block;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  transition: border-color 0.25s ease;
}

.fields a:hover { border-bottom-color: var(--accent-light); }

.field-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.field-value {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.field-value--nowrap { white-space: nowrap; }

.fields .arrow { color: var(--accent-light); }
.fields a:hover .arrow { transform: translateX(6px); }

/* Scroll tab */
.scroll-tab {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 10;
  width: 48px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(to bottom, var(--accent) 0 60%, var(--ink) 60% 100%);
  color: #fff;
  font-size: 1.15rem;
}

.scroll-tab span { padding-bottom: 12px; }

/* Tablet and mobile */
@media (max-width: 1100px) {
  .scroll-tab { display: none; }
}

@media (max-width: 900px) {
  .wordmark {
    position: absolute;
    top: 22px;
    left: 20px;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
  }

  .topbar { padding: 22px 20px; }
  .topbar nav { gap: 18px; }
  .topbar a { font-size: 0.88rem; }

  .shell { padding-left: 20px; padding-right: 20px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 88px 0 40px;
    gap: 28px;
  }

  .hero-media { height: 52vh; }

  .split {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 28px;
    padding: 40px 0;
  }

  .panel,
  .split-col {
    grid-column: auto;
    grid-row: auto;
  }

  .split-col { gap: 40px; }

  .panel {
    position: static;
    min-height: 0;
  }

  .photo {
    align-self: auto;
    width: 100%;
    height: 62vw;
    max-height: 340px;
  }

  .split { padding-bottom: 64px; }

  .band { padding: 64px 20px; }

  .band-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .band h2 { max-width: none; }

  .fields { gap: 32px; }

  .wordmark--light { display: none; }
}

@media (max-width: 420px) {
  .topbar nav { gap: 13px; }
  .topbar a { font-size: 0.82rem; }
}
