/* Editorial portfolio refresh.
   The site now follows a quiet magazine-like language: paper background,
   restrained display type, real project covers, and very little decoration. */

:root {
  --paper: #f6f3ed;
  --paper-soft: #fffdf8;
  --paper-warm: #ebe5da;
  --ink: #11100f;
  --ink-soft: #312d28;
  --muted: #777066;
  --muted-soft: #9a9185;
  --line: rgba(17, 16, 15, 0.11);
  --line-strong: rgba(17, 16, 15, 0.2);
  --accent: #d85a37;
  --accent-hover: #bf482b;
  --focus-ring: rgba(216, 90, 55, 0.32);
  --green: #3f6c51;
  --brown: #a47551;
  --blue: #355c7d;
  --shadow: 0 26px 70px rgba(31, 27, 22, 0.14);
  --shadow-soft: 0 18px 46px rgba(31, 27, 22, 0.085);
  --shadow-faint: 0 10px 30px rgba(31, 27, 22, 0.055);
  --radius: 8px;
  --image-radius: 24px;
  --page: min(1280px, calc(100% - 56px));
  --font-serif: "Fraunces", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 7%, rgba(216, 90, 55, 0.055), transparent 25rem),
    linear-gradient(180deg, var(--paper), #f8f5ee 42%, var(--paper));
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  display: none;
}

button,
a {
  font: inherit;
}

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

::selection {
  background: rgba(216, 90, 55, 0.18);
  color: var(--ink);
}

.site-header {
  align-items: center;
  background: rgba(246, 243, 237, 0.9);
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  display: grid;
  grid-template-columns: auto 1fr;
  left: 0;
  margin: 0 auto;
  max-width: none;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  right: 0;
  transform: none;
  width: 100%;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  align-items: baseline;
  color: var(--ink-soft);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  gap: 12px;
  grid-column: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  display: inline;
  font-family: var(--font-mono);
  font-size: 23px;
  font-style: italic;
  font-weight: 600;
  height: auto;
  letter-spacing: 0;
  line-height: 1;
  width: auto;
}

.brand-mark::after {
  content: ".";
}

