/* =========================================================
   JLM — Jella Mae Calupit · Portfolio
   Palette: black · white · maroon
   ========================================================= */

:root {
  --bg: #0b0a0a;
  --bg-2: #110e0e;
  --surface: #171313;
  --surface-2: #1e1818;
  --line: rgba(243, 238, 233, 0.09);
  --line-strong: rgba(243, 238, 233, 0.18);
  --text: #f3eee9;
  --muted: #a39b96;
  --dim: #6f6764;
  --maroon-deep: #3a0a12;
  --maroon: #7a1424;
  --maroon-2: #9e1b32;
  --maroon-bright: #c62a43;

  --f-display: "Anton", "Impact", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-script: "Pinyon Script", cursive;
  --f-hello: "Great Vibes", cursive;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --space: clamp(3.5rem, 6vw, 5rem); /* vertical padding shared by every section */
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--maroon); color: var(--text); }

/* ---------- Curtain: black panel that slides up on load ---------- */
.curtain { position: fixed; inset: 0; z-index: 1000; background: var(--bg); pointer-events: none; transition: transform .9s cubic-bezier(.76, 0, .24, 1) .1s; }
body.is-loaded .curtain { transform: translateY(-100%); }

/* ---------- Progress & grain ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-bright));
  transform-origin: 0 50%; transform: scaleX(0);
}
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: transform .5s var(--ease), background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(11, 10, 10, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-block: .75rem; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-family: var(--f-display); font-size: 1.7rem; letter-spacing: .04em; }
.nav__logo span { color: var(--maroon-bright); }
.nav__links { display: flex; gap: 2rem; }
.nav__link { position: relative; font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--maroon-bright); opacity: 0; transition: opacity .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { opacity: 1; }

.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.btn--primary { background: var(--maroon); color: var(--text); border: 1px solid var(--maroon); }
.btn--primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--maroon); border-color: var(--maroon); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1fr minmax(300px, 560px) 1fr;
  padding: 6rem var(--gutter) 0; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(122, 20, 36, 0.28), transparent 70%),
    var(--bg);
  /* glyphs sit ~0.153em below the box top, so this puts the letters just under the header (~5.25rem) */
  --word-top: calc(5.25rem - var(--word-size) * 0.153 * var(--word-stretch));
  --word-size: clamp(5.5rem, 20vw, 22rem);
  --word-stretch: 1.17; /* height of the letters (1 = normal) */
  --word-narrow: 1.04;  /* width of the letters (1 = normal) */
}

