/* Manny Dorticos — design 3, editorial monochrome. Vanilla CSS, mobile first. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('assets/fonts/Sora-300-800.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/JetBrainsMono-500.woff2') format('woff2'); }

:root {
  --bg: #e8e8e8;
  --paper: #f6f6f6;
  --ink: #161616;
  --ink-2: rgba(22, 22, 22, 0.62);
  --ink-3: rgba(22, 22, 22, 0.36);
  --line: rgba(22, 22, 22, 0.12);
  --night: #111111;
  --night-2: #1b1b1b;
  --on-night: #f2f2f2;
  --on-night-2: rgba(242, 242, 242, 0.58);
  --gutter: 20px;
  --display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #3d7bff; outline-offset: 3px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; font: 600 13px var(--display); text-decoration: none; border-radius: 999px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1.45; letter-spacing: 0.02em; text-transform: uppercase; }
.sq { display: inline-block; width: 6px; height: 6px; background: currentColor; margin-right: 10px; vertical-align: 1px; }
.dim { opacity: 0.32; }
.label { display: flex; align-items: center; color: var(--ink); }

/* Column grid */
.grid-lines { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.grid-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.grid-lines span:nth-child(1) { left: var(--gutter); }
.grid-lines span:nth-child(2) { right: var(--gutter); }
.grid-lines span:nth-child(3), .grid-lines span:nth-child(4) { display: none; }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.wordmark, .menu { color: #fff; mix-blend-mode: difference; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.wm-mark { width: 18px; height: 18px; border-radius: 50%; background: currentColor; box-shadow: -7px 0 0 -2px currentColor; margin-left: 6px; }
.menu { display: none; gap: 26px; }
.menu a { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; padding: 6px 0; position: relative; }
.menu a::before { content: "+ "; opacity: 0.6; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.menu a:hover::after { transform: scaleX(1); }
.top-cta { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.top-cta-text { display: none; text-align: right; font: 500 10.5px/1.45 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-2); max-width: 190px; }
.top-cta-text b { color: var(--ink); font-weight: 500; }
.top-cta-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform 0.4s var(--ease); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 8px 24px -10px rgba(0,0,0,.6); }
.top-cta:hover .top-cta-dot { transform: rotate(90deg) scale(1.06); }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: 0 var(--gutter) 22px; display: grid; grid-template-columns: 1fr; align-content: end; gap: 22px; }
.hero-visual { position: absolute; left: 0; right: 0; top: 0; height: 56svh; background: var(--night); overflow: hidden; z-index: -1; }
.hero-visual canvas { width: 100%; height: 100%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 40%, transparent 40%, rgba(0,0,0,.55)); pointer-events: none; }
.hero-visual-caption { position: absolute; left: var(--gutter); bottom: 16px; color: rgba(255,255,255,.55); z-index: 1; display: none; }
.hero-title { position: relative; z-index: 2; color: #fff; mix-blend-mode: difference; font-weight: 800; text-transform: uppercase; font-size: clamp(2.9rem, 13.2vw, 9.6rem); line-height: 0.86; letter-spacing: -0.055em; margin-top: calc(56svh - 1.75em); }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line-in { display: block; }
.line-sub { font-size: 0.4em; letter-spacing: -0.04em; line-height: 1; margin-top: 0.25em; }
.hero-meta { color: var(--ink-2); display: flex; align-items: flex-start; }
.hero-meta .sq { margin-top: 4px; color: var(--ink); }
.hero-lede { font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink-3); max-width: 30ch; font-weight: 400; }
.hero-lede .ink { color: var(--ink); }
.hero-actions { display: grid; gap: 10px; }
.hero-strip { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ink-3); padding-top: 8px; }

