/* ==========================================================================
   bangieff.net – design system (V2: light, warm, orange accent)
   No build step. Progressive enhancement for motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --band: #fbf9f6;            /* alternating section background (lighter warm grey) */
  --surface: #ffffff;
  --border: #eee8e1;
  --border-strong: #e2d9cf;

  --text: #24201c;
  --text-soft: #4a443e;
  --muted: #7a726a;

  --orange: #ee7326;          /* decorative: big numbers, icons, highlights */
  --orange-strong: #d9581a;   /* backgrounds with white text (buttons, CTA band) */
  --orange-ink: #b4480d;      /* small orange text on light backgrounds (AA contrast) */
  --apricot: #ffebdd;
  --apricot-soft: #fff5ee;

  --font-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(60 40 20 / 0.05), 0 2px 8px rgb(60 40 20 / 0.04);
  --shadow: 0 2px 4px rgb(60 40 20 / 0.04), 0 12px 32px -8px rgb(60 40 20 / 0.12);
  --shadow-lg: 0 4px 10px rgb(60 40 20 / 0.05), 0 28px 60px -18px rgb(120 60 20 / 0.25);

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --header-h: 76px;

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

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  @media (prefers-reduced-motion: no-preference) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }

::selection { background: var(--apricot); }

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--orange-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-weight: 600;
  &:focus { top: 1rem; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--band { background: var(--band); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--orange-ink);
  font: 600 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow--pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--apricot);
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-lede { max-width: 58ch; margin: 0.8rem 0 0; color: var(--muted); font-size: 1.06rem; }

.accent { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);

  /* Border appears once the page scrolls (scroll-driven, decorative) */
  @supports (animation-timeline: scroll()) {
    animation: header-border linear both;
    animation-timeline: scroll();
    animation-range: 0 100px;
  }
}
@keyframes header-border { to { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgb(60 40 20 / 0.35); } }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 700 1.12rem/1 var(--font-display);
  letter-spacing: -0.015em;
}
.brand__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--orange-strong);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 0 0 3px var(--apricot);
  view-transition-name: brand-avatar;
  img { width: 100%; height: 100%; object-fit: cover; scale: var(--avatar-zoom, 1.9); transform-origin: var(--avatar-focus, 42% 30%); }
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
  &:hover { color: var(--text); background: var(--band); }
  &[aria-current="page"] { color: var(--orange-ink); background: var(--apricot-soft); }
}
.nav .btn { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  svg { width: 22px; height: 22px; }
}

