/* Clarizza Lee — portfolio, v2
   "Less, but better": a strict 12-column grid, generous space, functional
   grotesk for structure and a warm serif for reading. Toned paper and a
   single ochre route line carry the personal thread. */

:root {
  --paper: #141413;
  --chalk: #1f1e1c;
  --ink: #edecea;
  --graphite: #a6a39d;
  --ochre: #c6ff3d;
  --accent-line: #141413;
  --line: rgba(237, 236, 234, 0.12);
  --grain-opacity: 0;

  --sans: "Albert Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: var(--sans);

  --step--1: 0.875rem;
  --step-0: 1.1875rem;
  --step-1: 1.375rem;
  --step-2: 1.875rem;
  --step-3: clamp(2rem, 3.4vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.4vw, 5.25rem);

  --space-s: clamp(1rem, 2vw, 1.5rem);
  --space-m: clamp(2rem, 4vw, 3rem);
  --space-l: clamp(3.5rem, 8vw, 6rem);
  --space-xl: clamp(5rem, 13vw, 10rem);

  --page: 76rem;
  --gutter: clamp(1.5rem, 6vw, 4.5rem);
  --col-gap: clamp(1rem, 2.5vw, 2rem);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.72;
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: var(--grain-opacity); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.28em; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--ochre); text-decoration-thickness: 3px; }
.btn, .plate-link { background-image: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.008em; }
p { margin: 0 0 1.4em; text-wrap: pretty; }
strong { font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[tabindex="-1"]:focus { outline: none; }
#work, #intro { scroll-margin-top: var(--space-m); }
.site-nav a, .site-footer a, .back, .more, .facts a { display: inline-block; padding-block: 0.3rem; min-width: 24px; text-align: center; }
.more, .back, .site-footer a { text-align: left; }
.skip { position: absolute; left: -999px; top: 0; font-family: var(--sans); }
.skip:focus { left: 1rem; top: 1rem; background: var(--chalk); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; }

/* header */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: flex-end; padding-block: 1.75rem; }
.site-nav { font-family: var(--sans); font-size: 1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--graphite); }
.menu-toggle { display: none; }

/* mobile menu */
@media (max-width: 699px) {
  .js .site-header .wrap { padding-block: 1.25rem; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 0 0.5rem 0.75rem;
    background: none; border: 0; color: var(--ink); font: 500 1rem var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .burger { position: relative; width: 1.5rem; height: 0.75rem; }
  .burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s cubic-bezier(.22,.61,.36,1), top 0.45s cubic-bezier(.22,.61,.36,1); }
  .burger span:first-child { top: 0; }
  .burger span:last-child { top: calc(100% - 2px); }
  .menu-open .burger span { top: calc(50% - 1px); }
  .menu-open .burger span:first-child { transform: rotate(45deg); }
  .menu-open .burger span:last-child { transform: rotate(-45deg); }

  .js .site-nav ul {
    position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0;
    padding: 0.5rem var(--gutter) var(--space-m); background: var(--paper);
    visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-0.5rem);
    transition: clip-path 0.5s cubic-bezier(.22,.61,.36,1), opacity 0.35s ease, transform 0.5s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0.5s;
    box-shadow: 0 1.5rem 2rem -1rem rgba(0, 0, 0, 0.6);
  }
  .js .menu-open .site-nav ul { visibility: visible; opacity: 1; clip-path: inset(0 0 -3rem 0); transform: none; transition-delay: 0s; }
  .js .site-nav li { opacity: 0; transform: translateY(0.6rem); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.22,.61,.36,1); }
  .js .menu-open .site-nav li { opacity: 1; transform: none; }
  .js .menu-open .site-nav li:nth-child(2) { transition-delay: 0.04s; }
  .js .menu-open .site-nav li:nth-child(3) { transition-delay: 0.08s; }
  .js .menu-open .site-nav li:nth-child(4) { transition-delay: 0.12s; }
  .js .menu-open .site-nav li:nth-child(5) { transition-delay: 0.16s; }
  .js .site-nav ul a { display: block; width: 100%; text-align: left; padding: 0.7rem 0; font-size: var(--step-2); letter-spacing: -0.015em; color: var(--ink); }
}
@media (max-width: 699px) and (prefers-reduced-motion: reduce) {
  .js .site-nav ul, .js .site-nav li, .burger span { transition: none !important; }
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 3px; text-underline-offset: 0.4em; }

