/* =========================================================================
   Portfolio 1.1.1 — shared styles
   Tokens mirror DESIGN-SYSTEM-BRIEF.md exactly. Breakpoints: mobile < 768,
   tablet 768–1199, desktop ≥ 1200 (designed at 390 / 768 / 1440).
   ========================================================================= */

/* Inter (SIL Open Font License), self-hosted: one variable file per script covers weights 400–800, so text
   renders without waiting on a third-party font server. Latin Extended (e.g. İ, ş, ə) loads only when used. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.65850a373e25.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin-ext.01ba6c2a184b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.7a0dc3a5ab12.woff2") format("woff2"),
       url("../fonts/ClashDisplay-Semibold.89e21201c5df.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Primitives -------------------------------------------------------- */
:root {
  --ink-950: #0C0C0E;
  --ink-900: #0E0E10; /* deep black (was #1A1A1C); the whole dark scale moved down together */
  --ink-850: #161618;
  --ink-700: #3F4042;
  --ink-600: #535353;
  --grey-500: #7E8087;
  --grey-450: #92949F;
  --grey-400: #A0A2A7;
  --grey-350: #BABECA;
  --grey-300: #C4C9D5;
  --grey-200: #D5D3D3;
  --grey-150: #DCDDE5;
  --grey-100: #E3E3E3;
  --grey-50: #F5F5F7;
  --white: #FFFFFF;
  --black: #000000;
  --blue-950: #021371;
  --blue-800: #01199F;
  --blue-600: #0026FF;
  --blue-550: #0154FC;
  --blue-500: #3A5CFF;
  --blue-300: #6E8AFF;
  --blue-50: #E0E7F5;
  --signal-green: #1F9D55;

  --font-display: "Clash Display", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --stroke-hairline: 1px;
  --stroke-frame: 2px;

  /* Responsive layout tokens (mobile first) */
  --layout-margin: 20px;
  --layout-gutter: 16px;
  --layout-section-gap: 60px;
  --layout-block-gap: 24px;
  --layout-stack-gap: 12px;

  /* Responsive type scale: size / line-height */
  --display-xl: 44px;      --display-xl-lh: 48px;
  --display-hero: 30px;    --display-hero-lh: 38px;
  --display-title: 30px;   --display-title-lh: 34px;
  --display-h2: 24px;      --display-h2-lh: 32px;
  --display-h3: 24px;      --display-h3-lh: 30px;
  --display-section: 22px; --display-section-lh: 28px;
  --display-tab: 16px;     --display-tab-lh: 24px;
  --text-body-xl: 18px;    --text-body-xl-lh: 26px;
  --text-body-l: 16px;     --text-body-l-lh: 24px;
  --text-body-m: 16px;     --text-body-m-lh: 22px;

  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 768px) {
  :root {
    --layout-margin: 40px;
    --layout-gutter: 20px;
    --layout-section-gap: 80px;
    --layout-block-gap: 32px;
    --layout-stack-gap: 16px;
    --display-xl: 72px;      --display-xl-lh: 80px;
    --display-hero: 36px;    --display-hero-lh: 48px;
    --display-title: 36px;   --display-title-lh: 40px;
    --display-h2: 28px;      --display-h2-lh: 36px;
    --display-h3: 26px;      --display-h3-lh: 32px;
    --display-section: 24px; --display-section-lh: 32px;
    --display-tab: 20px;     --display-tab-lh: 28px;
    --text-body-xl: 20px;    --text-body-xl-lh: 28px;
    --text-body-l: 18px;     --text-body-l-lh: 26px;
    --text-body-m: 18px;     --text-body-m-lh: 24px;
  }
}

@media (min-width: 1200px) {
  :root {
    --layout-margin: 72px;
    --layout-gutter: 24px;
    --layout-section-gap: 120px;
    --layout-block-gap: 40px;
    --display-xl: 124px;     --display-xl-lh: 140px;
    --display-hero: 40px;    --display-hero-lh: 56px;
    --display-title: 40px;   --display-title-lh: 44px;
    --display-h2: 32px;      --display-h2-lh: 40px;
    --display-h3: 28px;      --display-h3-lh: 36px;
    --display-tab: 24px;     --display-tab-lh: 32px;
  }
}

