/* About page: the live page's contained layout (a hero card, then one panel per section),
   dressed in the homepage's materials. Header, footer and type come from style.css / hero.css. */

.ab { padding-top: 100px; }
.ab__wrap { max-width: calc(1240px + 2 * var(--gutter)); }
.ab__wrap + .ab__wrap { margin-top: 24px; }

/* ---------- shared panel ---------- */
.panel {
  position: relative;
  padding: 40px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.panel__head { margin-bottom: 30px; }
.panel__lede { max-width: 640px; margin-top: 12px; color: var(--text-3); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.panel__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 30px; }
.panel__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text-3); font-size: 15px; line-height: 1.2; }
.panel__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #a9bfdc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- intro card ---------- */
.phero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* the silk fills the whole card here (no fade at the bottom like the homepage hero) */
.phero .hero__bg { -webkit-mask-image: none; mask-image: none; border-radius: inherit; }
.phero .hero__bg .s4 { left: -40%; opacity: 0.55; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(0, 6, 17, 0.55), transparent 65%); pointer-events: none; }
.phero__inner { position: relative; z-index: 1; max-width: 1080px; padding: 56px 52px 52px; }
.phero__face { width: 76px; height: 76px; margin-bottom: 26px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 16px 34px -14px rgba(0, 0, 0, 0.8); }
/* one solid colour, the second half quieter: no italic, no gradient */
.phero__title { color: #fff; font-size: clamp(40px, 4.1vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.phero__title span { display: block; background: linear-gradient(100deg, #5cd6ff 0%, #4d9bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero__hi { margin-top: 26px; color: #fff; font-size: 26px; font-weight: 500; letter-spacing: -0.4px; }
.phero__wave { display: inline-block; transform-origin: 70% 80%; }
.phero__lede { max-width: 600px; margin-top: 12px; color: rgba(255, 255, 255, 0.74); font-size: 17px; line-height: 1.65; }
.phero__roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 20px; color: rgba(255, 255, 255, 0.85); font-size: 19px; font-weight: 300; letter-spacing: -0.2px; }
.phero__roles i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.phero__eyebrow { margin-bottom: 14px; color: rgba(255, 255, 255, 0.72); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }
.phero__action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.phero__note { flex-basis: 100%; color: rgba(255, 255, 255, 0.66); font-size: 14.5px; line-height: 1.5; }


/* the intro settles in on load */
@keyframes pRise { from { opacity: 0; translate: 0 22px; } }
@keyframes pWave { 0%, 60%, 100% { transform: none; } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.js .phero__inner > * { animation: pRise 0.9s var(--m-ease, var(--ease-out)) both; }
.js .phero__inner > :nth-child(2) { animation-delay: 0.07s; }
.js .phero__inner > :nth-child(3) { animation-delay: 0.14s; }
.js .phero__inner > :nth-child(4) { animation-delay: 0.2s; }
.js .phero__inner > :nth-child(5) { animation-delay: 0.26s; }
.js .phero__inner > :nth-child(6) { animation-delay: 0.32s; }
.phero__wave { animation: pWave 2.4s ease-in-out 1s 2; }

/* ---------- experience / education rows ---------- */
.xp { display: flex; flex-direction: column; gap: 6px; }
.xp__item { border-radius: 16px; transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); interpolate-size: allow-keywords; }
.xp__item summary,
.xp__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.1fr) minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 12px;
  list-style: none;
}
.xp__item summary { cursor: pointer; border-radius: inherit; }
.xp__item summary::-webkit-details-marker { display: none; }
.xp__item:hover,
.xp__item[open] { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.xp__item[open] { background: rgba(255, 255, 255, 0.06); }

.xp__chev,
.xp__cap { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--text-3); transition: transform 0.45s var(--ease-out), background-color 0.3s, color 0.3s; }
.xp__chev svg,
.xp__cap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.xp__item summary:hover .xp__chev { background: rgba(255, 255, 255, 0.13); color: var(--text-1); }
.xp__item[open] .xp__chev { transform: rotate(180deg); background: rgba(24, 205, 253, 0.16); color: var(--accent); }

