:root {
  color-scheme: light;
  --ink: #163e33;
  --paper: #fbf9f1;
  --sage: #e7ecdd;
  --rule: #bdc8b6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5.2vw, 5.6rem);
  --max-content: 88rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.dialog-open { overflow: hidden; }
body { margin: 0; line-height: 1.45; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: .16rem solid #a46910; outline-offset: .25rem; }
.projects :focus-visible { outline-color: #e4edc6; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, .brand, .story-card h3, .contact-name { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.35rem, 3.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.046em; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max-content)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 1.12em; height: 1.12em; flex: none; }
.left { transform: rotate(180deg); }
.down { transform: rotate(90deg); }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: .6rem; display: block; padding: .7rem 1rem; transform: translateY(-170%); color: var(--paper); background: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.masthead { background: var(--paper); }
.header-inner { min-height: clamp(4.3rem, 5.7vw, 5.4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; line-height: 1; font-size: clamp(1.45rem, 2.05vw, 1.9rem); letter-spacing: -.045em; white-space: nowrap; }
.portrait { width: clamp(2.8rem, 3.88vw, 3.6rem); height: auto; aspect-ratio: 1; padding: 2px; border: 1.5px solid var(--ink); border-radius: 50%; object-fit: cover; }
.brand-sprig { width: .85em; height: .85em; fill: currentColor; margin-left: -.45rem; }
.main-nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.2vw, 3.1rem); }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; line-height: 1.1; font-size: 1.05rem; }
.nav-projects, .main-nav a:hover { text-decoration: underline; text-underline-offset: .46em; }
.main-nav .nav-projects { font-weight: 600; }
.main-nav .nav-contact { min-width: 6.25rem; border: 1px solid var(--ink); border-radius: 2rem; font-weight: 600; font-size: 1rem; }
.main-nav .nav-contact:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.hero { background: #f1e0be url("assets/hero.webp") center center / cover no-repeat; }
.hero-inner { min-height: clamp(27rem, 35.7vw, 39rem); padding-block: clamp(3.9rem, 5.3vw, 5.8rem) clamp(4.5rem, 5.8vw, 6.5rem); }
.kicker, .project-tab { font-family: Consolas, 'Courier New', monospace; text-transform: uppercase; }
.kicker { font-size: 1rem; letter-spacing: .21em; font-weight: 700; margin-left: .17rem; margin-bottom: clamp(1.6rem, 2.1vw, 2.1rem); }
.hero h1 { font-size: clamp(4.6rem, 7.75vw, 8.2rem); line-height: .97; letter-spacing: -.063em; }
.hero h1 em { font-weight: 400; }
.hero-action { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; border-radius: 2rem; background: var(--ink); color: var(--paper); padding: .82rem 1.55rem; min-height: 3rem; margin-top: clamp(2.05rem, 2.9vw, 3.1rem); font-weight: 600; font-size: 1.06rem; }
.hero-action:hover { background: #255745; }
.hero-action .icon { width: 1.05em; }

.projects { position: relative; background: var(--ink); color: var(--paper); padding: clamp(2.8rem, 3.9vw, 4.1rem) 0 clamp(2.2rem, 2.7vw, 3rem); }
.projects > .wrap { position: relative; }
.project-tab { position: absolute; bottom: calc(100% + clamp(2.8rem, 3.9vw, 4.1rem) - 1px); left: 0; padding: .63rem 2.85rem .62rem 1.2rem; background: var(--ink); color: #f2f1dc; font-size: .84rem; line-height: 1; letter-spacing: .17em; border-radius: .33rem 0 0 0; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.projects-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.4rem; padding-bottom: 1.62rem; border-bottom: 1px solid #426659; }
.projects-heading h2 { font-size: clamp(2.15rem, 3.48vw, 3.45rem); }
.behance { flex: none; display: grid; gap: .2rem; justify-items: end; text-align: right; line-height: 1.4; }
.behance strong { font-size: 1.04rem; font-weight: 600; }
.behance span { display: inline-flex; align-items: center; gap: .38rem; font-size: .95rem; color: #deebc4; }
.behance:hover span { text-decoration: underline; text-underline-offset: .2em; }
.gallery { position: relative; margin-top: clamp(1.5rem, 2.2vw, 2.4rem); }
.stories-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); --gap: clamp(1rem, 1.88vw, 2rem); gap: var(--gap); margin-inline: clamp(2.4rem, 3.7vw, 3.9rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.js .stories-track { scrollbar-width: none; }
.js .stories-track::-webkit-scrollbar { display: none; }
.story-card { min-width: 0; scroll-snap-align: start; }
.story-link { display: block; cursor: zoom-in; }
.story-link:focus-visible, .video-link:focus-visible { outline-offset: -2px; }
.story-link img { width: 100%; height: auto; aspect-ratio: 2608 / 3308; display: block; }
.story-link:is(:hover,:focus-visible) h3, .video-link:is(:hover,:focus-visible) h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.edition { display: block; color: #d4e1c9; font-size: clamp(.875rem, 1.11vw, 1rem); margin-top: .74rem; }
.story-card h3 { font-size: clamp(1.21rem, 1.67vw, 1.55rem); line-height: 1.14; letter-spacing: -.032em; margin-top: .35rem; }
.circle { display: inline-grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; padding: .65rem; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
.gallery .circle { display: none; color: #d8e2d0; position: absolute; top: 45%; transform: translateY(-50%); z-index: 1; }
.js .gallery .circle { display: inline-grid; }
.gallery-prev { left: max(-1.45rem,-1.55vw); }
.gallery-next { right: max(-1.45rem,-1.55vw); }
.gallery .circle:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }

.videos { padding-block: clamp(3.05rem, 3.8vw, 4.2rem) clamp(3.6rem, 4.1vw, 4.75rem); }
.videos-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.youtube-mark { width: clamp(2.5rem,3.6vw,3.4rem); aspect-ratio: 52 / 36; }
.videos-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(1rem,1.38vw,1.65rem); }
.video-link { display: block; }
.video-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-link h3 { margin-top: .65rem; font-size: clamp(1rem,1.2vw,1.16rem); line-height: 1.35; font-weight: 600; }

.profile { background: var(--sage); border-top: 1px solid #c9d3be; padding-block: clamp(3.2rem,4.1vw,4.6rem) clamp(3.8rem,4.75vw,5.4rem); }
.profile-inner { display: grid; grid-template-columns: minmax(0,1.57fr) minmax(0,1fr); }
.about { padding-right: clamp(2.5rem,5.3vw,6rem); }
.about p { max-width: 43rem; margin-top: 1.6rem; font-size: clamp(1.1rem,1.6vw,1.45rem); line-height: 1.49; }
.contact { padding-left: clamp(2.5rem,4.05vw,4.75rem); border-left: 1px solid var(--rule); }
.contact-name { font-size: 1.42rem; margin-top: 1.1rem; }
.contact address { margin-top: 1.15rem; font-style: normal; }
.contact address a { display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; column-gap: .72rem; min-height: 3.7rem; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: 1.04rem; overflow-wrap: anywhere; }
.contact address a:hover span { text-decoration: underline; text-underline-offset: .21em; }
.contact address strong { font-size: .94rem; font-weight: 600; }
.contact address svg, .behance svg { width: .95rem; height: .95rem; }

dialog { color: var(--ink); background: var(--paper); border: 0; padding: 0; width: min(70rem,calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; box-shadow: 0 1rem 5rem #0b211f40; }
dialog::backdrop { background: #0b211eed; }
dialog[open] { display: flex; flex-direction: column; }
.reader-head { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.4rem; }
.reader-head h2 { font-size: clamp(1.4rem,2.4vw,2.2rem); line-height: 1.13; letter-spacing: -.035em; }
.reader-meta { font-size: .9rem; }
.reader-meta:empty { display: none; }
.reader-meta:not(:empty) { margin-bottom: .22rem; }
.reader-head .circle { width: 2.65rem; height: 2.65rem; }
.reader-head button:hover, .reader-tool:hover { background: #dfe7d9; }
#story-stage { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; background: #203d33; }
#story-image { width: auto; max-width: 100%; height: min(75vh,75dvh); max-height: 100%; object-fit: contain; margin: 0 auto; cursor: zoom-in; }
#story-stage.is-zoomed #story-image { width: max(75rem,100%); max-width: none; height: auto; max-height: none; margin: 0; cursor: zoom-out; }
.reader-foot, .video-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .75rem 1.4rem; }
.reader-tool { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; border: 0; border-radius: 2rem; background: transparent; padding: .42rem .75rem; font-size: .98rem; }
.reader-tool.zoom, #video-external { border: 1px solid var(--ink); padding-inline: 1rem; }
#video-dialog { width: min(59rem,calc(100% - 2rem)); overflow: auto; }
#video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; flex: none; background: #111; }
#video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#video-status { font-size: .95rem; }
#video-external { margin-left: auto; }

@media (max-width: 64rem) {
  .main-nav { gap: 1.5rem; }
  .behance strong { font-size: .94rem; }
  .projects-heading { gap: 1.3rem; }
  .stories-track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
  .profile-inner { grid-template-columns: 1.25fr 1fr; }
  .contact address a { grid-template-columns: 3.6rem 1fr auto; font-size: .96rem; gap: .45rem; }
}
@media (max-width: 47rem) {
  .header-inner { gap: .4rem 1rem; padding-block: .7rem; flex-wrap: wrap; }
  .brand { font-size: 1.35rem; gap: .55rem; }
  .portrait { width: 2.8rem; }
  .brand-sprig { margin-left: -.17rem; }
  .main-nav { gap: .9rem; }
  .main-nav a { min-height: 2.5rem; font-size: .95rem; }
  .main-nav .nav-contact { min-width: 4.8rem; }
  .hero { background-position: 45% center; }
  .hero-inner { min-height: 24rem; padding-block: 3.7rem 4.1rem; }
  .kicker { margin-bottom: 1.4rem; font-size: .9rem; }
  .hero h1 { font-size: clamp(3.35rem,9.3vw,4.7rem); }
  .hero-action { margin-top: 2rem; }
  .projects-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; padding-bottom: 1.4rem; }
  .behance { justify-items: start; text-align: left; gap: .05rem; }
  .stories-track { grid-auto-columns: calc((100% - var(--gap)) / 2); margin-inline: 2.2rem; }
  .circle { width: 2.65rem; height: 2.65rem; }
  .gallery-prev { left: -.6rem; }
  .gallery-next { right: -.6rem; }
  .videos-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; }
  .videos-heading { margin-bottom: 1.45rem; }
  .profile-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about { padding-right: 0; }
  .about p { margin-top: 1rem; }
  .contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2.1rem; }
  .contact address a { grid-template-columns: 4.5rem 1fr auto; font-size: 1rem; }
}
@media (max-width: 32rem) {
  .header-inner { justify-content: flex-start; gap: .25rem; }
  .main-nav { width: 100%; justify-content: space-between; gap: 1.55rem; }
  .main-nav a { min-height: 2.15rem; }
  .main-nav .nav-contact { min-height: 2rem; }
  .hero { background-image: linear-gradient(90deg,rgba(249,233,200,.85) 0%,rgba(249,233,200,.63) 58%,transparent 87%),url("assets/hero.webp"); background-position: center,53% center; }
  .hero-inner { min-height: 22rem; }
  .hero-action { font-size: 1rem; padding: .65rem 1.25rem; min-height: 2.8rem; }
  .projects-heading h2 { font-size: clamp(2.05rem,8.4vw,2.65rem); }
  .gallery { margin-top: 1.4rem; }
  .stories-track { grid-auto-columns: 100%; margin-inline: 2.45rem; }
  .videos-list { gap: 1.35rem .75rem; }
  .video-link h3 { font-size: .98rem; }
  dialog, #video-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .reader-head { padding: .85rem; gap: .65rem; }
  .reader-foot, .video-foot { padding: .55rem; }
  .reader-foot .reader-tool { padding-inline: .5rem; }
  .reader-tool .icon { width: .9rem; }
}
@media (max-width: 23rem) {
  .main-nav { gap: 1rem; }
  .videos-list { grid-template-columns: 1fr; }
  .contact address a { grid-template-columns: 3.6rem minmax(0,1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