.tabs {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  gap: 36px;
  grid-column: 2;
  justify-self: end;
  padding: 0;
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  min-height: 44px;
  min-width: auto;
  padding: 0 2px;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tab::after {
  background: var(--ink);
  bottom: 7px;
  content: "";
  height: 1.5px;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.tab.is-active {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.tab.is-active::after,
.tab:hover::after,
.tab:focus-visible::after {
  transform: scaleX(1);
}

.tab:hover,
.tab:focus-visible {
  box-shadow: none;
  color: var(--ink);
  outline: 0;
  transform: translateY(-1px);
}

.tab:focus-visible,
.brand:focus-visible,
.project-trigger:focus-visible,
.hero-action:focus-visible,
.footer-link:focus-visible,
.back-button:focus-visible,
.contact-link:focus-visible,
.viewer-close:focus-visible,
.viewer-nav:focus-visible,
.viewer-zoom:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 5px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.section-screen,
.page-band,
.contact {
  padding: 0;
}

.hero {
  align-content: center;
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  isolation: isolate;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 84px max(28px, calc((100vw - 1280px) / 2)) 72px;
  position: relative;
  text-align: center;
}

.hero::before {
  display: none;
}

.hero::after,
.hero-field,
.skill-cloud {
  display: none;
}

.hero-copy {
  display: grid;
  justify-items: center;
  margin: 0 auto;
  max-width: 1280px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.hero-meta {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 42px;
  max-width: 1280px;
  padding-bottom: 16px;
  width: 100%;
}

.hero-meta span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
  font-style: normal;
}

.eyebrow,
.kicker,
.project-copy small,
.project-signal,
.contact-link span,
.timeline-item time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.case-hero h2,
.project-copy strong,
.profile-aside h3,
.timeline-item h3,
.contact-link strong,
.transcript-block h3,
.hero-lab strong,
.portfolio-footer p {
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(72px, 7vw, 112px);
  font-weight: 300;
  line-height: 0.97;
  margin: 0 auto;
  max-width: 1280px;
  text-align: center;
  width: 100%;
}

h1 span {
  display: block;
}

.headline-muted {
  color: var(--ink);
  font-style: italic;
  margin-left: 0;
}

.hero-intro {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.78;
  margin: 38px auto 0;
  max-width: 760px;
  text-align: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.hero-chips li {
  background: rgba(255, 253, 248, 0.52);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  padding: 8px 14px 9px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 32px;
}

.hero-action,
.footer-link,
.back-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: none;
  color: var(--paper);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  min-height: 46px;
  padding: 0 22px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-action:not(.is-primary),
.footer-link:not(:first-child) {
  background: rgba(255, 253, 248, 0.28);
  border-color: var(--line-strong);
  color: var(--ink);
}

.hero-action.is-primary:hover,
.hero-action.is-primary:focus-visible,
.footer-link:first-child:hover,
.footer-link:first-child:focus-visible,
.back-button:hover,
.back-button:focus-visible {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 16, 15, 0.16);
  transform: translateY(-1px);
}

.hero-action:not(.is-primary):hover,
.hero-action:not(.is-primary):focus-visible,
.footer-link:not(:first-child):hover,
.footer-link:not(:first-child):focus-visible {
  background: rgba(17, 16, 15, 0.055);
  border-color: rgba(17, 16, 15, 0.32);
  color: var(--ink);
  box-shadow: none;
  transform: translateY(-1px);
}

.hero-lab {
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-soft);
  display: block;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.hero-lab::before {
  display: none;
}

.lab-metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lab-metrics div {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 18px 17px;
  text-align: center;
}

.lab-metrics dt {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.lab-metrics dd {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.lab-impact dt {
  font-size: 42px;
}

.lab-focus dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.work-section {
  background:
    radial-gradient(circle at 78% 8%, rgba(216, 90, 55, 0.035), transparent 24rem),
    linear-gradient(180deg, rgba(246, 243, 237, 0), rgba(255, 253, 248, 0.2) 52%, rgba(246, 243, 237, 0));
  border-top: 0;
  margin: 0 auto;
  padding: 104px max(28px, calc((100vw - 1280px) / 2)) 118px;
  position: relative;
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  margin: 0 auto 54px;
  max-width: 1280px;
  padding-bottom: 26px;
}

.section-heading h2 {
  font-size: 58px;
  font-weight: 400;
  line-height: 1.04;
  margin: 9px 0 0;
}

.section-heading > p,
.section-heading div + p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
}

.work-heading {
  align-items: end;
  gap: 24px;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.38fr);
}

.work-heading > p {
  max-width: 420px;
}

.project-grid {
  display: grid;
  gap: 72px 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1280px;
}

.project-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  min-height: 0;
  overflow: visible;
  position: relative;
}

.project-card::before,
.project-card::after {
  display: none;
}

.project-card:hover,
.project-card:focus-within {
  box-shadow: none;
  transform: none;
}

.project-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-areas:
    "cover"
    "copy";
  grid-template-columns: 1fr;
  padding: 0;
  position: relative;
  text-align: left;
  transition: color 0.24s ease;
  width: 100%;
}

.project-index {
  align-items: center;
  background: var(--paper);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 10px 26px rgba(11, 11, 12, 0.12);
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  height: 52px;
  justify-content: center;
  left: 18px;
  line-height: 1;
  position: absolute;
  width: 52px;
  z-index: 4;
}

.project-cover {
  aspect-ratio: 16 / 10;
  background: rgba(255, 253, 248, 0.34);
  border: 0;
  border-radius: var(--image-radius);
  box-shadow: 0 22px 54px rgba(31, 27, 22, 0.065);
  display: block;
  grid-area: cover;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: box-shadow 0.32s ease, transform 0.32s ease, filter 0.32s ease;
  width: 100%;
}

.project-cover::before,
.project-cover::after {
  display: none;
}

.project-cover-img {
  border-radius: var(--image-radius);
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), filter 0.32s ease;
  width: 100%;
}