/* --- Semantic modes (per section, never a runtime theme toggle) --------- */
.mode-dark, :root {
  --bg-canvas: var(--ink-900);
  --bg-raised: var(--ink-850);
  --bg-inverse: var(--white);
  --bg-accent-soft: var(--blue-50);
  --text-primary: var(--white);
  --text-body: var(--grey-200);
  --text-supporting: var(--grey-400);
  --text-muted: var(--grey-450);
  --text-subtle: var(--grey-500);
  --text-accent: var(--blue-300);
  --text-on-inverse: var(--blue-600);
  --border-frame: var(--blue-950);
  --border-strong: var(--blue-800);
  --border-accent: var(--blue-600);
  --border-hairline: var(--grey-200);
  --action-primary-bg: var(--white);
  --action-primary-text: var(--blue-600);
  --action-secondary-bg: transparent; /* no dark box on top of the hero glow */
  --action-secondary-text: var(--grey-400);
  --status-available: var(--signal-green);
}

.mode-light {
  --bg-canvas: var(--white);
  --bg-raised: var(--grey-50);
  --bg-inverse: var(--ink-900);
  --text-primary: var(--ink-900);
  --text-body: var(--ink-700);
  --text-supporting: var(--ink-700);
  --text-muted: var(--grey-500);
  --text-subtle: var(--grey-350);
  --text-accent: var(--blue-600);
  --text-on-inverse: var(--white);
  --border-frame: var(--grey-200);
  --border-strong: var(--ink-600);
  --action-primary-bg: var(--blue-600);
  --action-primary-text: var(--white);
  --action-secondary-bg: var(--blue-50);
  --action-secondary-text: var(--ink-600);
}

.mode-dark, .mode-light {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
}

.page__main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue-600);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* --- Nav Bar ----------------------------------------------------------- */
.page__header { padding: 20px var(--layout-margin) 0; }

@media (min-width: 768px) { .page__header { padding-top: 40px; } }
@media (min-width: 1200px) { .page__header { padding-top: 60px; } }

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
  padding: 0 13px 0 16px;
  border: var(--stroke-hairline) solid var(--blue-600);
  border-radius: var(--radius-md);
  background: var(--ink-900);
  color: var(--grey-200);
}