.hero__bigword {
  position: absolute; left: 0; right: 0; top: var(--word-top); z-index: 0;
  text-align: center; font-family: var(--f-display); font-weight: 400;
  font-size: var(--word-size); line-height: 1.2; letter-spacing: -.01em;
  transform: scale(var(--word-narrow), var(--word-stretch)); transform-origin: 50% 0;
  white-space: nowrap; user-select: none;
  /* layer 1: dark band that sweeps across (parked off to the right); layer 2: maroon fill */
  background:
    linear-gradient(100deg, transparent 40%, rgba(12, 4, 6, .9) 50%, transparent 60%) no-repeat,
    linear-gradient(180deg, var(--maroon-2) 0%, var(--maroon) 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: 0% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__bigword.is-sweeping { animation: sweep 1.8s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes sweep {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}

.hero__photo {
  grid-column: 2; align-self: end; position: relative; z-index: 1;
  height: min(78vh, 760px); width: 100%; margin-bottom: 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse 50% 62% at 50% 40%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 62% at 50% 40%, #000 58%, transparent 100%);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); }

.hero__left, .hero__right { align-self: end; position: relative; z-index: 3; padding-bottom: 1.5rem; }
/* left column starts at the bottom edge of PORTFOLIO so only "Hello, I'm" overlaps it */
.hero__left { grid-column: 1; grid-row: 1; align-self: start; max-width: 420px; margin-top: calc(var(--word-top) + var(--word-size) * 1.02 * var(--word-stretch) - 6rem - 2.2rem); }
.hero__right { grid-column: 3; grid-row: 1; justify-self: end; width: 100%; max-width: 300px; margin-bottom: 4.5rem; }

.hero__hello { font-family: var(--f-hello); font-weight: 400; font-style: italic; font-synthesis: style; font-size: clamp(2.4rem, 3.9vw, 3.7rem); letter-spacing: 0; word-spacing: .2em; color: var(--text); line-height: 1; margin-bottom: .3rem; }
.hero__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; text-transform: uppercase; letter-spacing: .005em; white-space: nowrap; }
.hero__role { margin: .8rem 0 1rem; font-size: .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon-bright); }
.hero__areas { display: block; margin-top: .35rem; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: none; color: var(--muted); }
.hero__desc { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; text-align: justify; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.socials { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.socials a { display: grid; place-items: center; transition: opacity .3s; }
.socials a:hover { opacity: .75; }

.hero__list li { display: flex; gap: .75rem; padding: .55rem 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.hero__list li span { flex: none; display: grid; place-items: center; color: var(--maroon-bright); margin-top: .2rem; }
.hero__loc { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__loc svg { flex: none; color: var(--maroon-bright); }

/* hero intro fade (text only, no movement on hover) */
.hero__left > *, .hero__right > * { opacity: 0; transform: translateY(24px); }
body.is-loaded .hero__left > *, body.is-loaded .hero__right > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.is-loaded .hero__left > :nth-child(2) { transition-delay: .1s; }
body.is-loaded .hero__left > :nth-child(3) { transition-delay: .2s; }
body.is-loaded .hero__left > :nth-child(4) { transition-delay: .3s; }
body.is-loaded .hero__left > :nth-child(5) { transition-delay: .4s; }
body.is-loaded .hero__left > :nth-child(6) { transition-delay: .5s; }
body.is-loaded .hero__right > :nth-child(2) { transition-delay: .2s; }
.hero__photo { opacity: 0; }
body.is-loaded .hero__photo { opacity: 1; transition: opacity 1.4s var(--ease); }


/* ---------- Sections ---------- */
.section { position: relative; padding: var(--space) var(--gutter); }
.section__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--split { justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.section__head--split > div:first-child { display: flex; align-items: baseline; gap: 1rem; }
.section__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; text-transform: uppercase; letter-spacing: .005em; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { padding-top: clamp(1.5rem, 3vw, 2.5rem); } /* sits closer to the Home section */
.about .section__head { margin-bottom: .75rem; }
.work { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) min(540px, 46%); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; } /* text fills the row; slider column is only as wide as the card stack */

/* ---------- About: coverflow slider ---------- */
.slider { position: relative; height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.slider__track { position: absolute; inset: 0 0 2.5rem; }
.slide {
  position: absolute; top: 0; left: 50%; width: min(270px, 64%); height: 100%;
  margin-left: calc(min(270px, 64%) / -2);
  display: flex; flex-direction: column; padding: 1.6rem 1.4rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease), border-color .8s, box-shadow .8s;
  cursor: pointer;
}
.slide.is-active { border-color: rgba(198, 42, 67, .55); box-shadow: 0 25px 50px -20px rgba(122, 20, 36, .6); cursor: default; }
/* icon on its own row, title below it */
.slide__title { margin-bottom: 1rem; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.slide__icon { display: block; width: 2.4rem; height: 2.4rem; margin-bottom: .75rem; color: var(--maroon-bright); }
.slide__icon svg { display: block; width: 100%; height: 100%; }
.slide__text { font-size: .85rem; line-height: 1.6; color: var(--muted); }
.slide__num { margin-top: auto; padding-top: .9rem; font-family: var(--f-mono); font-size: .75rem; color: var(--maroon-bright); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: .5rem; display: flex; justify-content: center; gap: .45rem; }
.slider__dot { width: 7px; height: 7px; padding: 0; border-radius: 999px; background: var(--line-strong); transition: width .4s var(--ease), background .4s; }
.slider__dot.is-active { width: 22px; background: var(--maroon-bright); }
.about__lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 2.2rem); line-height: 1.25; margin-bottom: .9rem; }
.about__lead em { color: var(--maroon-bright); }
.about__text > p:not(.about__lead) { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.1rem; text-align: justify; }
.about__text strong { color: var(--text); font-weight: 600; }


/* ---------- Work ---------- */
/* one row: title left, tabs centered, "See more" right */
.work__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-bottom: clamp(1rem, 2vw, 1.75rem); } /* same as the gap between card rows */
.work__bar .section__title { grid-column: 1; }
.work__bar .filters { grid-column: 2; }
.see-more { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.see-more__arrow { color: var(--maroon-bright); font-size: 1.1rem; }
.see-more:hover { color: var(--text); }
/* projects page: title left, tabs right */
.work__bar--page { grid-template-columns: 1fr auto; }
.work__bar--page .filters { grid-column: 2; }
.work--page { padding-top: 5.25rem; min-height: 80vh; } /* just clears the fixed header */
.back-link { display: inline-block; margin-bottom: .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.back-link:hover { color: var(--maroon-bright); }

.filters { display: flex; gap: .4rem; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.filter { padding: .55rem 1.1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); transition: background .3s, color .3s; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.project.is-hidden { display: none; }
.project.is-entering { animation: projIn .6s var(--ease) both; }
@keyframes projIn { from { opacity: 0; } }
.project__card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: .75rem;
  transition: border-color .3s;
}
.project__card:hover { border-color: rgba(198, 42, 67, .55); }
.project__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.project__info { padding: 1rem .4rem .4rem; }
.project__title { display: flex; flex-wrap: wrap; align-items: center; column-gap: .55rem; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.project__sep { color: var(--maroon-bright); font-family: var(--f-body); font-weight: 300; } /* full title height */
.project__type { font-family: var(--f-body); font-size: .8rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); } /* vertically centred against the title */
/* two lines max; "… Read more" sits over the end of the second line */
.project__desc { position: relative; margin-top: .55rem; font-size: .85rem; line-height: 1.6; color: var(--muted); max-height: calc(2 * 1.6em); overflow: hidden; }
.project__more { position: absolute; right: 0; bottom: 0; padding-left: 2.5rem; background: linear-gradient(90deg, transparent, var(--surface) 2rem); color: var(--muted); }
.project__more u { color: var(--maroon-bright); text-decoration: none; font-weight: 600; }
.project__card:hover .project__more u { text-decoration: underline; text-underline-offset: 3px; }
.project__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.project__tags li { padding: .25rem .6rem; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .7rem; letter-spacing: .03em; color: var(--text); }

/* --- CSS mockups (project thumbnails) --- */
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mock__bar { flex: none; display: flex; align-items: center; gap: 4px; padding: 7px 9px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.mock__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mock__bar b { margin-left: 8px; height: 8px; width: 45%; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.mock__body { position: relative; flex: 1; overflow: hidden; }
.ln { display: block; height: 6px; border-radius: 3px; background: rgba(243, 238, 233, .18); margin-bottom: 6px; }
.ln--t { height: 12px; background: var(--text); }
.ln--m { background: var(--maroon-bright); }

.mock--shop { background: linear-gradient(135deg, #1b0f11, #0b0a0a); }
.mock--shop .mock__body { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 10px; padding: 14px; }
.mock--shop .hero-txt { align-self: center; }
.mock--shop .hero-txt .ln--t { width: 90%; }
.mock--shop .hero-txt .btn-s { display: inline-block; margin-top: 8px; width: 50px; height: 14px; border-radius: 7px; background: var(--maroon-bright); }
.mock--shop .product { position: relative; display: grid; place-items: center; }
.mock--shop .product::before { content: ""; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--maroon-2), var(--maroon-deep)); box-shadow: 0 10px 30px rgba(198, 42, 67, .35); }
.mock--shop .product::after { content: ""; position: absolute; width: 30%; height: 50%; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, #f3eee9, #b9b1ab); }
.mock--shop .row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock--shop .row span { height: 34px; border-radius: 6px; background: rgba(255, 255, 255, .06); }

.mock--dash { background: #0e0c0c; }
.mock--dash .mock__body { display: grid; grid-template-columns: 22% 1fr; }
.mock--dash .side { background: var(--maroon-deep); padding: 12px 8px; }
.mock--dash .side .ln { background: rgba(243, 238, 233, .22); }
.mock--dash .main { padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.mock--dash .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock--dash .kpis span { height: 28px; border-radius: 6px; background: rgba(255, 255, 255, .06); border-left: 3px solid var(--maroon-bright); }
.mock--dash .chart { display: flex; align-items: flex-end; gap: 6%; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.mock--dash .chart span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--maroon-bright), var(--maroon)); height: var(--h); }

.mock--phone { background: radial-gradient(circle at 50% 120%, var(--maroon) 0%, #1a0b0e 55%, #0b0a0a 100%); }
.mock--phone .mock__body { display: flex; justify-content: center; align-items: center; gap: 8%; }
.mock--phone .phone { width: 28%; aspect-ratio: 9 / 18; border-radius: 14px; border: 3px solid #2a2222; background: #0b0a0a; padding: 10px 7px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.mock--phone .phone:nth-child(2) { transform: translateY(14px); }
.mock--phone .phone .art { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--maroon-bright), var(--maroon-deep)); margin-bottom: 4px; }
.mock--phone .phone .ln { height: 4px; margin-bottom: 2px; }
.mock--phone .phone .play { margin: auto auto 0; width: 18px; height: 18px; border-radius: 50%; background: var(--text); }

.mock--brand { background: #efe8e1; color: var(--bg); }
.mock--brand .mock__bar { background: rgba(0, 0, 0, .05); }
.mock--brand .mock__bar i, .mock--brand .mock__bar b { background: rgba(0, 0, 0, .15); }
.mock--brand .mock__body { display: grid; place-items: center; align-content: center; gap: 12px; }
.mock--brand .word { font-family: var(--f-serif); font-style: italic; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--maroon); line-height: 1; }
.mock--brand .word small { display: block; font-family: var(--f-body); font-style: normal; font-size: .55rem; letter-spacing: .35em; text-align: center; color: var(--bg); margin-top: 6px; }
.mock--brand .sw { display: flex; gap: 6px; }
.mock--brand .sw span { width: 18px; height: 18px; border-radius: 50%; }

.mock--app { background: #121010; }
.mock--app .mock__body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.mock--app .col { background: rgba(255, 255, 255, .035); border-radius: 8px; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.mock--app .col > .ln { width: 50%; height: 5px; }
.mock--app .task { border-radius: 6px; background: var(--surface-2); padding: 6px; border-top: 2px solid var(--dim); }
.mock--app .task.m { border-top-color: var(--maroon-bright); }
.mock--app .task .ln { height: 4px; margin-bottom: 4px; }
.mock--app .task .ln:last-child { width: 60%; margin: 0; }

.mock--travel { background: linear-gradient(180deg, #2a0c12 0%, #0b0a0a 100%); }
.mock--travel .mock__body { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.mock--travel .sun { position: absolute; right: 14%; top: 14%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--maroon-bright), var(--maroon) 60%, transparent 70%); }
.mock--travel .hills { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background:
  radial-gradient(ellipse 60% 100% at 20% 100%, #1a0a0d 60%, transparent 61%),
  radial-gradient(ellipse 70% 90% at 85% 100%, #240c11 60%, transparent 61%); }
.mock--travel .head { position: relative; width: 55%; }
.mock--travel .head .ln--t { height: 14px; }
.mock--travel .search { position: relative; margin-top: 10px; width: 62%; height: 18px; border-radius: 9px; background: rgba(243, 238, 233, .9); display: flex; justify-content: flex-end; padding: 3px; }
.mock--travel .search::after { content: ""; width: 26%; border-radius: 6px; background: var(--maroon); }


/* ---------- Skills · Process · Quote ---------- */
.info { display: grid; grid-template-columns: 1.6fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info__col { padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter); border-right: 1px solid var(--line); }
.info__title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 2rem; }
.info__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon-bright); margin-bottom: 1rem; }

.edu { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.edu li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.edu li:last-child { margin-bottom: 0; }
.edu h4 { font-size: .98rem; font-weight: 600; }
.edu p { font-size: .82rem; color: var(--muted); }
.edu li > span { flex: none; font-family: var(--f-mono); font-size: .75rem; color: var(--maroon-bright); padding-top: .2rem; }
/* About: education in two columns, most recent first */
.about__edu-title { margin: 1.75rem 0 1rem; } /* same style as the "Tech Stack" heading */
.edu--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding: 0; border: 0; }
.edu--cols li { display: block; margin: 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--maroon-bright); border-radius: 10px; }
.edu--cols li > span { display: block; padding: .6rem 0 0; }
.edu--cols h4 { line-height: 1.35; margin-bottom: .2rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--maroon); border-color: var(--maroon); color: var(--text); }

.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: calc(2.2rem + 1rem + 22px); top: 22px; bottom: 30px; width: 1px; background: var(--maroon); }
.step { position: relative; display: grid; grid-template-columns: 2.2rem 44px 1fr; gap: 1rem; align-items: start; padding-bottom: 1.3rem; }
.step:last-child { padding-bottom: 0; }
.step__num { font-family: var(--f-mono); font-size: .95rem; color: var(--maroon-bright); padding-top: .7rem; }
.step__icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--maroon); background: var(--bg); display: grid; place-items: center; color: var(--text); }
.step h4 { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon-bright); padding-top: .2rem; }
.step p { font-size: .85rem; color: var(--muted); }

/* technologies: logo + name tiles */
.info__col--tech { border-right: 1px solid var(--line); }
.info__col:last-child { border-right: 0; }
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.25rem, 2.5vw, 2rem); align-items: start; } /* two columns of categories */
.stack__col { display: grid; gap: 1.5rem; align-content: start; }
.stack__group .info__label { margin-bottom: .7rem; }
.tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; } /* same-size tiles, as many per row as fit */
.tech__item { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; transition: border-color .3s; }
.tech__item:hover { border-color: rgba(198, 42, 67, .5); }
.tech__icon { flex: none; width: 22px; height: 22px; object-fit: contain; }
.tech__badge { flex: none; width: 22px; height: 22px; border-radius: 5px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--f-body); font-weight: 700; font-size: .78rem; }

.quote {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(198, 42, 67, .35), transparent 50%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 75%, #1a0509 100%);
}
.quote::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(0, 0, 0, .6) 1px, transparent 1px); background-size: 4px 4px; pointer-events: none; }
.quote > * { position: relative; }
.quote__text { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.35; margin: 1.25rem 0 1.5rem; max-width: 16ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter); border-bottom: 1px solid var(--line); overflow: hidden; }
.contact__title { font-family: var(--f-body); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.15; text-transform: uppercase; margin-bottom: 1.25rem; }
/* paper plane that flies a looping path, leaving a dashed trail (animated inside the SVG in index.html) */
.contact__plane { display: inline-block; width: 3.2em; height: 1.6em; margin: -.45em 0 -.45em .2em; vertical-align: -.05em; /* negative margins keep it from stretching the line */ color: var(--maroon-bright); }
.contact__plane svg { display: block; width: 100%; height: 100%; overflow: visible; }
.contact__intro p { color: var(--muted); font-size: .92rem; max-width: 40ch; text-align: justify; }
.contact__intro, .contact__reach { align-self: center; }

