/* ===================================================================
   Luzia — Portfolio (recreation of luzia.framer.website)
   Mobile-first. Breakpoints: base (phone) → 810 (tablet) → 1200 (desktop)
   =================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --ink: #111111;
  --ink-2: #1f1f1f;
  --muted: #71767f;
  --muted-2: #8a8f97;
  --line: rgba(17, 17, 17, 0.08);
  --line-2: rgba(17, 17, 17, 0.12);
  --dark: #0b0b0b;
  --dark-soft: #141414;
  --dark-card: #1a1a1a;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-muted: #8b8f96;
  --accent: #7430f7;
  --green: #00c047;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --pad: 20px;              /* page side padding (phone) */
  --maxw: 1160px;
  --sec-py: 72px;          /* section vertical padding (phone) */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  padding: 14px 24px; border-radius: 16px;
  cursor: pointer; border: 0;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.btn--dark:hover { transform: translateY(-2px); background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s, transform .35s var(--ease);
}
.site-header.header--hidden { transform: translateY(-100%); }
.site-header.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.nav { display: none; gap: 34px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); transition: opacity .2s; }
.nav a:hover { opacity: .55; }
.header__cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px var(--pad) 30px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.mobile-menu:not([hidden]) { animation: menuIn .35s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-menu:not([hidden]) { animation: none; } }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 17px; padding: 10px 4px; color: var(--ink); }
.site-header.menu-open {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 34px; }
.hero__inner { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  font-size: 16px; color: #6c7179; letter-spacing: -0.02em;
  padding: 9px 16px 9px 13px; border: 1px solid var(--line-2); border-radius: var(--pill);
  background: #fff;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(0,192,71,.16); }
.hero__title { font-size: 37px; line-height: 1.1; letter-spacing: -0.03em; }
.hero__fun { font-style: italic; font-weight: 700; }
.hero__smiley { display: inline-block; width: .68em; height: .68em; vertical-align: -0.06em; margin-left: 2px; }
.hero__note { margin: 0 0 0 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1.5; }
/* Phone-only hero refinements — kept off desktop/tablet ranges */
@media (max-width: 809px) {
  .hero__title { font-size: clamp(26px, 8vw, 37px); line-height: 1.12; }
  .hero__smiley { width: .82em; height: .82em; vertical-align: -0.14em; margin-left: 4px; }
  .hero__note { display: block; margin: 5px 0 0; line-height: 1.4; }
}
/* Desktop-only line break before "to be fun"; flows naturally below 1200 */
@media (max-width: 1199px) { .hero__br { display: none; } }
.hero__bio { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 44ch; margin-bottom: 22px; }
.hero__photo { margin-top: 10px; aspect-ratio: 1 / 1.16; overflow: hidden; }
.hero__photo img { width: 151.2%; max-width: 151.2%; margin-left: -25.6%; height: auto; transform-origin: center center; will-change: transform; }
.hero__blur {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%; min-height: 120px; z-index: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0.5) 72%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0.5) 72%, transparent 100%);
}