.nav__plus {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.nav__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav__role {
  display: none;
  color: var(--grey-400);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.nav__name {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
}

.nav__link {
  justify-self: end;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.nav__plus:hover, .nav__link:hover { color: var(--white); }

.nav__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Music (static/js/music.js): five white lines. At rest they hold a still rhythm shape; while the music plays they
   follow it, and hovering or focusing the button swaps them for a pause icon. No circle, no label. */
.music {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.music[hidden] { display: none; }
/* Phones: the bar has no room beside the centred name, so the button floats in the bottom-right corner instead,
   dressed like the nav (ink fill, blue hairline). It stays under the opening intro (z-index 50). */
@media (max-width: 767px) {
  .music {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--ink-900);
    box-shadow: inset 0 0 0 var(--stroke-hairline) var(--blue-600), 0 4px 16px rgb(0 0 0 / 0.35);
  }
}
.music:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.music__bars,
.music__pause { grid-area: 1 / 1; transition: opacity 250ms var(--ease-standard); }
.music__bars { display: flex; align-items: center; gap: 3px; height: 20px; opacity: 0.7; }
.music__bars i {
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleY(var(--level, var(--rest)));
  transition: transform 400ms var(--ease-standard);
}
.music__bars i:nth-child(1) { --rest: 0.4; }
.music__bars i:nth-child(2) { --rest: 0.75; }
.music__bars i:nth-child(3) { --rest: 1; }
.music__bars i:nth-child(4) { --rest: 0.6; }
.music__bars i:nth-child(5) { --rest: 0.85; }
.music__pause { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: 0; }
.music[aria-pressed="true"] .music__bars { opacity: 1; }
.music[aria-pressed="true"] .music__bars i { transition-duration: 90ms; transition-timing-function: linear; }
.music[aria-pressed="true"]:focus-visible .music__bars { opacity: 0; }
.music[aria-pressed="true"]:focus-visible .music__pause { opacity: 1; }
/* Mouse only: on touch screens :hover sticks after a tap, which would show "pause" the moment the music starts. */
@media (hover: hover) and (pointer: fine) {
  .music:hover .music__bars { opacity: 1; }
  .music[aria-pressed="true"]:hover .music__bars { opacity: 0; }
  .music[aria-pressed="true"]:hover .music__pause { opacity: 1; }
}

@media (min-width: 768px) {
  /* The design centres the role + name group slightly left of the bar's centre. */
  .nav__identity { transform: translate(-3px, 1px); }
  .nav__role { display: inline; position: relative; top: -1px; }
  .nav__name { font-size: 24px; line-height: 32px; }
}

/* --- Buttons ----------------------------------------------------------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: var(--stroke-hairline) solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease-standard), color 200ms var(--ease-standard),
    border-color 200ms var(--ease-standard);
}

.button--primary {
  background: var(--action-primary-bg);
  border-color: var(--action-primary-bg);
  color: var(--action-primary-text);
}

.button--primary:hover { background: var(--blue-50); border-color: var(--blue-50); }
.mode-light .button--primary:hover { background: var(--blue-800); border-color: var(--blue-800); }

.button--secondary {
  background: var(--action-secondary-bg);
  border-color: var(--border-frame);
  color: var(--action-secondary-text);
}

.button--secondary:hover { border-color: var(--blue-600); color: var(--white); }

.button--soft,
.button--ghost { border: 0; }

.button--soft {
  background: var(--bg-accent-soft);
  color: var(--blue-600);
}

.button--soft:hover { background: #D3DCF0; }

.button--ghost {
  background: transparent;
  color: var(--action-secondary-text);
}

.button--ghost:hover { color: var(--blue-600); }

.button--unavailable { cursor: not-allowed; }

/* --- Section Header (8px gap everywhere except Works, 16px) ------------- */
.section-header { display: grid; gap: 8px; }

.section-header__title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-section);
  line-height: var(--display-section-lh);
}

.section-header--accent .section-header__title {
  color: var(--blue-600);
  font-size: var(--display-h3);
  line-height: var(--display-h3-lh);
}

.section-header__text {
  color: var(--text-supporting);
  font-size: var(--text-body-m);
  line-height: var(--text-body-m-lh);
  font-weight: 500;
}

/* --- Status Pill ------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgb(31 157 85 / 0.15);
  color: var(--signal-green);
  font-size: 14px;
  line-height: 14px;
  font-weight: 700;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Browser Window ---------------------------------------------------- */
.browser-window {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.browser-window__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: var(--grey-100);
  color: var(--ink-950);
}

.browser-window__dots {
  position: absolute;
  left: 8px;
  display: flex;
  gap: 4px;
}

.browser-window__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grey-350);
}

.browser-window__address {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.browser-window__message {
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--blue-600);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
}

.browser-window__message p { max-width: 300px; }

/* --- Contact window stickers (partials/contact_stickers.html, js/contact.js) ----------------------------------
   Die-cut stickers: a white edge and a soft shadow, each with its own tilt. Positions are % of the window body, so
   they keep clear of the centred question at any size. Motion: stuck on one by one, then a slow drift. */