/* Mobile menu = native popover (no JS) */
.mobile-nav {
  inset: var(--header-h) var(--gutter) auto auto;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  margin: 0.5rem 0 0;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);

  opacity: 0;
  translate: 0 -8px;
  transition: opacity 0.22s var(--ease-out), translate 0.22s var(--ease-out), display 0.22s allow-discrete, overlay 0.22s allow-discrete;
  &:popover-open {
    opacity: 1;
    translate: 0 0;
    @starting-style { opacity: 0; translate: 0 -8px; }
  }
  a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    &:hover { background: var(--apricot-soft); color: var(--orange-ink); }
  }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
}

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 0.97rem/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background-color 0.2s, color 0.2s, border-color 0.2s;
  svg { width: 18px; height: 18px; transition: translate 0.25s var(--ease-out); }
  &:hover { transform: translateY(-2px); background: var(--text); color: #fff; }
  &:hover svg.icon-arrow { translate: 3px 0; }
}
.btn--primary {
  border-color: var(--orange-strong);
  background: var(--orange-strong);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgb(217 88 26 / 0.7);
  &:hover { border-color: var(--orange-ink); background: var(--orange-ink); box-shadow: 0 14px 30px -12px rgb(217 88 26 / 0.75); }
}
.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.9rem; }
.btn--light {
  border-color: rgb(255 255 255 / 0.85);
  color: #fff;
  &:hover { background: #fff; color: var(--orange-ink); border-color: #fff; }
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--apricot-soft);
  color: var(--orange-ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.chip--neutral { background: var(--band); color: var(--text-soft); border: 1px solid var(--border); }

.icon-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.icon-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  transition: color 0.2s, transform 0.25s var(--ease-out), border-color 0.2s, background-color 0.2s;
  svg { width: 19px; height: 19px; }
  &:hover { color: var(--orange-ink); transform: translateY(-3px); border-color: var(--orange); background: var(--apricot-soft); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  @media (max-width: 900px) { grid-template-columns: 1fr; }
}

.hero__title {
  margin-top: 1.4rem;
  font-size: clamp(2.8rem, 6.8vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero__intro {
  max-width: 50ch;
  margin: 1.4rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero__social { margin-top: 2rem; }

.hero__visual {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  @media (max-width: 900px) { justify-self: start; max-width: 340px; }
}


.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--apricot-soft);
  box-shadow: var(--shadow-lg);
  img { width: 100%; height: 100%; object-fit: cover; }
}
.portrait__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background: linear-gradient(150deg, var(--apricot-soft), var(--apricot));
  color: var(--orange);
  font: 700 clamp(4rem, 12vw, 7rem)/1 var(--font-display);
  letter-spacing: -0.04em;
}


/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.1rem;
}
.stat {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius);
  background: var(--apricot-soft);
  border: 1px solid #fde3d1;
}
.stat__value {
  display: block;
  color: var(--orange);
  font: 700 clamp(2.6rem, 5vw, 3.4rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}
.stat__label { display: block; margin-top: 0.55rem; color: var(--text-soft); font-weight: 500; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  @media (max-width: 860px) { grid-template-columns: 1fr; }
}

/* Value points */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.1rem;
}
.value-card {
  padding: 1.7rem 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: var(--apricot-soft);
  border: 1px solid #fde3d1;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background-color 0.3s;
  &:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: var(--apricot); }
  svg { width: 40px; height: 40px; color: var(--orange-strong); stroke-width: 1.5; }
  h3 { margin-top: 1.1rem; font-size: 1.22rem; }
  p { margin: 0.5rem 0 0; color: var(--text-soft); font-size: 0.97rem; line-height: 1.6; }
}

/* Hobbies */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.1rem;
}
.hobby {
  position: relative;
  margin: 0;
  figcaption { margin-top: 0.7rem; text-align: center; font-weight: 500; transition: color 0.3s; }
  /* lift the hovered card above its neighbours while it grows */
  &:has(.hobby__media:hover, .hobby__media:focus-visible) {
    z-index: 2;
    figcaption { color: var(--orange-ink); }
  }
}
.hobby__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--apricot-soft);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: scale 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
  &:hover, &:focus-visible { box-shadow: var(--shadow-lg); }
  &:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
}
.hobby__zoom {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(6px);
  color: var(--orange-strong);
  opacity: 0;
  transition: opacity 0.3s, translate 0.3s var(--ease-out);
  translate: 0 6px;
  svg { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
  .hobby__media:is(:hover, :focus-visible) & { opacity: 1; translate: 0 0; }
}
@media (hover: none) {
  .hobby__zoom { opacity: 1; translate: 0 0; }   /* touch: always show the hint */
}
@media (prefers-reduced-motion: no-preference) {
  .hobby__media:is(:hover, :focus-visible) {
    scale: 1.06;
    img { scale: 1.04; }
  }
}

/* Lightbox (native modal <dialog>) */
.lightbox {
  --lb-w: min(92vw, 1100px);
  --lb-h: 88dvh;
  max-width: var(--lb-w);
  max-height: var(--lb-h);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgb(30 18 8 / 0.55);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), scale 0.4s var(--ease-out), display 0.4s, overlay 0.4s;
  transition-behavior: allow-discrete;

  &[open] {
    opacity: 1;
    @starting-style { opacity: 0; }
  }
  &::backdrop {
    background: rgb(36 32 28 / 0);
    backdrop-filter: blur(0);
    transition: background-color 0.35s, backdrop-filter 0.35s, display 0.35s, overlay 0.35s;
    transition-behavior: allow-discrete;
  }
  &[open]::backdrop {
    background: rgb(36 32 28 / 0.72);
    backdrop-filter: blur(6px);
    @starting-style { background: rgb(36 32 28 / 0); backdrop-filter: blur(0); }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox { scale: 0.92; }
  .lightbox[open] {
    scale: 1;
    @starting-style { scale: 0.92; }
  }
}
.lightbox__figure {
  margin: 0;
  img {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--lb-w);
    max-height: calc(var(--lb-h) - 3.4rem);
    background: var(--apricot-soft);
  }
  figcaption {
    padding: 0.95rem 1.25rem;
    font: 600 1.05rem/1.2 var(--font-display);
    text-align: center;
  }
}
.lightbox__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, rotate 0.3s var(--ease-out);
  svg { width: 1.2rem; height: 1.2rem; stroke-width: 2.2; }
  &:hover { background: var(--orange-strong); color: #fff; }
  &:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox__close:hover { rotate: 90deg; }
}