.xp__org { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.3px; }
.xp__role { color: var(--text-3); font-size: 15.5px; line-height: 1.35; }
.xp__when { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--text-4); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp__now { padding: 5px 9px; border-radius: 999px; background: rgba(43, 212, 125, 0.14); color: #2bd47d; font-size: 12px; font-style: normal; font-weight: 600; line-height: 1; letter-spacing: 0.02em; }

/* opening glides where the browser can animate to height: auto */
.xp__item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
.xp__item[open]::details-content { block-size: auto; }
.xp__body { display: grid; gap: 9px; max-width: 760px; padding: 2px 18px 22px 64px; }
.xp__body li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.xp__body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.xp__item[open] .xp__body li { animation: pRise 0.55s var(--ease-out) both; }
.xp__item[open] .xp__body li:nth-child(2) { animation-delay: 0.05s; }
.xp__item[open] .xp__body li:nth-child(3) { animation-delay: 0.1s; }
.xp__item[open] .xp__body li:nth-child(4) { animation-delay: 0.15s; }
.xp__item[open] .xp__body li:nth-child(5) { animation-delay: 0.2s; }
.xp--flat .xp__item:first-child .xp__cap { background: rgba(24, 205, 253, 0.16); color: var(--accent); }

/* ---------- portfolio ---------- */
.panel__head .about-tabs { margin: 0; }
.pf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.pfc[hidden] { display: none; }
.pfc__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-sunken);
  box-shadow: 0 20px 40px -28px rgba(0, 6, 20, 0.7);
}
.pfc__shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.09); pointer-events: none; }
.pfc__shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.9s var(--ease-out); }
.pfc:hover .pfc__shot img { transform: scale(1.035); }
.pfc__name { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.4px; }
.pfc__kind { margin-top: 3px; color: var(--text-3); font-size: 15px; }
/* each card opens its case study (work/*.html) */
.pfc__link { display: block; border-radius: 18px; }
.pfc__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.pfc__view { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent); font-size: 14.5px; font-weight: 500; }
.pfc__view svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-out); }
.pfc__link:hover .pfc__view svg { transform: translateX(3px); }
.pf__note { margin-top: 36px; color: var(--text-4); font-size: 14.5px; text-align: center; }
/* while filtering, each card animates to its new spot (view transitions, js/about.js) */
.is-filtering .pfc:nth-child(1) { view-transition-name: pfc1; }
.is-filtering .pfc:nth-child(2) { view-transition-name: pfc2; }
.is-filtering .pfc:nth-child(3) { view-transition-name: pfc3; }
.is-filtering .pfc:nth-child(4) { view-transition-name: pfc4; }
.is-filtering .pfc:nth-child(5) { view-transition-name: pfc5; }
.is-filtering .pfc:nth-child(6) { view-transition-name: pfc6; }
.is-filtering .pfc:nth-child(7) { view-transition-name: pfc7; }
.is-filtering .pfc:nth-child(8) { view-transition-name: pfc8; }
.is-filtering .pfc:nth-child(9) { view-transition-name: pfc9; }
/* the newest projects: a dark glass tag on the shot's corner, tilted a little like a sticker */
.pfc__tag { position: absolute; top: 14px; right: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 7px 9px; border-radius: 11px; background: rgba(4, 14, 32, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 22px -10px rgba(0, 0, 0, 0.7); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1; transform: rotate(6deg); }
.pfc__tag svg { width: 13px; height: 13px; fill: var(--accent); }
.pfc__tag--live svg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.22, 0.8, 0.2, 1); }