/* Pills */
.pill { position: relative; display: flex; align-items: center; justify-content: center; height: 58px; padding: 0 28px; border-radius: 999px; overflow: hidden; text-decoration: none; font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; transition: transform 0.25s var(--ease), background-color 0.25s; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-light { background: var(--paper); color: var(--ink); }
.pill-light:hover { background: #fff; }
.pill-dark:hover { background: #000; }
.pill:active { transform: scale(0.985); }
.pill-t { display: block; position: relative; line-height: 58px; transition: transform 0.5s var(--ease); }
.pill-t::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 100%; text-align: center; }
.pill:hover .pill-t, .pill:focus-visible .pill-t { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .pill-t { transition: none; } .pill:hover .pill-t { transform: none; } }

/* Menu button + full-screen overlay (below desktop) */
.menu-btn { margin-left: auto; appearance: none; background: none; border: 0; color: #fff; mix-blend-mode: difference; cursor: pointer; padding: 10px 4px; letter-spacing: 0.04em; }
.overlay { position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--on-night); display: flex; flex-direction: column; justify-content: space-between; padding: 92px var(--gutter) 28px; }
.overlay[hidden] { display: none; }
.overlay-nav { display: grid; }
.overlay-nav a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; font-size: clamp(2.6rem, 12vw, 5rem); line-height: 1.02; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.overlay-nav a .mono { color: var(--on-night-2); letter-spacing: 0.04em; transform: translateY(-1.2em); }
.overlay-foot { display: grid; gap: 10px; color: var(--on-night-2); }
.overlay-foot a { text-decoration: none; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-btn, body.menu-open .wordmark { mix-blend-mode: normal; color: var(--on-night); }

/* Contact status */
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgba(22,22,22,.4); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,22,22,.35); } 80%, 100% { box-shadow: 0 0 0 10px rgba(22,22,22,0); } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* Bands */
.band { position: relative; z-index: 1; padding: 96px var(--gutter); border-top: 1px solid var(--line); }
.band::before, .band::after { content: "+"; position: absolute; top: -9px; font: 300 16px/1 var(--display); color: var(--ink-3); }
.band::before { left: calc(var(--gutter) - 4.5px); }
.band::after { right: calc(var(--gutter) - 4.5px); }
.band-head { display: grid; gap: 22px; margin-bottom: 56px; }
.display-2 { font-weight: 800; text-transform: uppercase; font-size: clamp(2.3rem, 6.4vw, 5.4rem); line-height: 0.9; letter-spacing: -0.05em; max-width: 14ch; }

/* About */
.about { display: grid; gap: 48px; }
.about-body { display: grid; gap: 28px; }
.reveal-words { font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 3.5vw, 3.35rem); line-height: 1.0; letter-spacing: -0.045em; }
.reveal-words .w { opacity: 0.16; transition: opacity 0.2s linear; }
.no-js .reveal-words .w, .reveal-words.done .w { opacity: 1; }
.about-note { max-width: 46ch; color: var(--ink-2); }
.about-card { background: var(--paper); padding: 22px; display: grid; gap: 22px; align-self: start; }
.path { display: grid; }
.path li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.path-year { color: var(--ink-3); }
.path-role { font-weight: 600; letter-spacing: -0.01em; }
.path-org { color: var(--ink-2); }

