/* layout lives here. to change words, links or images, edit content.js instead. */

@font-face {
  font-family: "Creato Display";
  font-weight: 700;
  font-display: swap;
  src: local("Creato Display Bold"), local("CreatoDisplay-Bold"),
       url("assets/fonts/CreatoDisplay-Bold.woff2") format("woff2"),
       url("assets/fonts/CreatoDisplay-Bold.otf") format("opentype");
}

:root {
  --bg: #194fc7;
  --fg: #ffc66b;
  --fg2: #a39b94; /* muted warm grey, secondary text */
  --ease: cubic-bezier(0.12, 0.72, 0.18, 1);
  --speed: 0.72s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; background: var(--bg); }

body {
  font-family: "Creato Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

.est {
  position: absolute;
  top: 4.2vh; left: 3.8vw;
  font-size: clamp(23px, 2.7vw, 39px);
  letter-spacing: -0.075em;
}

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(250px, 31vw) minmax(440px, 1fr);
  align-items: center;
  gap: 2vw;
  padding: 9vh 3.8vw 7vh;
}

.portrait { display: flex; align-items: center; justify-content: flex-start; }
.stamp {
  width: min(100%, 390px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.08));
}

.identity { align-self: center; min-width: 0; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  white-space: nowrap;
  font-size: clamp(58px, 7.6vw, 116px);
  line-height: 1.12;
  letter-spacing: -0.095em;
  width: max-content;
  overflow: visible;
}
.brand-name { flex: none; color: var(--fg); text-decoration: none; }
.brand-name:hover { opacity: 0.85; }

.reel-window {
  height: 1.24em;
  overflow: hidden;
  position: relative;
  min-width: max-content;
  width: max-content;
  flex: 0 0 auto;
  display: block;
  vertical-align: baseline;
  padding: 0.04em 0.12em 0 0;
}
.reel-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  transition: transform var(--speed) var(--ease);
}
.reel-item {
  height: 1.24em;
  line-height: 1.24;
  display: block;
  width: max-content;
  white-space: nowrap;
  color: var(--fg2);
  letter-spacing: 0.01em; /* a touch more open than "rohu", so it reads as its own word */
  padding-right: 0.12em;
}

.nav { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.nav button {
  border: 1px solid rgba(255, 198, 107, 0.38);
  border-radius: 999px;
  color: rgba(255, 198, 107, 0.75);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.section-content { margin-top: 28px; min-height: 46px; }
.description { font-size: 15px; line-height: 1.5; color: #f7dba8; max-width: 430px; }
.description .inline-link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.description + .description { margin-top: 10px; }

.quick-links { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.quick-links a { font-size: 14px; letter-spacing: -0.01em; text-decoration: none; color: rgba(255, 198, 107, 0.8); }
.quick-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  position: absolute;
  bottom: 24px; left: 3.8vw; right: 3.8vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(255, 198, 107, 0.65);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

a:focus-visible, button:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; border-radius: 6px; }

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(180px, 28vw) minmax(340px, 1fr); gap: 3vw; }
  .stamp { max-width: 300px; }
  .brand { font-size: clamp(52px, 6.8vw, 86px); }
}

@media (max-width: 650px) {
  .est { top: 22px; left: 22px; font-size: 25px; }
  .stage {
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: 100px 22px 70px; gap: 28px;
  }
  .stamp { width: 150px; }
  .identity { width: 100%; }
  .brand { font-size: clamp(46px, 10.2vw, 68px); max-width: 100%; }
  .nav { margin-top: 22px; gap: 7px; }
  .nav button { font-size: 11px; padding: 7px 11px; }
  .section-content { margin-top: 22px; }
  .quick-links { margin-top: 24px; gap: 16px; }
  .site-footer {
    left: 22px; right: 22px; bottom: 17px; font-size: 9px;
    flex-direction: column; align-items: flex-start; gap: 10px;
  }
  .site-footer-lines { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { transition: none !important; }
}

/* ============================================================
   inner pages (work, life, write, videos, about)
   scrolling pages that share the homepage's masthead (partial.js)
   so the whole site reads as one place, not separate templates.
   ============================================================ */

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  padding-bottom: 96px;
}

/* masthead: same portrait + rohu + pill nav as the homepage, just static */
.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 0;
  flex-wrap: wrap;
}

.mh-photo-link { flex: none; line-height: 0; }
.mh-photo {
  width: 90px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.08));
}