/* ---------- Section shell ---------- */
.section { padding-block: var(--sec-py); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 20px; }
.section-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.04em; }
.eyebrow { display: inline-block; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.eyebrow--light { color: var(--dark-muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); background: #f1f1f1; padding: 12px 20px; border-radius: 14px; transition: background .2s var(--ease); }
.link-arrow:hover { background: #e9e9e9; }

/* ---------- Featured works ---------- */
.works__grid { display: flex; flex-direction: column; gap: 16px; }
.work-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 7 / 5; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover img { transform: scale(1.04); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 42%); }
.work-card__meta { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.work-card__title { color: #fff; font-size: 24px; margin-bottom: 10px; }
.work-card__desc { display: none; }

/* Works page — intro heading + "more projects" grid */
.works-page-slider { padding-top: 40px; }
.projects__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* ---------- Project detail page ---------- */
.project-hero { width: 100%; height: 56vh; min-height: 320px; overflow: hidden; position: sticky; top: 0; z-index: 1; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center center; will-change: transform; }
.project-body { position: relative; z-index: 2; margin-top: -28vh; background: var(--bg); border-radius: 30px 30px 0 0; padding-top: 72px; padding-bottom: 80px; box-shadow: 0 -20px 50px rgba(0,0,0,0.06); }
/* Pure-text narrative block */
.project-text { margin: 48px 0; max-width: 66ch; }
.project-text p { color: var(--ink-2); font-size: 18px; line-height: 2.1; }
.project-text p + p { margin-top: 18px; }
.more-works__grid { margin-bottom: 8px; }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 80px; }
.project-title { font-size: 34px; letter-spacing: -0.03em; }
.project-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); font-size: 17px; transition: background .2s var(--ease); }
.project-close:hover { background: var(--bg-soft); }
.project-meta { display: flex; flex-direction: column; gap: 24px; }
.project-meta__row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.project-meta__label { color: var(--muted); font-size: 18px; }
.project-meta__value { color: var(--ink-2); font-size: 18px; line-height: 2.05; }
.project-meta__value p + p { margin-top: 14px; }
.project-live { align-self: flex-start; margin-top: 6px; }
.project-gallery { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.project-gallery img { cursor: zoom-in; }

.project-video { display: flex; justify-content: center; margin-top: 52px; }
.project-video video { width: min(308px, 60%); border-radius: 24px; display: block; }
.project-embed { margin-top: 20px; }
.project-embed iframe, .embed-poster { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); display: block; background: var(--bg-soft); }
.embed-poster { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.embed-poster > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.embed-poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.1); transition: background .3s var(--ease); }
.embed-poster:hover::after { background: rgba(0,0,0,0.24); }
.embed-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 76px; height: 54px; border-radius: 15px; background: rgba(15,15,15,0.85);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.embed-poster:hover .embed-play { transform: translate(-50%, -50%) scale(1.08); }
.embed-play::before { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.project-video + .project-embed { margin-top: 52px; }

/* ---------- Lightbox (image full-page preview) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  opacity: 0; pointer-events: none; cursor: zoom-out;
  transition: opacity .3s var(--ease);
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 92vh; width: auto; height: auto;
  border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  transform: scale(.97); transition: transform .3s var(--ease);
}
.lightbox.show img { transform: none; }
/* Rotated to fit the opposite device orientation — self-centered so it stays
   put even when the pre-rotation box is wider than the viewport. */
.lightbox.show img.rotated {
  position: fixed; top: 50%; left: 50%;
  max-width: 92vh; max-height: 92vw;
  transform: translate(-50%, -50%) rotate(90deg);
}
.project-gallery__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.project-gallery img { width: 100%; border-radius: var(--r-lg); display: block; background: var(--bg-soft); }
.project-gallery__row img { aspect-ratio: 16 / 9; object-fit: cover; }
.project-gallery__pair { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
.project-gallery__pair img { aspect-ratio: auto; }
.project-gallery__full { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Project detail sections (keyword left, groups right) ---------- */
.project-section { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
.project-section__keyword { font-size: clamp(32px, 5vw, 40px); letter-spacing: -0.03em; }
.project-section__groups { display: flex; flex-direction: column; gap: 66px; }
.project-group h3 { font-size: 22px; margin-bottom: 14px; }
.project-group p { color: var(--ink-2); font-size: 18px; line-height: 2.1; }
.project-group p + p { margin-top: 14px; }
.project-subgroup + .project-subgroup, .project-group p + .project-subgroup, .project-group h3 + .project-subgroup { margin-top: 26px; }
.project-subgroup h4 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.more-works__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Project page open transition: image loads first, then the white content fades + slides up */
@keyframes projHeroIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes projBodyIn { from { opacity: 0; transform: translateY(64px); } to { opacity: 1; transform: translateY(0); } }
.project-hero img { animation: projHeroIn .7s var(--ease) both; }
.project-body { animation: projBodyIn .9s var(--ease) .42s both; }

/* Floating chapter nav (project pages) */
.chapters {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  display: flex; flex-direction: column; gap: 2px; min-width: 152px; padding: 10px;
  background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,0.14);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.chapters.show { opacity: 1; transform: none; pointer-events: auto; }
.chapters__title { font-size: 12px; color: var(--muted); padding: 4px 12px 8px; }
.chapters__item { font-size: 13.5px; color: var(--muted); padding: 7px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.chapters__item:hover { color: var(--ink); background: var(--bg-soft); }
.chapters__item.is-active { color: var(--ink); background: var(--bg-soft); font-weight: 500; }

/* Project narrative blocks (Challenge / Approach / Outcome) */
.project-blocks { margin-top: 52px; display: flex; flex-direction: column; gap: 40px; }
.project-blocks .project-meta__label { color: var(--ink); font-weight: 500; }
@media (max-width: 809px) { .chapters { display: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-card .tag {
  font-size: 13px; color: #fff; padding: 6px 12px; border-radius: var(--pill);
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(6px);
}

/* ---------- Bento (testimonial / stats) ---------- */
.bento-section { padding-top: 8px; }
.bento { display: flex; flex-direction: column; gap: 16px; }
.bento__col { display: flex; flex-direction: column; gap: 16px; }
.bento__col--right .trusted-card { flex: 1; }
.bento-card {
  background: var(--bg-soft); border-radius: var(--r-lg); padding: 26px;
  box-shadow: 0 4px 14px rgba(17,17,17,0.04), 0 24px 48px rgba(17,17,17,0.08);
}

/* Feature card: image on top, text block (title + description) at the bottom-left */
.feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature__media { flex: 1 1 auto; min-height: 160px; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__body { padding: 22px 24px 24px; }
.feature__head { display: flex; align-items: center; gap: 8px; }
.feature__badge { font-size: 18px; line-height: 1; }
.feature__title { font-size: 20px; letter-spacing: -0.02em; }
.feature__desc { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 8px; }

.quote { background: var(--dark); color: #fff; padding: 34px; display: flex; flex-direction: column; }
.quote__mark { font-size: 80px; line-height: .4; height: 40px; color: #fff; font-weight: 600; }
.quote__text { font-size: clamp(20px, 5vw, 24px); line-height: 1.32; letter-spacing: -0.02em; color: #fff; margin: 22px 0 30px; }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__name { display: block; font-weight: 500; font-size: 15px; }
.quote__role { display: block; font-size: 14px; color: var(--dark-muted); }

.trusted-card { position: relative; padding: 30px 22px 22px; display: flex; flex-direction: column; }
.trusted-pill {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  background: #7cc98b; color: #fff; font-size: 14px; font-weight: 500;
  padding: 5px 16px 5px 6px; border-radius: var(--pill); white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.trusted-pill__avatars { height: 30px; width: auto; border-radius: var(--pill); }
.stat-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.stat-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; color: var(--ink-2);
}
.stat-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; }
.stat-ic--purple { background: #7430f7; }
.stat-ic--teal { background: #12b98c; }
.stat-ic--amber { background: #efce03; }
/* staggered reveal of the stat rows */
.trusted-card .stat-list li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.trusted-card.in .stat-list li { opacity: 1; transform: none; }
.trusted-card.in .stat-list li:nth-child(1) { transition-delay: .05s; }
.trusted-card.in .stat-list li:nth-child(2) { transition-delay: .18s; }
.trusted-card.in .stat-list li:nth-child(3) { transition-delay: .31s; }

/* ---------- Services ---------- */
.services__head { margin-bottom: 40px; }
.services__head .eyebrow { font-size: 20px; letter-spacing: -0.02em; }

/* Cursor-follow image preview (service thumbnails) */
.cursor-preview {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 320px; max-width: 46vw;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
  opacity: 0; transform: translate(-9999px, -9999px);
  transition: opacity .18s var(--ease);
  will-change: transform, opacity;
}
.cursor-preview.show { opacity: 1; }
.cursor-preview img { display: block; width: 100%; height: auto; }
.service-card .thumb-row img { cursor: none; }
.services__title { font-size: 28px; line-height: 1.2; letter-spacing: -0.04em; font-weight: 500; }
.services__title .muted { color: var(--muted); }
.services__grid { display: flex; flex-direction: column; gap: 18px; }
.service-card {
  background: var(--bg-soft); border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 20px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card__head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.service-card__title { font-size: 20px; line-height: 1.3; }
.service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line);
  font-size: 16px; color: var(--muted);
}
.service-card__icon svg { width: 19px; height: 19px; }
.service-card__icon--amber { background: #fbf2cf; border-color: transparent; color: #d3a000; }
.service-card__icon--green { background: #e4f8ec; border-color: transparent; color: #0fae67; }
.service-card__icon--framer { background: #fff; border-color: var(--line); color: var(--accent); }
.service-card__body { display: flex; flex-direction: column; gap: 20px; transition: opacity .3s var(--ease); }
.service-card__body p { color: var(--muted); font-size: 15.5px; }
.service-card--active {
  background: var(--accent); border-color: transparent; color: #fff;
  box-shadow: 0 24px 60px rgba(116,48,247,0.34);
}
.service-card--active .service-card__title { color: #fff; }
.service-card--active .service-card__body p { color: rgba(255,255,255,0.9); }
.service-card--active .service-card__head { border-bottom-color: rgba(255,255,255,0.22); }
.service-card--active .service-card__icon { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); color: #fff; }
.service-card--active .service-card__icon--framer { background: #fff; border-color: transparent; color: var(--accent); }
.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb-row img { width: 100%; height: 84px; object-fit: cover; border-radius: 10px; }
.tags--pill { gap: 8px; }
.tags--pill .tag { font-size: 13px; color: var(--ink-2); padding: 8px 13px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line-2); }
.service-card--active .tag { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.28); color: #fff; }

/* ---------- How it works (dark) ---------- */
.how {
  background: var(--dark);
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  color: #fff; border-radius: 34px; margin-inline: 12px;
}
.how__head { max-width: 760px; margin-bottom: 46px; }
.how__title { font-size: 28px; line-height: 1.2; letter-spacing: -0.04em; font-weight: 500; }
.how__title .light { color: #fff; }
.how__title .muted-dark { color: var(--dark-muted); }
.how__steps { display: flex; flex-direction: column; gap: 18px; }
.step-card {
  background: var(--dark-card); border: 1px solid var(--dark-line);
  border-radius: var(--r-lg); padding: 26px; width: 100%;
}
.step-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #232323; color: var(--dark-muted); font-size: 15px; margin-bottom: 18px;
}
.step-card h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.step-card p { color: var(--dark-muted); font-size: 15.5px; }

/* Testimonials (dark section) */
.testimonials { display: grid; }
.testi-slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
  pointer-events: none;
}
.testi-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .testi-slide { transition: opacity .2s linear, visibility 0s linear .2s; transform: none; }
  .testi-slide.is-active { transition: opacity .2s linear; }
}
.testi {
  background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--r-lg);
  padding: 30px 32px;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px 30px;
}
.testi__main { flex: 1 1 340px; }
.testi__stars { color: #fff; font-size: 15px; letter-spacing: 4px; margin-bottom: 18px; }
.testi__quote { margin: 0; color: #fff; font-size: 21px; line-height: 1.36; letter-spacing: -0.02em; font-weight: 500; max-width: 62ch; }
.testi__author { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 3px; justify-items: start; align-content: center; flex: 0 1 300px; align-self: center; }
.testi__who { display: contents; }
.testi__logo { grid-row: 1; grid-column: 1; align-self: center; color: #fff; display: grid; place-items: center; }
.testi__logo svg { width: 20px; height: 20px; }
.testi__name { grid-row: 1; grid-column: 2; align-self: center; color: #fff; font-weight: 500; font-size: 16px; }
.testi__co { grid-row: 2; grid-column: 2; color: var(--dark-muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq__inner { display: flex; flex-direction: column; gap: 34px; }
.faq__title { font-size: 28px; line-height: 1.2; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 26px; }
.faq__panel { position: relative; background: var(--bg-soft); border-radius: var(--r-lg); padding: 16px; }
.faq__pill {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 13.5px; padding: 8px 16px; border-radius: var(--pill);
  white-space: nowrap;
}
.accordion { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.acc-item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.acc-trigger {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit; font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
  padding: 18px 20px;
}
.acc-icon { position: relative; flex: none; width: 16px; height: 16px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.acc-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc-item.is-open .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-body p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }
.acc-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA + Footer (dark) ---------- */
.project-body + .footer-block { margin-top: 0; }
.footer-block {
  position: relative; z-index: 2;
  background: var(--dark);
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  color: #fff; margin-top: 20px;
}
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 84px 76px; }
.cta__flower { width: 120px; height: 120px; object-fit: contain; margin-bottom: 26px; }
.cta__title { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; max-width: 16ch; margin-bottom: 30px; }
.cta__title .light { color: #fff; }
.cta__title .muted-dark { color: var(--dark-muted); }

.site-footer { padding-bottom: 40px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 40px; padding: 42px 0; border-top: 1px solid var(--dark-line); }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 130px; }
.footer__heading { color: var(--dark-muted); font-size: 14px; margin-bottom: 4px; }
.footer__col a { color: #e9e9ea; font-size: 15px; transition: opacity .2s; }
.footer__col a:hover { opacity: .6; }
.footer__bar {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--dark-line);
  color: var(--dark-muted); font-size: 14px; text-align: center;
}
.footer__credit strong { color: #fff; font-weight: 500; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 6px 40px; }

/* ===================================================================
   ABOUT PAGE
   =================================================================== */

/* ---------- About hero ---------- */
.about-hero { padding-top: 30px; padding-bottom: 8px; }
.about-hero__title { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; max-width: 820px; }
.about-hero__title .muted { color: var(--muted); }
.about-hero__title .ink { color: var(--ink); }

/* ---------- Testimonials bento (portrait + marquee) ---------- */
.about-bento-section { padding-top: 20px; }
.about-bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-portrait { border-radius: 40px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.testi-marquee {
  position: relative; overflow: hidden;
  background: var(--bg-soft); border-radius: 40px; padding: 16px;
  height: 520px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.testi-marquee__track { display: flex; flex-direction: column; gap: 16px; animation: marqueeUp 34s linear infinite; will-change: transform; }
.testi-marquee:hover .testi-marquee__track { animation-play-state: paused; }
@keyframes marqueeUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.testi-mini { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.testi-mini__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.testi-mini__avatar { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.testi-mini__who { display: flex; flex-direction: column; gap: 1px; }
.testi-mini__name { font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.testi-mini__role { font-size: 13px; color: var(--muted); }
.testi-mini__quote { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- About Me ---------- */
.about-me__inner { display: flex; flex-direction: column; gap: 8px; }
.about-me__head .eyebrow { margin-bottom: 0; }
.about-me__body { display: flex; flex-direction: column; gap: 22px; }
.about-me__title { font-size: 26px; line-height: 1.2; letter-spacing: -0.04em; font-weight: 500; }
.about-me__body p { font-size: 15.5px; line-height: 1.6; }

/* ---------- Two portraits ---------- */
.about-photos-section { padding-bottom: 8px; }
.about-photos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-photo { border-radius: 40px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Work experiences ---------- */
.exp-title { margin-bottom: 26px; }
.exp-list { display: flex; flex-direction: column; }
.exp-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 14px; row-gap: 4px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.exp-row:last-child { border-bottom: 0; }
.exp-role { grid-column: 1; grid-row: 1; font-size: 18px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.exp-date { grid-column: 2; grid-row: 1; text-align: right; font-size: 15px; color: var(--muted); white-space: nowrap; }
.exp-co { grid-column: 1 / -1; grid-row: 2; font-size: 15px; color: var(--muted); }
.exp-row--active {
  background: var(--accent); border-radius: 16px; border-bottom: 0;
  padding: 18px 22px; margin-bottom: 6px;
  box-shadow: 0 18px 44px rgba(116,48,247,0.28);
}
.exp-row--active .exp-role { color: #fff; }
.exp-row--active .exp-co, .exp-row--active .exp-date { color: rgba(255,255,255,0.85); }

/* ---------- My stacks ---------- */
.stacks-title { margin-bottom: 24px; }
.stacks-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stack-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .25s var(--ease);
}
.stack-card:hover { transform: translateY(-2px); }
.stack-card__icon { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff; }
.stack-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.stack-card__text { display: flex; flex-direction: column; gap: 2px; }
.stack-card__name { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.stack-card__desc { font-size: 14px; line-height: 1.4; color: var(--muted); }
.stack-card--active { background: var(--accent); border-color: transparent; box-shadow: 0 24px 60px rgba(116,48,247,0.34); }
.stack-card--active .stack-card__name { color: #fff; }
.stack-card--active .stack-card__desc { color: rgba(255,255,255,0.9); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Gallery images: fade only — transform is scroll-driven (zoom-in toward viewport center) */
.project-gallery img.reveal { transform: none; transition: opacity .7s var(--ease); }

/* ===================================================================
   TABLET  ≥ 810px
   =================================================================== */
@media (min-width: 810px) {
  :root { --pad: 40px; --sec-py: 100px; }

  .hero__title { font-size: 41px; line-height: 45px; }
  .hero__photo { padding: 0 40px; aspect-ratio: 1 / 0.84; }
  .hero__photo img { width: 120%; max-width: 120%; margin-left: -10%; }
  .section-title, .services__title, .how__title, .faq__title { font-size: 32px; }
  .cta__title { font-size: 36px; }

  .works__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .projects__grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .bento { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
  .quote { padding: 40px; }

  .services__grid { flex-direction: row; align-items: stretch; }
  .service-card { flex: 1; }
  .service-card--active { transform: scale(1.03); }

  .how { margin-inline: 24px; padding-inline: 44px; }
  .how__steps { max-width: 900px; margin-inline: auto; }
  .step-card { width: 54%; }
  .step-card[data-side="right"] { align-self: flex-end; }

  .faq__inner { flex-direction: row; align-items: flex-start; gap: 48px; }
  .faq__lead { flex: 1; position: sticky; top: 100px; }
  .faq__panel { flex: 1.05; padding: 20px; }

  .footer__bar { justify-content: center; }

  /* About page — tablet */
  .about-hero__title { font-size: 36px; line-height: 39.6px; }
  .about-bento { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .testi-marquee { order: 1; }
  .about-portrait { order: 2; aspect-ratio: auto; }
  .about-me__inner { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: start; }
  .about-me__head .eyebrow { padding-top: 6px; }
  .about-me__title { font-size: 32px; }
  .about-photos { grid-template-columns: 1.55fr 1fr; }
  .about-photo { aspect-ratio: auto; height: clamp(300px, 40vw, 510px); }
  .exp-row { grid-template-columns: 1fr 1fr auto; padding: 20px 6px; }
  .exp-role { font-size: 20px; }
  .exp-co { grid-column: 2; grid-row: 1; text-align: left; font-size: 16px; }
  .exp-date { font-size: 16px; }
  .exp-row--active { padding: 20px 24px; }
  .stacks-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ===================================================================
   DESKTOP  ≥ 1200px
   =================================================================== */
@media (min-width: 1200px) {
  :root { --pad: 0px; --sec-py: 120px; }
  .container { padding-inline: 20px; }

  .nav { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .header__inner { position: relative; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  /* Hero: container-width portrait in flow (sets height), text overlaid at bottom edges */
  .hero { position: relative; padding: 0 40px; overflow: hidden; height: calc(100vh - 72px); min-height: 600px; max-height: 940px; }
  .hero__photo { position: relative; z-index: 3; height: 100%; aspect-ratio: auto; overflow: visible; padding: 0; display: flex; justify-content: center; align-items: flex-start; margin: 0; transform: translateX(48px); }
  .hero__photo img { width: auto; height: 112%; max-width: none; margin-left: 0; object-fit: contain; object-position: top center; transform-origin: top center; }
  .hero__inner {
    position: absolute; left: 0; right: 0; top: 0; bottom: 40px; z-index: auto;
    width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0;
  }
  .hero__lead { position: absolute; left: 20px; top: 28%; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; width: min(620px, 54%); }
  .hero__lead .status { display: none; }
  .hero__title { font-size: 51px; line-height: 58px; letter-spacing: -0.03em; }
  .hero__smiley { width: .66em; height: .66em; vertical-align: -0.04em; margin-left: 0; }
  .hero__note { display: block; margin: 5px 0 0; padding-left: 5em; font-size: 20px; }
  .hero__aside { position: absolute; right: 20px; bottom: 0; z-index: 5; width: min(560px, 46%); text-align: left; max-width: none; }
  .hero__bio { font-size: calc(44px * 1.5 / 3); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 0; color: var(--ink); }
  /* frosted-glass band above the photo, behind the description text */
  .hero__blur { z-index: 4; }

  .bento { grid-template-columns: 1fr 1.15fr 0.85fr; align-items: stretch; }

  .section-title { font-size: 36px; line-height: 43.2px; }
  .services__title, .how__title { font-size: 36px; line-height: 43.2px; }

  /* Featured works — sticky-stack slider (desktop only), scoped to .works__grid */
  .works__grid { display: block; }
  .works__grid .work-card { position: sticky; top: 92px; height: calc(100vh - 124px); aspect-ratio: auto; box-shadow: 0 30px 70px rgba(0,0,0,0.22); }
  .works__grid .work-card:not(:last-child) { margin-bottom: 42vh; }
  .works__grid::after { content: ""; display: block; height: 12vh; }
  .works__grid .work-card.reveal { opacity: 1; transform: none; }
  .works__grid .work-card::after { background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0) 58%); }
  .works__grid .work-card__meta { left: 0; right: 0; bottom: 16%; padding-inline: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .works__grid .work-card .tags { order: -1; justify-content: center; margin-bottom: 18px; }
  .works__grid .work-card__title { font-size: 46px; letter-spacing: -0.03em; margin-bottom: 14px; }
  .works__grid .work-card__desc { display: block; color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.5; max-width: 48ch; margin: 0 auto; }
  .projects__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .project-hero { height: 100vh; }
  .project-body { margin-top: -50vh; padding-top: 92px; padding-bottom: 120px; border-radius: 34px 34px 0 0; }
  .project-text { margin: 60px 0; }
  .project-text p { font-size: 20px; }
  .project-title { font-size: 56px; }
  .project-section { grid-template-columns: 1fr 1.5fr; gap: 48px; margin-top: 110px; }
  .project-section__keyword { font-size: 40px; align-self: center; }
  .project-group h3 { font-size: 26px; margin-bottom: 18px; }
  .project-group p { font-size: 20px; }
  .project-subgroup h4 { font-size: 20px; }
  .project-meta__row { grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
  .project-meta__label { font-size: 20px; }
  .project-meta__value { font-size: 20px; line-height: 2; max-width: 62ch; }
  .project-gallery { margin-top: 52px; gap: 20px; }
  .project-gallery__row { gap: 20px; }
  .more-works__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta__title { font-size: 40px; line-height: 44px; }
  .services__head { display: grid; grid-template-columns: 2fr 3fr; align-items: start; gap: 24px; }
  .services__head .eyebrow { margin-bottom: 0; padding-top: 6px; }
  .services__title { max-width: none; }

  .how__head { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; max-width: none; align-items: start; }
  .how__head .eyebrow { margin-bottom: 0; padding-top: 6px; }
  .how__steps { width: 60%; max-width: none; margin-left: auto; margin-right: 0; }
  .step-card { width: 66%; padding: 30px; }

  .footer__cols { justify-content: center; gap: 40px 72px; }

  .faq__title { font-size: 36px; }

  /* About page — desktop */
  .about-hero { padding-top: 40px; padding-bottom: 12px; }
  .about-hero__title { font-size: 40px; line-height: 44px; max-width: 820px; }
  .about-me__title { font-size: 36px; line-height: 43.2px; }
  .about-me__body p { font-size: 16px; }
  .about-me__inner { gap: 40px; }
  .exp-role { font-size: 20px; line-height: 26px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .trusted-card .stat-list li { opacity: 1 !important; transform: none !important; }
  .work-card img { transition: none; }
  .project-hero img, .project-body { animation: none !important; }
}