.browser-window { position: relative; }
.stickers {
  position: absolute;
  inset: 32px 0 0;
  pointer-events: none;
  font-family: "Inter", system-ui, sans-serif;
}
.browser-window__message { position: relative; z-index: 1; }
.contact__window .browser-window__message { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; }
.contact__window .browser-window__message p { max-width: 320px; }
@media (min-width: 1200px) { .contact__window .browser-window__message { font-size: 20px; line-height: 24px; } .contact__window .browser-window__message p { max-width: 290px; } }
.sticker {
  --r: 0deg;
  position: absolute;
  display: block;
  rotate: var(--r);
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 4px 8px rgb(2 19 113 / 0.18));
  transition: scale 250ms var(--ease-standard), rotate 250ms var(--ease-standard);
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .sticker:hover { scale: 1.08; rotate: 0deg; }
}
.sticker--note {
  width: 112px;
  padding: 10px 10px 9px;
  border-radius: 3px;
  background: #fbfbf8;
  box-shadow: 0 0 0 3px #fff;
  color: var(--ink-950);
  font: 11px/14px ui-monospace, "SF Mono", Menlo, monospace;
}
.sticker--note b { display: block; margin-bottom: 4px; font: 700 12px/14px ui-monospace, "SF Mono", Menlo, monospace; }
.sticker--note small { display: block; color: var(--ink-700); font-size: 10px; line-height: 13px; }
.sticker--ia { background: #dfe8fb; width: 118px; }
.sticker--personas { background: #d9f2e4; }
.sticker__clip { position: absolute; top: -14px; left: 14px; width: 12px; height: 26px; fill: none; stroke: #9aa0a8; stroke-width: 1.6; stroke-linecap: round; }
.sticker--personas .sticker__clip { stroke: #3fae6a; }
.sticker__tape { position: absolute; top: -8px; left: 30px; width: 46px; height: 15px; background: rgb(240 226 180 / 0.85); rotate: -4deg; }
.sticker__pin { position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #f08ba6; box-shadow: inset -2px -2px 0 rgb(0 0 0 / 0.15); }
.sticker--chip {
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  white-space: nowrap;
}
.sticker--product { background: var(--blue-600); color: var(--white); }
.sticker--variables { background: var(--white); color: var(--ink-950); box-shadow: 0 0 0 2px var(--ink-950), 0 0 0 5px #fff; }
.sticker--tokens { background: var(--ink-950); color: var(--white); }
.sticker--matcha { background: #a8e6b8; color: #12402a; box-shadow: 0 0 0 2px #12402a, 0 0 0 5px #fff; }
.sticker--select { padding: 4px 6px; }
.sticker__selection {
  position: relative;
  padding: 0 3px;
  background: #cfdcff;
  color: var(--ink-950);
  font: 600 20px/28px var(--font-display);
  box-shadow: 0 0 0 3px #fff;
}
/* Selection handles, like the hero's selected words: a line with a round knob (top-left, bottom-right). */
.sticker__selection::before,
.sticker__selection::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 36px;
  background:
    radial-gradient(circle, var(--blue-600) 4.5px, transparent 5px) no-repeat,
    linear-gradient(var(--blue-600), var(--blue-600)) no-repeat;
  background-size: 10px 10px, 2px 28px;
}
.sticker__selection::before { left: -6px; top: -8px; background-position: 0 0, 4px 8px; }
.sticker__selection::after { right: -6px; top: 0; background-position: 0 26px, 4px 0; }
.sticker--logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--grey-200);
}
.sticker--toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--blue-600);
  box-shadow: 0 0 0 3px #fff;
}
.sticker--toggle i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); }
.sticker--cursor { width: 26px; height: 26px; fill: var(--ink-950); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }

/* Placement (tablet and desktop share the window's proportions). */
.sticker--select     { left: 5%;   top: 9%;  --r: -6deg; }
.sticker--interviews { left: 27%;  top: 6%;  --r: -5deg; }
.sticker--ia         { left: 56%;  top: 5%;  --r: 4deg; }
.sticker--logo       { right: 7%;  top: 9%;  --r: 8deg; }
.sticker--toggle     { right: 5%;  top: 42%; --r: -8deg; }
.sticker--personas   { left: 4%;   top: 45%; --r: -7deg; }
.sticker--product    { left: 30%;  bottom: 13%; --r: -5deg; }
.sticker--variables  { left: 25%;  bottom: 4%;  --r: -3deg; }
.sticker--tokens     { left: 45%;  bottom: 5%;  --r: 6deg; }
.sticker--research   { right: 16%; bottom: 6%;  --r: 5deg; }
.sticker--matcha     { right: 5%;  top: 64%; --r: -6deg; }
.sticker--cursor     { right: 4%;  bottom: 5%; --r: -12deg; }

@media (prefers-reduced-motion: no-preference) {
  .stickers.is-armed:not(.is-stuck) .sticker { opacity: 0; scale: 1.35; rotate: calc(var(--r) - 14deg); }
  .stickers.is-stuck .sticker {
    transition: opacity 260ms var(--ease-standard), scale 380ms cubic-bezier(0.3, 1.5, 0.6, 1),
      rotate 380ms var(--ease-standard);
    transition-delay: calc(var(--i, 0) * 110ms);
    animation: sticker-drift 6s ease-in-out calc(1.6s + var(--i, 0) * -0.7s) infinite alternate;
  }
}
@keyframes sticker-drift {
  from { translate: 0 0; }
  to { translate: 0 -4px; }
}