/* hero */
.hero { padding-block: 0 clamp(6rem, 16vw, 13rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.hero-main { grid-column: 1 / -1; position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 6.5rem); min-height: calc(100svh - 6.5rem - env(safe-area-inset-top, 0px)); padding-block: var(--space-m) var(--space-l); }
.scroll-cue { position: absolute; left: -0.6rem; bottom: var(--space-m); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; font-size: 1.5rem; line-height: 1; text-decoration: none; color: var(--graphite); }
.scroll-cue:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue { animation: nudge 2.2s ease-in-out 2.5s 2; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero .hello .avatar { width: clamp(5.5rem, 10vw, 8.5rem); height: auto; border-radius: 50%; flex: none; }
.hero .hello { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 2.5vw, 2rem); grid-column: 1 / -1; font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--graphite); margin: 0 0 2rem; }
.hero h1 { grid-column: 1 / -1; max-width: 22ch; font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.12; letter-spacing: -0.02em; }
.hero .intro { grid-column: 1 / -1; margin: var(--space-l) 0 0; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.45; letter-spacing: -0.012em; color: var(--graphite); max-width: 44rem; scroll-margin-top: var(--space-l); }
.hero .intro strong { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) {
  .hero .intro { grid-column: 4 / 12; }
}

/* the route */
.route { padding-block: 0 clamp(6rem, 16vw, 13rem); }
.route h2 { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; color: var(--graphite); letter-spacing: 0; margin-bottom: var(--space-m); }
.route-map { display: none; width: 100%; height: auto; overflow: visible; }
.route-map .path { fill: none; stroke: var(--accent-line); stroke-width: 1.5; stroke-linecap: round; }
.route-map .band { fill: none; stroke: var(--ochre); stroke-width: 9; stroke-linecap: round; opacity: .9; }
.route-map .stop { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.route-map .stop.now { fill: var(--ochre); stroke: var(--ink); }
.route-map .yr { font-family: var(--sans); font-size: 12.5px; fill: var(--graphite); }
.route-map .wh { font-family: var(--sans); font-size: 12.5px; fill: var(--graphite); }
.route-map .co { font-family: var(--sans); font-weight: 500; font-size: 15px; fill: var(--ink); }
.route-list { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; font-family: var(--sans); font-size: 1rem; }
.route-list::before { content: ""; position: absolute; left: 0.3rem; top: 0.9rem; bottom: 0.9rem; width: 0.45rem; background: var(--ochre); border-radius: 4px; }
.route-list li { position: relative; padding-block: 0.45rem; }
.route-list li::before { content: ""; position: absolute; left: -1.62rem; top: 0.95rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.route-list li.now::before { background: var(--ochre); border-color: var(--ink); }
.route-list .yr { color: var(--graphite); margin-right: 0.75rem; font-variant-numeric: tabular-nums; }
.route-list .co { font-weight: 500; }
.route-list .where { color: var(--graphite); }
@media (min-width: 760px) {
  .route-map { display: block; }
  .route-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .route-map .path, .route-map .band { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.45,.05,.25,1) 0.3s forwards; }
  .route-map .stop, .route-map text { opacity: 0; animation: appear 0.4s ease forwards; }
}
.js .route-map:not(.go) .path, .js .route-map:not(.go) .band, .js .route-map:not(.go) .stop, .js .route-map:not(.go) text { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* sections */
.section { padding-block: 0 clamp(6rem, 16vw, 13rem); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-bottom: var(--space-l); }
.section-head h2 { grid-column: 1 / -1; }
.section-head p { grid-column: 1 / -1; color: var(--graphite); margin: 1rem 0 0; max-width: 32rem; }
@media (min-width: 900px) {
  .section-head h2 { grid-column: 1 / 6; }
  .section-head p { grid-column: 6 / 12; margin-top: 0.5rem; }
}

/* work list */
.work { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.work-item { display: grid; gap: var(--space-m); }
.work-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 1rem; }
.work-title, .work-desc { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .work-item { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-m); }
  .work-item > .plate, .work-item > .plate-link { grid-column: 6 / 13; grid-row: 1; }
  .work-text { display: contents; }
  .work-title { grid-column: 1 / 6; grid-row: 1; align-self: start; padding-right: var(--col-gap); }
  .work-desc { grid-column: 6 / 12; grid-row: 2; }
  .work-item h3 { max-width: 14ch; }
}
.work-item h3 { font-size: var(--step-2); line-height: 1.18; letter-spacing: -0.015em; }
.work-item h3 a { text-decoration: none; }
.work-item h3 a { text-decoration: none; }
.meta, .tags { font-family: var(--sans); font-size: var(--step--1); color: var(--graphite); }
.work-item .meta { margin: 0 0 0.6rem; }
.work-item .summary { margin: 0 0 0.9rem; max-width: 34rem; }
.work-item .tags { margin: 0 0 1.25rem; }
.more { font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; }
.plate-link { display: block; text-decoration: none; }

/* mounted work */
.plate { margin: 0; background: var(--chalk); padding: 0; border-radius: 6px; overflow: hidden; }
.about-grid > .plate, .work-item > .plate, .work-item > .plate-link { align-self: start; }
.plate img { display: block; }
.plate img { width: 100%; border-radius: 0; }
.plate-link .plate { transition: background-color 0.25s; }
.plate-link .plate img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.plate-link:hover .plate img { transform: scale(1.015); }
.plate figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--graphite); padding: 0.9rem 1.25rem 1rem; line-height: 1.5; }
.plate.sketch { border: 0; background: var(--chalk); aspect-ratio: 2.4 / 1; display: grid; place-items: center; }
.plate.sketch svg { width: min(30%, 12rem); height: auto; }
.plate.sketch path, .plate.sketch circle { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plate.sketch .accent { stroke: var(--ink); }
.plate.sketch circle.accent { fill: var(--ink); stroke: var(--ink); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-m); }
.btn { font-family: var(--sans); font-size: 1.125rem; font-weight: 400; display: inline-block; text-decoration: none; padding: 0.95rem 2.1rem; border-radius: 999px; border: 1.5px solid var(--ink); background-color: var(--ink); color: var(--paper); }
.btn:hover { background-color: var(--ochre); color: #1a1a14; }
.btn.ghost { background-color: transparent; color: var(--ink); }
.btn.ghost:hover { background-color: var(--ink); color: var(--paper); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.contact > * { grid-column: 1 / -1; }
.contact p { color: var(--graphite); max-width: 32rem; margin: 1rem 0 0; }
@media (min-width: 900px) {
  .contact h2 { grid-column: 1 / 6; }
  .contact .contact-body { grid-column: 6 / 12; }
  .contact p { margin-top: 0.5rem; }
}

/* footer */
.site-footer { padding-block: var(--space-m) var(--space-m); font-family: var(--sans); font-size: var(--step--1); color: var(--graphite); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: var(--space-l); }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }

/* case study */
.cs-head { padding-block: var(--space-l); }
.back { font-family: var(--sans); font-size: 1rem; display: inline-block; margin-bottom: var(--space-m); text-decoration: none; color: var(--graphite); }
.back:hover { color: var(--ink); }
.cs-head h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
.cs-head .lede-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--space-m); }
.cs-head .lede { grid-column: 1 / -1; font-size: var(--step-1); line-height: 1.55; color: var(--graphite); max-width: 36rem; margin: 0; }
@media (min-width: 900px) { .cs-head .lede { grid-column: 6 / 12; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-s) var(--col-gap); margin: var(--space-l) 0 0; padding: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
.facts dt { font-size: var(--step--1); color: var(--graphite); margin-bottom: 0.3rem; }
.facts dd { margin: 0; }
.facts .outcome { grid-column: 1 / -1; padding-top: var(--space-m); }
.facts .outcome dd { font-size: var(--step-1); font-weight: 400; letter-spacing: -0.012em; line-height: 1.35; max-width: 42ch; }

.cs-hero { margin-block: var(--space-m) var(--space-xl); }
.cs-body { padding-bottom: var(--space-l); }
.prose { max-width: 38rem; }
@media (min-width: 900px) {
  .prose, .note, .next, .cs-body .plate.narrow { margin-left: calc((100% + var(--col-gap)) * 5 / 12); }
}
.prose h2 { font-size: var(--step-2); letter-spacing: -0.015em; margin: var(--space-xl) 0 1.75rem; }
.prose h3 { font-size: var(--step-1); margin: var(--space-l) 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.75rem; }
.prose li { margin-bottom: 0.9rem; }
.prose li::marker { color: var(--graphite); }
.cs-body > .plate { margin-block: var(--space-xl); }
.cs-body .plate.narrow { max-width: 38rem; }
.cs-body .pair { margin-block: var(--space-xl); display: grid; gap: var(--col-gap); }
.cs-body .pair .plate { margin: 0; }
@media (min-width: 700px) { .cs-body .pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.note { max-width: 38rem; margin-block: var(--space-l); padding: 0; }
.note h3 { display: inline-block; font-size: var(--step--1); font-weight: 500; color: #1a1a14; background: var(--ochre); border-radius: 999px; padding: 0.15rem 0.7rem; letter-spacing: 0; margin: 0 0 0.9rem; }
.note p { font-size: var(--step-1); line-height: 1.5; }
.note p:last-child { margin-bottom: 0; }
.next { max-width: 38rem; margin-top: var(--space-xl); padding-top: 0; }
.next p { font-family: var(--sans); color: var(--graphite); font-size: var(--step--1); margin: 0 0 0.5rem; }
.next a { font-family: var(--sans); font-weight: 400; font-size: var(--step-2); letter-spacing: -0.022em; line-height: 1.15; text-decoration: none; }


/* about */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-l); padding-block: var(--space-l) var(--space-xl); }
.about-grid > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .about-grid .about-text { grid-column: 1 / 7; }
  .about-grid .plate { grid-column: 8 / 13; }
}
.about-grid h1 { margin-bottom: var(--space-m); }
.about-grid .big { font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.01em; margin-bottom: var(--space-m); }