.mh-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mh-name {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.075em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.mh-name:hover { opacity: 0.85; }

.mh-nav { display: flex; gap: 10px; flex-wrap: wrap; }

.mh-nav a {
  border: 1px solid rgba(255, 198, 107, 0.38);
  border-radius: 999px;
  color: rgba(255, 198, 107, 0.75);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.mh-nav a:hover { color: var(--fg); border-color: var(--fg); }
.mh-nav a.active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.page-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.page-title {
  font-size: clamp(48px, 10vw, 104px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 20px;
}

.page-lede {
  color: var(--fg2);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
  max-width: 48ch;
  margin-bottom: 72px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.project-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-item-title {
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--fg);
  transition: opacity 0.2s ease;
}
.project-item:hover .project-item-title { opacity: 0.8; }

.project-item-summary {
  color: var(--fg2);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  max-width: 56ch;
  margin-top: 10px;
}
.project-item-summary strong { color: var(--fg); font-weight: 700; }

.project-detail-title {
  font-size: clamp(56px, 12vw, 128px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 8px;
}

.project-detail-meta {
  color: var(--fg2);
  font-size: clamp(18px, 2.2vw, 21px);
  margin-bottom: 48px;
}

.project-story {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 56px;
}
.project-story + .project-story { margin-top: -32px; }

.project-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
}

.project-outcomes li {
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fg);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.project-links a {
  color: var(--fg);
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ============================================================
   /work archive: intro, experience, selected work, writing.
   same type and colours as the rest of the site, no cards.
   ============================================================ */

.archive { max-width: 640px; margin-top: 28px; }

.arc-intro p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: #f7dba8;
}
.arc-intro p:first-child {
  color: var(--fg);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.arc-intro p + p { margin-top: 14px; }

.arc-section { margin-top: 80px; }

.arc-heading {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 32px;
}

.arc-exp-list { display: flex; flex-direction: column; gap: 40px; }

.arc-company {
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fg);
}
.arc-place {
  color: var(--fg2);
  font-size: 0.62em;
  letter-spacing: 0;
  margin-left: 10px;
  white-space: nowrap;
}

.arc-role {
  color: var(--fg2);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.arc-points {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arc-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #f7dba8;
}
.arc-points li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--fg2);
}

.arc-group + .arc-group { margin-top: 44px; }

.arc-group-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
}

.arc-note {
  color: var(--fg2);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 8px;
}

.arc-links {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arc-link {
  color: var(--fg);
  font-size: clamp(18px, 2.2vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.arc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arc-arrow { color: var(--fg2); margin-left: 6px; font-size: 0.8em; }
.arc-link:hover .arc-arrow { color: var(--fg); }

#arc-write + .arc-note { margin-top: 0; margin-bottom: 12px; }

@media (max-width: 650px) {
  .site-header { padding: 24px 22px 0; gap: 14px; }
  .page-inner { padding: 48px 22px 0; }
  .arc-section { margin-top: 64px; }
  .arc-heading { margin-bottom: 24px; }
  .arc-place { display: block; margin: 4px 0 0; font-size: 13px; }
}
.arc-about { font-size: 15px; line-height: 1.5; color: var(--fg2); margin-top: 10px; max-width: 56ch; }

/* experience timeline */
.tl { list-style: none; display: flex; flex-direction: column; gap: 64px; }
.tl-item { display: grid; grid-template-columns: 44px 1fr; gap: 0 20px; }
.tl-num {
  color: var(--fg2);
  font-size: 14px;
  letter-spacing: 0.08em;
  padding-top: 0.9em;
  border-top: 1px solid rgba(255, 198, 107, 0.3);
  height: max-content;
}
.tl-item article { min-width: 0; }
.tl-name {
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.tl-name a { color: inherit; text-decoration: none; }
.tl-name a:hover { opacity: 0.85; }
.tl-name .arc-arrow { font-size: 0.4em; vertical-align: super; margin-left: 8px; }
.tl-meta { color: var(--fg2); font-size: 14px; letter-spacing: 0.02em; margin-top: 10px; }
.tl-about { color: #f7dba8; font-size: 16px; line-height: 1.55; margin-top: 14px; max-width: 56ch; }
.tl-about + .tl-about { margin-top: 8px; }
.tl-item .arc-points { margin-top: 16px; }
.tl-media { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.tl-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.tl-links a {
  color: rgba(255, 198, 107, 0.8);
  font-size: 14px;
  text-decoration: none;
}
.tl-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 650px) {
  .tl { gap: 52px; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-num { border-top: 0; padding-top: 0; margin-bottom: 8px; }
}

/* selected work: video grid, embeds and plain links */
.sel-top { margin-top: 0; }
.sel-top .arc-group { margin-top: 56px; }
.sel-top .arc-group:first-of-type { margin-top: 0; }
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 40px 28px;
  margin-top: 24px;
  align-items: start;
}
.vid { margin: 0; min-width: 0; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: rgba(255, 198, 107, 0.08); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-empty {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  color: var(--fg2); font-size: 13px; line-height: 1.4;
  border: 1px dashed rgba(255, 198, 107, 0.35);
}
.vid figcaption { margin-top: 12px; }
.vid-title {
  color: var(--fg);
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.vid-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.vid-title .arc-arrow { color: var(--fg2); }
.vid-plain { min-width: 0; }
.vid-plain .arc-link { overflow-wrap: anywhere; }
.sel-top .page-title { font-size: clamp(44px, 7.5vw, 76px); white-space: nowrap; }