/* --- Email actions: "Email me" + copy (partials/email_actions.html, js/hello.js) ------------------------------ */
.email-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.email-actions__mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue-600);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.email-actions__copy {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--stroke-hairline) solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--grey-200);
  cursor: pointer;
}
.email-actions__copy .icon--check { display: none; }
.email-actions__copy.is-copied { border-color: #16a34a; color: #16a34a; }
.email-actions__copy.is-copied .icon--copy { display: none; }
.email-actions__copy.is-copied .icon--check { display: block; }
.email-actions__mail:focus-visible, .email-actions__copy:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.email-actions__status { color: #4ade80; font-size: 13px; line-height: 18px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .email-actions__mail:hover { background: var(--grey-100); }
  .email-actions__copy:hover { color: var(--white); border-color: rgb(255 255 255 / 0.4); }
}

/* --- Home availability pill + card (partials/hello_card.html) --------------------------------------------------
   White frosted glass, name first, so it reads as a personal note, not a site notice. Desktop: a pill at
   the bottom centre; hovering, focusing or tapping it opens the card above it. Phones: a compact pill beside the
   music button. */
.hello {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  translate: -50% 0;
  color: var(--ink-950);
}
.intro-active .hello { visibility: hidden; }
.hello__pill,
.hello__card {
  border: var(--stroke-hairline) solid rgb(255 255 255 / 0.6);
  /* See-through enough that the page shows, blurred, behind the glass. */
  background: rgb(255 255 255 / 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.35), 0 2px 8px rgb(0 0 0 / 0.12);
}
.hello__pill { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--radius-lg); }
.hello__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hello__toggle:focus-visible, .hello__mail:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.hello__dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgb(22 163 74 / 0.2);
}
.hello__label { font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.hello__mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--blue-600);
  color: var(--white);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
}
/* The pill turns into the card (and back): the bottom edge stays put and the top edge rises (a clip-path reveal
   that starts exactly at the pill's shape), so it opens upwards like a drawer; the card's text fades in once
   there is room for it. Only one of the two is ever on screen. */