/* Work */
.case { display: grid; gap: 28px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.case-text { display: grid; gap: 14px; align-content: start; }
.case-num { color: var(--ink-3); }
.case-title { font-weight: 800; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: 0.88; letter-spacing: -0.055em; }
.case-kind { color: var(--ink-2); }
.case-desc { font-size: 1.08rem; line-height: 1.55; max-width: 44ch; letter-spacing: -0.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: rgba(22,22,22,.07); padding: 6px 10px; border-radius: 999px; }
.text-link { justify-self: start; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { opacity: 0.6; }
.case-visual { position: relative; background: var(--night); color: var(--on-night); aspect-ratio: 642 / 411; overflow: hidden; }
.case-visual > svg { width: 100%; height: 100%; }
.case-visual figcaption { position: absolute; left: 16px; bottom: 14px; color: var(--on-night-2); }
.svg-t { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; fill: rgba(242,242,242,.7); }
.svg-t.dark { fill: #161616; font-size: 13px; }
.themes { position: absolute; inset: 0; display: grid; align-content: center; padding: 6% 7%; gap: 0; background: linear-gradient(160deg, #1d1d1d, #0d0d0d); }
.theme { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-weight: 700; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(1.25rem, 2.6vw, 2.3rem); line-height: 0.95; }
.theme:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.theme .mono { color: var(--on-night-2); font-size: 10.5px; letter-spacing: 0.06em; }
.ports { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 8% 7%; background: radial-gradient(90% 80% at 50% 50%, #222, #0e0e0e); }
.port-row { display: flex; gap: 10px; justify-content: center; }
.port { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 16px; color: var(--on-night); }
.port-people .port { border-style: dashed; color: var(--on-night-2); }
.port-core { display: grid; place-content: center; text-align: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); position: relative; }
.port-core::before, .port-core::after { content: ""; position: absolute; left: 50%; width: 1px; height: 16px; background: rgba(255,255,255,.35); }
.port-core::before { top: -17px; }
.port-core::after { bottom: -17px; }
.port-core .mono { color: var(--on-night-2); }
.port-core b { font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 0.9; }

/* Experience (dark band) */
.band-dark { background: var(--night); color: var(--on-night); border-top: 0; }
.band-dark .label, .band-dark::before, .band-dark::after { color: var(--on-night-2); }
.band-dark .label .sq { color: var(--on-night); }
.xp li { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); transition: background-color 0.3s; }
.xp li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.xp-when { color: var(--on-night-2); }
.xp-role { font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1; }
.xp-role span { display: block; color: var(--on-night-2); font-size: 0.62em; letter-spacing: -0.02em; margin-top: 6px; }
.xp-desc { color: var(--on-night-2); max-width: 54ch; }
.xp-edu { margin-top: 32px; color: var(--on-night-2); }

/* Credentials */
.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1) 64px; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 48s linear infinite; }
.marquee-track span { font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }
.cred-cols { display: grid; gap: 40px; }
.cred-cols .label { color: var(--ink-2); margin-bottom: 14px; }
.cred-list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: -0.01em; }
.cred-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.cred-list a:hover { background-size: 100% 1px; }

/* Contact */
.contact { display: grid; gap: 34px; }
.contact-title { font-weight: 800; text-transform: uppercase; font-size: clamp(3.6rem, 14vw, 13rem); line-height: 0.84; letter-spacing: -0.06em; }
.contact-row { display: grid; gap: 26px; }
.contact-mail { font-weight: 600; font-size: clamp(1.3rem, 3vw, 2.6rem); letter-spacing: -0.035em; text-decoration: none; justify-self: start; border-bottom: 2px solid currentColor; line-height: 1.15; overflow-wrap: anywhere; }
.contact-mail:hover { opacity: 0.6; }
.contact-actions { display: grid; gap: 10px; }

/* Footer */
.foot { position: relative; z-index: 1; padding: 0 var(--gutter); overflow: hidden; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; color: var(--ink-2); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 22px; }
.foot-row { flex-wrap: wrap; }
.foot-mark { font-weight: 800; text-transform: uppercase; font-size: 19.4vw; line-height: 0.76; letter-spacing: -0.07em; margin: 0 0 -0.04em -0.04em; white-space: nowrap; }

/* Tablet and up */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .grid-lines span:nth-child(3) { display: block; left: 50%; }
  .hero-actions, .contact-actions { grid-template-columns: 1fr 1fr; }
  .contact-actions { grid-template-columns: repeat(3, auto); justify-content: start; }
  .cred-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .xp li { grid-template-columns: 160px minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: baseline; }
  .xp li:hover { background: var(--night-2); }
}

/* Desktop: the two-column editorial hero */
@media (min-width: 1024px) {
  .grid-lines span:nth-child(4) { display: block; left: 25%; }
  .menu { display: flex; }
  .menu-btn, .overlay { display: none !important; }
  .hero-visual-caption { display: block; }
  .top-cta-text { display: block; }
  .top-cta-dot { width: 56px; height: 56px; }
  .hero { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-content: center; padding-top: 96px; padding-bottom: 26px; row-gap: 28px; }
  .hero-visual { right: auto; width: 41%; height: 100%; }
  .hero-title { grid-column: 1 / -1; margin-top: 0; font-size: clamp(5rem, 10.4vw, 10.5rem); }
  .line-sub { padding-left: calc(50% + var(--gutter) / 2); font-size: 0.36em; }
  .hero-meta { grid-column: 2; grid-row: 1; align-self: end; }
  .hero-title { grid-row: 2; }
  .hero-lede { grid-column: 2; grid-row: 3; }
  .hero-actions { grid-column: 1 / -1; grid-row: 4; column-gap: var(--gutter); margin-top: 12px; }
  .hero-strip { grid-column: 2; grid-row: 5; }
  .about { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .about-card { position: sticky; top: 110px; max-width: 420px; }
  .band-head { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: start; }
  .band-head .display-2 { grid-column: 2; }
  .case { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); padding: 56px 0 72px; }
  .case-text { position: sticky; top: 110px; padding-right: 8%; }
  .band { padding: 140px var(--gutter); }
}

/* Credentials: 4th column + disclosure */
.cred-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.cred-more summary::-webkit-details-marker { display: none; }
.cred-more summary:hover { color: var(--ink); }
.cred-more .cred-more-open, .cred-more[open] .cred-more-closed { display: none; }
.cred-more[open] .cred-more-open { display: inline; }
@media (min-width: 760px) { .cred-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .cred-cols { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