/* Markdown content */
.prose {
  color: var(--text-soft);
  font-size: 1.07rem;
  > :first-child { margin-top: 0; }
  > :last-child { margin-bottom: 0; }
  h2, h3 { margin: 1.8em 0 0.6em; color: var(--text); }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
  a {
    color: var(--orange-ink);
    text-decoration: underline;
    text-decoration-color: rgb(217 88 26 / 0.4);
    text-underline-offset: 3px;
    &:hover { text-decoration-color: currentColor; }
  }
  strong { color: var(--text); font-weight: 600; }
  ol { margin: 0 0 1.2em; padding-left: 1.3em; list-style: decimal; }
  ul { margin: 0 0 1.2em; }
  ul li { position: relative; padding-left: 1.4em; margin-bottom: 0.45em; }
  ul li::before {
    content: "";
    position: absolute;
    left: 0.2em;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
  }
  blockquote {
    margin: 1.5em 0;
    padding: 0.3em 0 0.3em 1.2em;
    border-left: 3px solid var(--orange);
    color: var(--text);
    font-style: italic;
  }
  code {
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: var(--band);
    border: 1px solid var(--border);
    font-size: 0.9em;
  }
  pre {
    overflow-x: auto;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: #2a2521;
    color: #f5efe9;
    code { padding: 0; border: 0; background: none; }
  }
  img { border-radius: var(--radius-sm); margin-block: 1.5em; }
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
  &:hover, &:focus-within {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
  }
  &:hover .project-card__media img { scale: 1.05; }
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, var(--apricot-soft), var(--apricot));
  img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
}
.project-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--orange);
  font: 700 3.2rem/1 var(--font-display);
}
.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.5rem 1.5rem;
}
.project-card__title {
  font-size: 1.28rem;
  a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
}
.project-card__summary { margin: 0; color: var(--muted); font-size: 0.97rem; }
.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  svg { width: 20px; height: 20px; color: var(--orange-strong); transition: translate 0.25s var(--ease-out); }
}
.project-card:hover .project-card__meta svg { translate: 4px 0; }
.featured-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--orange-strong);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Experience timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-left: 2rem;
  &::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--orange), var(--apricot));
  }
}
.timeline__item {
  position: relative;
  padding: 1.5rem 1.6rem;
  &::before {
    content: "";
    position: absolute;
    left: calc(-2rem + 1px);
    top: 1.9rem;
    width: 14px;
    height: 14px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--orange-strong);
    box-shadow: 0 0 0 3px var(--apricot);
  }
}
.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}
.timeline__role { font-size: 1.2rem; }
.timeline__company {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-weight: 500;
}
.timeline__company img,
.timeline__company-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.timeline__dates {
  margin: 0;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--band);
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeline__body { margin-top: 1rem; font-size: 1rem; }