/* ---------- setup + stack ---------- */
.ab__duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ws__setup,
.ws__stack { display: flex; flex-direction: column; margin: 0; }
.ws__photo { position: relative; flex: 1; min-height: 360px; border-radius: 18px; overflow: hidden; }
.ws__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.ws__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.2s var(--ease-out); }
.ws__setup:hover .ws__photo img { transform: scale(1.04); }

.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* tiles stay dark in both themes so the white logos always read */
.stack li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(160deg, #0c2440, #04121f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  line-height: 1.2;
  text-align: center;
  transition: translate 0.4s var(--ease-out), box-shadow 0.4s var(--ease), color 0.3s;
}
.stack img { width: 38px; height: 38px; object-fit: contain; }
.stack li:hover { translate: 0 -4px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(24, 205, 253, 0.35), 0 18px 34px -18px rgba(10, 134, 250, 0.7); }
/* the tiles pop in one by one once the panel is in view */
.has-motion .ws__stack .stack li { opacity: 0; scale: 0.7; transition: opacity 0.5s var(--ease), scale 0.6s var(--m-ease), translate 0.4s var(--ease-out), box-shadow 0.4s var(--ease), color 0.3s; transition-delay: calc(0.25s + var(--t) * 45ms), calc(0.25s + var(--t) * 45ms), 0s, 0s, 0s; }
.has-motion .ws__stack.is-in .stack li { opacity: 1; scale: 1; }