.hello__pill { transition: opacity 120ms var(--ease-standard) 240ms; } /* back only once the card has folded down */
/* Open, the clip reaches past the card so its shadow shows (it keeps the card visible on white sections). */
.hello__card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 368px);
  padding: 18px;
  border-radius: var(--radius-lg);
  translate: -50% 0;
  clip-path: inset(calc(100% - 48px) 0 0 0);
  visibility: hidden;
  transition: clip-path 340ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 340ms;
}
.hello__card > * { opacity: 0; transition: opacity 140ms var(--ease-standard); }
.hello.is-open .hello__card { clip-path: inset(-48px -48px -64px -48px); visibility: visible; transition-delay: 0s; }
.hello.is-open .hello__card > * { opacity: 1; transition: opacity 200ms var(--ease-standard) 160ms; }
.hello.is-open { z-index: 45; } /* above the phone's music button while open */
.hello.is-open .hello__pill { opacity: 0; pointer-events: none; transition-delay: 0s; }
.hello__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgb(14 14 16 / 0.06);
  color: var(--ink-700);
  cursor: pointer;
}
.hello__close:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  /* Mouse: open on hover, back to the pill when the mouse leaves (no close button needed). */
  /* Opens only from the text part of the pill (js/hello.js adds .is-peek); "Email me" is just a button. */
  .hello.is-peek { z-index: 45; }
  .hello.is-peek .hello__card { clip-path: inset(-48px -48px -64px -48px); visibility: visible; transition-delay: 0s; }
  .hello.is-peek .hello__card > * { opacity: 1; transition: opacity 200ms var(--ease-standard) 160ms; }
  .hello.is-peek .hello__pill { opacity: 0; pointer-events: none; transition-delay: 0s; }
  .hello:not(.is-open) .hello__close { display: none; }
  .hello__mail:hover { background: var(--blue-800); }
}
.hello__who { margin-bottom: 14px; }
.hello__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 20px; }
.hello__status { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: #15803d; font-size: 13px; line-height: 18px; font-weight: 600; }
.hello__who { padding-right: 36px; }
.hello__pitch { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; }
.hello__bio { margin-bottom: 16px; color: #4b4d55; font-size: 14px; line-height: 21px; }
.hello__card .email-actions__mail { background: var(--blue-600); color: var(--white); }
.hello__card .email-actions__copy { border-color: rgb(14 14 16 / 0.15); background: rgb(255 255 255 / 0.6); color: var(--ink-700); }
.hello__card .email-actions__status { color: #15803d; font-weight: 600; }
.hello__card .email-actions__copy.is-copied, .hello__card .email-actions__copy.is-copied:hover { border-color: #16a34a; color: #15803d; }
@media (hover: hover) and (pointer: fine) {
  .hello__card .email-actions__mail:hover { background: var(--blue-800); }
  .hello__card .email-actions__copy:hover { color: var(--ink-950); border-color: rgb(14 14 16 / 0.3); }
}

@media (max-width: 767px) {
  /* Beside the floating music button (48px + 16px gap on the right). */
  /* Same bottom line and height (48px) as the floating music button beside it. */
  .hello { left: 16px; right: 76px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: none; }
  .hello__pill { height: 48px; box-sizing: border-box; }
  .hello__pill { gap: 6px; }
  .hello__toggle { flex: 1; min-width: 0; gap: 8px; padding-right: 2px; text-align: left; }
  .hello__label { font-size: 12px; line-height: 15px; white-space: normal; }
  .hello__mail { padding: 0 11px; font-size: 13px; }
  .hello__card { left: 0; width: calc(100vw - 32px); translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hello__card, .hello__card > *, .hello__pill { transition: none !important; }
}

/* Footer availability: one big line with the email actions. */
.footer__availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: -26px 0 48px;
  padding: 20px 0;
  border-top: var(--stroke-hairline) solid var(--blue-800);
  border-bottom: var(--stroke-hairline) solid var(--blue-800);
}
.footer__open {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
}
@media (min-width: 768px) { .footer__open { font-size: 24px; line-height: 30px; } }

/* --- Contact block ----------------------------------------------------- */
.contact { padding: 0 var(--layout-margin); }

.contact__inner {
  display: grid;
  gap: 40px;
}


.availability { margin-top: 40px; }

.availability__label {
  margin-bottom: 7px;
  color: var(--grey-400);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.contact__actions { margin-top: 43px; }
.contact__window { display: none; }

@media (max-width: 767px) {
  .contact__actions { flex-direction: column; gap: 12px; }
  .contact__actions .button { width: 100%; }
}

@media (min-width: 768px) {
  .availability__label { font-size: 20px; }
  .contact__window { display: grid; order: -1; height: 400px; }
}

@media (min-width: 1200px) {
  .contact__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--layout-gutter);
    align-items: center;
  }
  .contact__window { order: 0; }
  .contact__intro .section-header__text { max-width: 530px; }
}

/* --- Footer ("let's talk") --------------------------------------------- */
/* The bottom padding keeps the footer's last lines clear of the floating availability pill (every page). */
.page__footer { padding: 0 var(--layout-margin) 120px; }

.footer {
  padding: 32px 28px;
  border: var(--stroke-hairline) solid var(--blue-600);
  border-radius: var(--radius-lg);
}

.footer__title {
  margin-bottom: 66px;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-section);
  line-height: var(--display-section-lh);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer__links + .footer__links { margin-top: 26px; }

.footer__item { display: grid; gap: 6px; }

.footer__label {
  color: var(--grey-500);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.footer__value {
  color: var(--grey-200);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer__value:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
  .footer__links { flex-direction: row; flex-wrap: wrap; column-gap: 64px; row-gap: 34.5px; }
  .footer__links + .footer__links { margin-top: 54px; }
}

.footer__legal { margin-top: 40px; font-size: 14px; line-height: 20px; }
.footer__legal a { color: var(--grey-500); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--white); }

/* --- Privacy page ------------------------------------------------------ */
.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--layout-margin) var(--layout-section-gap);
  color: var(--grey-200);
  font-size: 16px;
  line-height: 26px;
}
.privacy__title {
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-section);
  line-height: var(--display-section-lh);
}
.privacy__lead { color: var(--grey-400); font-size: 18px; line-height: 28px; }
.privacy h2 { margin: 40px 0 12px; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; }
.privacy ul { display: grid; gap: 14px; padding-left: 20px; list-style: disc; }
.privacy strong { color: var(--white); }
.privacy a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }
.privacy__optout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.privacy__optout[hidden] { display: none; }
.privacy__status { color: var(--grey-400); font-size: 14px; }

/* --- Status pages (coming soon, errors) -------------------------------- */
.status-page {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 120px var(--layout-margin) var(--layout-section-gap);
  text-align: center;
}

.status-page__eyebrow {
  color: var(--grey-400);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.status-page__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--display-title);
  line-height: var(--display-title-lh);
}

.status-page__text {
  max-width: 520px;
  color: var(--text-supporting);
  font-size: var(--text-body-m);
  line-height: var(--text-body-m-lh);
}

.status-page__actions { justify-content: center; margin-top: 16px; }
.status-page + .contact { padding-bottom: var(--layout-section-gap); }

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