.experience-summary {
  margin-bottom: 2.5rem;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--orange-strong);
}
.experience-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.experience-summary__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.experience-summary__intro {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.experience-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  font-size: 0.9rem;
}
.experience-summary__item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.experience-summary__item span {
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.4rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}
.testimonial-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.testimonial-card__badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.testimonial-card__badge svg {
  width: 22px;
  height: 22px;
  fill: var(--orange-strong);
}
.testimonial-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15) opacity(0.85);
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover .testimonial-card__logo {
  filter: grayscale(0) contrast(1) opacity(1);
  transform: scale(1.05);
}
.testimonial-card__author {
  min-width: 0;
}
.testimonial-card__client {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-card__role {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.35;
}
.testimonial-card__year {
  font-size: 0.78rem;
  white-space: nowrap;
}
.testimonial-card__quote {
  position: relative;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.62;
  font-style: normal;
  p { margin: 0; text-wrap: pretty; }
}
.testimonials-note {
  display: inline-flex;
  align-items: center;
}

/* ---------- Credentials ---------- */
.cred-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.cred-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  &:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--band);
  }
  &.is-active, &[aria-pressed="true"] {
    border-color: var(--orange-strong);
    background: var(--orange-strong);
    color: #fff;
    .chip {
      background: rgb(255 255 255 / 0.25);
      color: #fff;
    }
  }
  .chip {
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    pointer-events: none;
  }
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
}
.cred-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.3rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  &:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  &[hidden] { display: none !important; }
}
.cred-card__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--apricot-soft);
  color: var(--orange-strong);
  img { width: 100%; height: 100%; object-fit: contain; }
  svg { width: 28px; height: 28px; }
}
.cred-card__title { font-size: 1.04rem; line-height: 1.3; }
.cred-card__issuer { margin: 0.25rem 0 0; color: var(--text-soft); font-size: 0.93rem; font-weight: 500; }
.cred-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.83rem;
}
.cred-card__summary {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.cred-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.7rem;
  color: var(--orange-ink);
  font-size: 0.88rem;
  font-weight: 600;
  svg { width: 14px; height: 14px; }
  &:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Contact CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: var(--orange-strong);
  color: #fff;
  isolation: isolate;
  &::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    z-index: -1;
    width: 520px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(255 255 255 / 0.16), transparent);
  }
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
  p { margin: 0.6rem 0 0; color: rgb(255 255 255 / 0.88); font-size: 1.06rem; }
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 4vw, 2.75rem);
  .section-title { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  svg { width: 16px; height: 16px; rotate: 180deg; }
  &:hover { color: var(--orange-ink); }
}

/* ---------- Project detail ---------- */
.project-hero__media {
  overflow: hidden;
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
}
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  @media (max-width: 900px) { grid-template-columns: 1fr; }
}
.project-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 1.4rem;
  padding: 1.5rem;
  background: var(--band);
  box-shadow: none;
  h2 { margin-bottom: 0.6rem; color: var(--muted); font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
  .btn { width: 100%; }
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  a {
    display: grid;
    gap: 0.3rem;
    padding: 1.2rem 1.4rem;
    transition: box-shadow 0.25s, transform 0.3s var(--ease-out);
    &:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
  }
  span { color: var(--muted); font-size: 0.83rem; }
  strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
  .pager__next { text-align: right; grid-column: 2; }
}

/* ---------- Empty state ---------- */
.empty {
  padding: 2.5rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
main > :last-child:not(.cta-band) { margin-bottom: var(--section-y); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  p { margin: 0; }
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
  .code {
    margin: 0;
    color: var(--orange);
    font: 700 clamp(6rem, 22vw, 11rem)/0.9 var(--font-display);
    letter-spacing: -0.05em;
  }
}

/* ==========================================================================
   Motion (progressive enhancement)
   ========================================================================== */

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] {
    animation: enter 0.8s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }
}
@keyframes enter {
  from { opacity: 0; translate: 0 16px; }
}

/* Scroll reveal – native scroll-driven animations only (decorative, no JS fallback) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; translate: 0 32px; }
}

/* Cross-document view transitions between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.2s ease-in both vt-out; }
  ::view-transition-new(root) { animation: 0.35s var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 10px; } }