.project-cover > :not(.project-cover-img) {
  display: none !important;
}

.project-copy {
  box-sizing: border-box;
  display: grid;
  gap: 9px;
  grid-area: copy;
  justify-self: stretch;
  max-width: none;
  padding: 20px 0 0;
  width: 100%;
}

.project-signal {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 1px;
  max-width: none;
  width: 100%;
}

.project-copy small {
  display: none;
}

.project-copy strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.14;
  max-width: none;
  width: 100%;
}

.project-copy em {
  color: var(--muted);
  display: block;
  font-size: 15px;
  font-style: normal;
  line-height: 1.68;
  max-width: none;
  width: 100%;
}

.project-arrow {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  bottom: 5px;
  color: var(--ink);
  display: inline-flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 4px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  width: 42px;
}

.project-trigger:hover .project-cover,
.project-trigger:focus-visible .project-cover {
  box-shadow: 0 26px 64px rgba(31, 27, 22, 0.1);
  transform: translateY(-4px);
}

.project-trigger:hover .project-cover-img,
.project-trigger:focus-visible .project-cover-img {
  filter: saturate(1.03) contrast(1.015);
  transform: scale(1.025);
}

.project-trigger:hover .project-arrow,
.project-trigger:focus-visible .project-arrow {
  background: var(--ink);
  color: var(--paper);
  transform: translate(2px, -2px);
}

.project-trigger:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 8px;
}

.history-section {
  background: var(--paper);
  margin: 0 auto;
  padding: 0 max(28px, calc((100vw - 1280px) / 2)) 118px;
  position: relative;
}

.history-heading {
  margin-bottom: 44px;
}

.history-grid {
  display: grid;
  gap: 42px;
  margin: 0 auto;
  max-width: 1280px;
}

.history-card .project-trigger {
  align-items: end;
  gap: 40px;
  grid-template-areas: "cover copy";
  grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.36fr);
}

.history-card .project-cover {
  aspect-ratio: 16 / 10;
}

.history-card .project-cover-img {
  object-position: center;
}

.history-card .project-copy {
  align-self: end;
  padding: 0 0 4px;
}

.history-card .project-copy strong {
  font-size: 40px;
}

.history-card .project-copy em {
  max-width: 420px;
}

.page-band,
.contact {
  margin: 0 auto;
  max-width: 1280px;
  padding: 108px 28px 118px;
}

.profile-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr);
}

.profile-aside {
  border: 0;
  color: var(--muted);
  padding: 12px 0 18px;
}

.profile-aside h3 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 12px;
}

.profile-aside p {
  font-size: 15px;
  line-height: 1.72;
  margin: 0 0 20px;
  max-width: 860px;
}

.profile-aside .profile-summary {
  border-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.86;
  margin: 18px 0 0;
  max-width: 920px;
  padding-top: 0;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 980px;
}

.mini-tags span {
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  padding: 0;
}

.mini-tags span:not(:last-child)::after {
  color: var(--muted-soft);
  content: "|";
  margin: 0 10px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 32px 0 36px;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item h3 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 8px;
}

.timeline-item .role {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
  margin: 0;
}

.experience-points {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.82;
  margin: 14px 0 0;
  padding-left: 1.35em;
}

.experience-points li {
  padding-left: 4px;
}

.experience-points li::marker {
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 0.82em;
}

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

.contact-link,
.contact-note {
  background: var(--paper-soft);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-faint);
  color: var(--ink);
  min-height: 180px;
  padding: 30px;
  text-decoration: none;
}

.contact-link {
  display: grid;
  gap: 16px;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-link strong {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.12;
}

.contact-link:hover,
.contact-link:focus-visible {
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-note {
  color: var(--muted);
  font-size: 15px;
  grid-column: 1 / -1;
  line-height: 1.78;
}

.contact-note p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  max-width: none;
}

.contact-note p:first-child,
.contact-note p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.contact-note p + p {
  margin-top: 12px;
}

.case-study {
  background: var(--paper);
  display: none;
  min-height: calc(100vh - 72px);
}

body.is-case-open .tab-panel.is-active > .hero,
body.is-case-open .tab-panel.is-active > .work-section,
body.is-case-open .tab-panel.is-active > .history-section {
  display: none;
}

body.is-case-open .case-study {
  display: block;
}

.back-button {
  margin: 28px max(28px, calc((100vw - 1280px) / 2)) 52px;
}

.case-panel {
  display: none;
}

.case-panel.is-active {
  display: block;
}

.case-hero {
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--page);
  padding: 58px 0 74px;
}