.contact__list li { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.contact__list li:first-child { border-top: 1px solid var(--line); }
.contact__list a { transition: color .3s; word-break: break-word; }
.contact__list a:hover { color: var(--maroon-bright); }
.contact__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon-bright); margin-bottom: 1rem; }
.contact__brand { flex: none; }
.contact .quote { border-radius: calc(var(--radius) + 6px); padding: clamp(1.75rem, 3vw, 2.5rem); } /* stretches to the height of the contact content */
.contact .quote__mark { position: absolute; top: .75rem; right: 1.25rem; font-family: var(--f-serif); font-size: 5rem; line-height: 1; color: var(--text); opacity: .35; }
.contact .quote__text { margin: 0; max-width: 20ch; }
/* ---------- Footer ---------- */
.footer { padding: 1.5rem var(--gutter) 2rem; }
.footer__row { display: flex; justify-content: center; text-align: center; font-size: .82rem; color: var(--muted); }

/* floating back-to-top arrow, appears after scrolling down */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 100;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maroon); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--maroon-bright); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 4, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(980px, 100%); max-height: calc(100svh - 2rem); overflow-y: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 6; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background .3s; }
.modal__close:hover { background: var(--maroon); }
.modal__media { position: relative; min-height: 320px; background: var(--bg); }
.modal__content { padding: clamp(1.5rem, 3vw, 2.5rem); }
.modal__cat { font-family: var(--f-mono); font-size: .75rem; color: var(--maroon-bright); text-transform: uppercase; letter-spacing: .08em; }
.modal__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; line-height: 1; margin: .5rem 0 1rem; }
.modal__desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.modal__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; border-block: 1px solid var(--line); margin-bottom: 1.25rem; }
.modal__meta span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.modal__meta p { font-size: .9rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .contact .quote { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
    background: var(--bg); clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem); transition: clip-path .7s var(--ease);
  }
  .nav__links.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); }
  .nav__link { font-family: var(--f-display); font-size: 2.6rem; color: var(--text); }
  .nav__burger { display: block; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 5rem; }
  .hero__bigword { top: 5rem; font-size: 21.5vw; }
  .hero__photo { grid-column: 1; grid-row: 1; height: min(68vh, 560px); margin: 1.5rem auto 0; max-width: 560px; }
  .hero__left { grid-column: 1; grid-row: 2; align-self: start; max-width: none; margin-top: -3rem; }
  .hero__name { font-size: clamp(1.9rem, 9vw, 3rem); }
  .hero__right { grid-column: 1; grid-row: 3; justify-self: stretch; max-width: none; padding-bottom: 3.5rem; margin-bottom: 0; }

  .about__grid { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .info, .contact { grid-template-columns: 1fr; }
  .info__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .tech { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .edu--cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stack { grid-template-columns: 1fr; }
  .work__bar { grid-template-columns: 1fr; justify-items: center; margin-top: 0; }
  .work__bar .section__title, .work__bar .filters, .see-more { grid-column: 1; }
  .work__bar .section__title { justify-self: start; }
  .see-more { justify-self: center; }
  .projects { grid-template-columns: 1fr; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; }
  .filter { flex: 1; padding-inline: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