/* cv */
.cv { padding-block: var(--space-l) var(--space-xl); }
.cv h1 { margin-bottom: var(--space-s); }
.cv-intro { max-width: 36rem; color: var(--graphite); font-size: var(--step-1); line-height: 1.5; }
.cv-section { margin-top: var(--space-xl); }
.cv-section h2 { font-size: var(--step-3); margin-bottom: var(--space-m); }
.role { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: 0; margin-bottom: clamp(4rem, 9vw, 7.5rem); }
.role > * { grid-column: 1 / -1; }
.role h3 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.role .when { font-family: var(--sans); color: var(--graphite); font-size: 1rem; line-height: 1.5; margin: 0 0 1.5rem; }
.role .focus { margin: 0 0 1rem; max-width: 40rem; }
.role .focus:last-of-type { margin-bottom: 1.75rem; }
.role ul { padding-left: 1.2rem; margin: 0; max-width: 40rem; }
.role li { margin-bottom: 0.85rem; color: var(--graphite); line-height: 1.65; }
.role li:last-child { margin-bottom: 0; }
.role li::marker { color: var(--graphite); }
@media (min-width: 900px) {
  .role .when { grid-column: 1 / 5; grid-row: 1 / span 6; padding-top: 0.55rem; margin: 0; }
  .role h3, .role .focus, .role ul { grid-column: 5 / 12; }
  .role h3 { margin-bottom: 1.25rem; }
}

@media print {
  body::before, .site-header, .site-footer, .actions { display: none; }
  body { background: #fff; color: #000; }
}