/* ---------- reviews (cards from css/reviews.css) ---------- */
.ab-reviews .panel__head { margin-bottom: 26px; }
.ab-reviews .slider__controls { margin: 0; gap: 16px; }
.ab-reviews .slider__btn { width: 46px; height: 46px; }
.ab-reviews .slider__btn svg { width: 18px; height: 18px; }
/* inside a panel the cards sit one step lighter, not as a second dark slab */
.ab-reviews .review { background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.04)), rgba(3, 14, 30, 0.55); }
.ab-reviews .dots button:not(.is-active) { background: rgba(255, 255, 255, 0.2); }
[data-theme="light"] .ab-reviews .review { background: #fff; }
[data-theme="light"] .ab-reviews .dots button:not(.is-active) { background: #c9d7e8; }
/* ---------- CTA ---------- */
.ab-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; overflow: hidden; }
/* a soft blue light behind the card's right side */
.ab-cta::before { content: ""; position: absolute; right: -10%; top: -80%; width: 60%; height: 260%; z-index: -1; background: radial-gradient(closest-side, rgba(10, 134, 250, 0.35), transparent); pointer-events: none; }
.ab-cta { isolation: isolate; }
.ab-cta__copy p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
.ab-cta__note { color: var(--text-3); font-size: 14.5px; }
.ab-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ab-cta__mail { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 15.5px; font-weight: 500; transition: color 0.2s; }
.ab-cta__mail svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ab-cta__mail:hover { color: var(--text-1); }

.ab + .footer { margin-top: 60px; }

/* ---------- light theme ---------- */
[data-theme="light"] .panel { background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--line-card); }
[data-theme="light"] .panel__title { background-image: var(--ink-head); }
/* the intro card keeps its deep silk in daylight too, so it reads as the hero */
[data-theme="light"] .phero .hero__bg {
  --silk-outer: #000611;
  --silk-base-1: #00173d;
  --silk-base-2: #000a1c;
  --silk-lit-a: #c4ecff;
  --silk-lit-b: #2a9dff;
  --silk-lit-c: #0a3d8f;
  --silk-crease: #00040d;
  --silk-rim: rgba(110, 215, 255, 0.42);
  --silk-cool-a: #0a2a66;
  --silk-cool-b: #1b6fd6;
  --silk-glow: rgba(10, 134, 250, 0.38);
}
[data-theme="light"] .phero .phero__roles i { background: #18cdfd; box-shadow: 0 0 8px #18cdfd; }
[data-theme="light"] .xp__item:hover,
[data-theme="light"] .xp__item[open] { background: rgba(10, 60, 140, 0.04); box-shadow: inset 0 0 0 1px var(--line-card); }
[data-theme="light"] .xp__chev,
[data-theme="light"] .xp__cap { background: rgba(6, 30, 66, 0.06); }
[data-theme="light"] .xp__item summary:hover .xp__chev { background: rgba(6, 30, 66, 0.1); }
[data-theme="light"] .xp__item[open] .xp__chev,
[data-theme="light"] .xp--flat .xp__item:first-child .xp__cap { background: rgba(10, 127, 230, 0.12); }
[data-theme="light"] .xp__now { background: rgba(20, 160, 90, 0.12); color: #0c6b3c; }
[data-theme="light"] .pfc__shot { box-shadow: 0 30px 60px -40px rgba(10, 40, 90, 0.45); }
[data-theme="light"] .pfc__shot::after { box-shadow: inset 0 0 0 1px rgba(6, 30, 66, 0.08); }
[data-theme="light"] .ab-cta::before { background: radial-gradient(closest-side, rgba(10, 134, 250, 0.16), transparent); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ab__duo { grid-template-columns: minmax(0, 1fr); }
  .ws__photo { min-height: 0; height: 460px; flex: none; }
  .xp__item summary,
  .xp__row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 130px; }
}
@media (max-width: 767px) {
  .ab { padding-top: 76px; }
  .ab__wrap + .ab__wrap { margin-top: 16px; }
  .panel { padding: 24px 18px; border-radius: 22px; }
  .panel__head { margin-bottom: 22px; }
  .panel__title { font-size: 28px; }
  .panel__eyebrow { font-size: 14px; }

  .phero { min-height: 0; border-radius: 22px; }
  .phero::after { background: linear-gradient(180deg, transparent 20%, rgba(0, 6, 17, 0.5)); }
  .phero__inner { padding: 30px 20px 28px; }
  .phero__face { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 17px; }
  .phero__title { font-size: clamp(32px, 8.6vw, 40px); line-height: 1.06; }
  .phero__title span { display: inline; }
  .phero__hi { margin-top: 20px; font-size: 21px; }
  .phero__lede { font-size: 16px; }
  .phero__roles { font-size: 16px; gap: 4px 10px; }
  .phero__action { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .phero__action .sq-btn { width: 100%; justify-content: space-between; }

  /* rows: company and role stacked, dates under them */
  .xp__item summary,
  .xp__row { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 13px 12px 13px 8px; }
  .xp__chev, .xp__cap { grid-row: 1 / span 3; align-self: start; width: 30px; height: 30px; }
  .xp__org { font-size: 16.5px; }
  .xp__role { font-size: 14.5px; }
  .xp__when { justify-content: flex-start; font-size: 13.5px; margin-top: 4px; }
  .xp__body { padding: 0 12px 18px 52px; }
  .xp__body li { font-size: 15px; }

  .panel__head--split { align-items: flex-start; }
  .panel__head--split .about-tabs { max-width: 100%; }
  .panel__head--split .about-tabs__tab { padding: 7px 11px; font-size: 13.5px; }
  .pf { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pfc__shot { border-radius: 14px; }
  .pfc__name { font-size: 18px; }
  .pfc__kind { font-size: 14px; }
  .pf__note { margin-top: 28px; font-size: 13.5px; }

  .ws__photo { height: 380px; border-radius: 14px; }
  .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stack li { gap: 10px; border-radius: 16px; font-size: 12px; }
  .stack img { width: 32px; height: 32px; }

  .ab-reviews .slider__controls { width: 100%; justify-content: space-between; }
  .ab-reviews .slider__btn { width: 42px; height: 42px; }

  .ab-cta { flex-direction: column; align-items: flex-start; }
  .ab-cta__copy p { font-size: 16px; }
  .ab-cta__actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .ab-cta__actions .sq-btn { width: 100%; justify-content: space-between; }
  .ab + .footer { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .phero__wave, .js .phero__inner > *, .xp__item[open] .xp__body li { animation: none !important; }
}