.case-hero > div:first-child {
  justify-self: start;
  margin: 0;
  max-width: 760px;
}

.case-hero h2 {
  font-size: 68px;
  font-weight: 500;
  line-height: 1.02;
  margin: 12px 0 20px;
}

.case-hero p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.82;
  margin: 0;
  max-width: 760px;
}

.case-summary-card {
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-faint);
  color: var(--paper);
  display: grid;
  gap: 30px;
  padding: 34px;
}

.summary-topline {
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  color: rgba(245, 241, 232, 0.72);
  display: flex;
  font-family: var(--font-mono);
  font-size: 13px;
  justify-content: space-between;
  padding-bottom: 18px;
}

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

.summary-stage-grid article {
  background: rgba(245, 241, 232, 0.96);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  min-height: 122px;
  padding: 18px;
}

.summary-stage-grid span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-style: normal;
}

.summary-stage-grid strong {
  align-self: end;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.15;
}

.summary-stage-grid em {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  margin-top: 7px;
}

.case-summary-card > p {
  color: rgba(245, 241, 232, 0.62);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.case-visual-shot,
.transcript-block figure {
  background: transparent;
  border: 0;
  border-radius: var(--image-radius);
  box-shadow: var(--shadow-faint);
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.case-visual-shot.is-frameless {
  background: transparent;
  border: 0;
  border-radius: var(--image-radius);
  box-shadow: var(--shadow-faint);
  padding: 0;
}

.case-visual-shot img,
.transcript-block img {
  background: transparent;
  border: 0;
  border-radius: var(--image-radius);
  box-shadow: none;
  cursor: zoom-in;
  height: auto;
  max-height: none;
  object-fit: contain;
  width: 100%;
}

.case-content.case-transcript {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: var(--page);
}

.transcript-block {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
  padding: 72px 0;
}

.transcript-block:last-child {
  border-bottom: 1px solid var(--line);
}

.transcript-block > div {
  display: block;
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.transcript-block > div::before {
  display: none;
}

.transcript-block h3 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.18;
  margin: 8px 0 13px;
  max-width: none;
  width: 100%;
}

.transcript-block p:not(.kicker),
.transcript-block li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.88;
  max-width: none;
  width: 100%;
}

.transcript-block ul {
  display: none;
}

.transcript-block li::marker {
  color: var(--accent);
}

.portfolio-footer {
  background:
    radial-gradient(circle at 76% 18%, rgba(216, 90, 55, 0.16), transparent 28rem),
    linear-gradient(135deg, #2c211a 0%, #1c1511 58%, #130f0c 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.08);
  color: var(--paper-soft);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  overflow: hidden;
  padding: 104px max(28px, calc((100vw - 1280px) / 2)) 112px;
  position: relative;
}

.portfolio-footer::before {
  color: rgba(255, 253, 248, 0.48);
  content: "CLOSING NOTE";
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-footer::after {
  bottom: -0.18em;
  color: rgba(255, 253, 248, 0.045);
  content: "2026";
  font-family: var(--font-serif);
  font-size: clamp(120px, 18vw, 260px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: max(22px, calc((100vw - 1280px) / 2));
}

.portfolio-footer p {
  color: var(--paper-soft);
  font-family: var(--font-serif);
  font-size: clamp(52px, 6.2vw, 92px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.02;
  margin: 0;
  max-width: 1080px;
  position: relative;
  z-index: 1;
}

.portfolio-footer small {
  color: rgba(255, 253, 248, 0.62);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.portfolio-footer div {
  display: none;
}

body.is-case-open .portfolio-footer {
  display: none;
}

.image-viewer {
  align-items: center;
  background: rgba(8, 8, 8, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 36px;
  position: fixed;
  z-index: 999;
}

.image-viewer.is-open {
  display: flex;
}

.viewer-frame {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  margin: 0;
  max-height: calc(100vh - 72px);
  max-width: calc(100vw - 112px);
}

.viewer-viewport {
  border-radius: var(--image-radius);
  display: grid;
  justify-items: center;
  max-height: calc(100vh - 176px);
  max-width: min(1280px, calc(100vw - 128px));
  overflow: auto;
  overscroll-behavior: contain;
  place-items: center;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  scrollbar-width: thin;
}

.viewer-viewport.is-zoomed {
  cursor: grab;
  place-items: start;
}

.viewer-viewport.is-panning {
  cursor: grabbing;
  user-select: none;
}

.viewer-viewport::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.viewer-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.viewer-image {
  background: transparent;
  border: 0;
  border-radius: var(--image-radius);
  box-shadow: 0 24px 86px rgba(0, 0, 0, 0.54);
  display: block;
  height: auto;
  max-height: calc(100vh - 176px);
  max-width: min(1280px, calc(100vw - 128px));
  object-fit: contain;
  width: auto;
}

.viewer-image.is-zoomed {
  cursor: grab;
  max-height: none;
  max-width: none;
}

.viewer-viewport.is-panning .viewer-image {
  cursor: grabbing;
}

.viewer-caption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.viewer-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
}

.viewer-zoom {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-width: 34px;
  padding: 0 12px;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.viewer-zoom:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.viewer-zoom:disabled {
  cursor: not-allowed;
  opacity: 0.36;
  transform: none;
}

.viewer-zoom-level {
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  min-width: 52px;
  text-align: center;
}

.viewer-close,
.viewer-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 28px;
  height: 52px;
  justify-content: center;
  position: fixed;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 52px;
}

.viewer-close {
  font-size: 36px;
  right: 28px;
  top: 28px;
}

.viewer-prev {
  left: 28px;
  top: 50%;
}

.viewer-next {
  right: 28px;
  top: 50%;
}

.viewer-close:hover,
.viewer-close:focus-visible,
.viewer-nav:hover,
.viewer-nav:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

body.viewer-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .hero {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .hero-lab {
    align-self: auto;
    border-left: 0;
    border-top: 0;
    grid-template-columns: 1fr;
    max-width: none;
    padding: 26px 0 0;
  }

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

  h1 {
    font-size: 88px;
  }

  .hero::before {
    font-size: 190px;
  }

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

@media (max-width: 900px) {
  :root {
    --page: min(100% - 34px, 1280px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 0 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .tabs {
    gap: 20px;
    grid-column: 2;
  }

  .tab {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 62px 18px 72px;
  }

  .hero-meta {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 62px;
  }

  .headline-muted {
    margin-left: 0;
  }

  .hero-intro {
    font-size: 16px;
    margin: 32px auto 0;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lab-metrics {
    grid-template-columns: 1fr;
  }

  .work-section {
    padding: 72px 18px 86px;
  }

  .history-section {
    padding: 0 18px 86px;
  }

  .history-card .project-trigger {
    gap: 0;
    grid-template-areas:
      "cover"
      "copy";
    grid-template-columns: 1fr;
  }

  .history-card .project-copy {
    padding: 18px 0 0;
  }

  .section-heading h2 {
    font-size: 46px;
  }

  .project-grid {
    gap: 42px;
    grid-template-columns: 1fr;
  }

  .project-copy strong {
    font-size: 32px;
  }

  .history-card .project-copy strong {
    font-size: 32px;
  }

  .project-arrow {
    position: static;
    margin-top: 16px;
  }

  .page-band,
  .contact {
    padding: 72px 18px 86px;
  }

  .profile-layout,
  .timeline-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    gap: 36px;
    padding: 44px 0 52px;
  }

  .case-hero h2 {
    font-size: 50px;
  }

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

  .transcript-block {
    padding: 52px 0;
  }

  .transcript-block h3 {
    font-size: 30px;
  }

  .portfolio-footer {
    padding: 68px 18px 74px;
  }

  .portfolio-footer p {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: center;
  }

  .tabs {
    gap: 14px;
  }

  .tab {
    font-size: 13px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-meta {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  h1 {
    font-size: 45px;
  }

  .headline-muted {
    margin-left: 0;
  }

  .hero::before {
    bottom: -36px;
    font-size: 90px;
    right: -22px;
  }

  .hero-chips li {
    font-size: 12px;
  }

  .hero-action,
  .footer-link,
  .back-button {
    min-height: 40px;
    padding: 0 16px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .project-cover {
    aspect-ratio: 16 / 10;
  }

  .project-index {
    height: 44px;
    width: 44px;
  }

  .project-copy {
    padding-top: 18px;
  }

  .project-copy strong {
    font-size: 28px;
  }

  .contact-link,
  .contact-note {
    padding: 22px;
  }

  .contact-link strong {
    font-size: 26px;
    word-break: break-word;
  }

  .case-hero h2 {
    font-size: 38px;
  }

  .summary-stage-grid {
    grid-template-columns: 1fr;
  }

  .case-summary-card {
    padding: 22px;
  }

  .transcript-block {
    padding: 42px 0;
  }

  .transcript-block h3 {
    font-size: 25px;
  }

  .portfolio-footer p {
    font-size: 34px;
  }

  .portfolio-footer div {
    flex-wrap: wrap;
  }

  .image-viewer {
    padding: 16px;
  }

  .viewer-frame {
    max-width: calc(100vw - 32px);
  }

  .viewer-viewport {
    max-height: calc(100vh - 156px);
    max-width: calc(100vw - 40px);
  }

  .viewer-image {
    max-height: calc(100vh - 156px);
    max-width: calc(100vw - 40px);
  }

  .viewer-toolbar {
    gap: 4px;
    padding: 5px;
  }

  .viewer-zoom {
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
  }

  .viewer-zoom-level {
    min-width: 48px;
  }

  .viewer-close,
  .viewer-nav {
    height: 44px;
    width: 44px;
  }

  .viewer-close {
    right: 12px;
    top: 12px;
  }

  .viewer-prev {
    left: 12px;
  }

  .viewer-next {
    right: 12px;
  }
}

/* Warm page lock: About and Contact should stay in the same paper world as Work. */
#about.tab-panel,
#contact.tab-panel,
#about.tab-panel.is-active,
#contact.tab-panel.is-active {
  background: var(--paper);
}

#about .page-band,
#contact .contact {
  background:
    radial-gradient(circle at 82% 6%, rgba(216, 90, 55, 0.04), transparent 22rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.52), rgba(246, 243, 237, 0));
  box-shadow: none;
  max-width: none;
  min-height: calc(100vh - 72px);
  padding-left: max(28px, calc((100vw - 1280px) / 2));
  padding-right: max(28px, calc((100vw - 1280px) / 2));
}

#about .section-heading,
#contact .section-heading,
#about .profile-layout,
#contact .contact-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
}

#about .section-heading,
#contact .section-heading {
  background: transparent;
  border-bottom-color: var(--line);
}

#contact .contact-link,
#contact .contact-note {
  background: rgba(255, 253, 248, 0.76);
  border: 0;
  box-shadow: var(--shadow-faint);
}

#about .profile-aside {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0 18px;
}

#about .mini-tags span {
  background: transparent;
  border-color: transparent;
}

#about .timeline,
#about .timeline-item,
#contact .contact-note {
  border-color: var(--line);
}

#about .timeline-item:first-child {
  border-top-color: var(--line-strong);
}

#contact .contact-link:hover,
#contact .contact-link:focus-visible {
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.project-cover,
.project-cover-img,
.case-visual-shot,
.case-visual-shot.is-frameless,
.case-visual-shot img,
.transcript-block figure,
.transcript-block img,
.viewer-image {
  border-radius: var(--image-radius);
}

@media (max-width: 900px) {
  #about .page-band,
  #contact .contact {
    padding-left: 18px;
    padding-right: 18px;
  }
}
