@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700&family=Albert+Sans:wght@400;500&family=Geist:wght@400;500;700&display=swap');

:root {
  /* Cursor */
  --cursor-color: #e5547f;

  /* Colors — light mode */
  --bg-home: #f3f1eb;
  --bg-surface: #fbfbfb;
  --bg-card: #1a1717;
  --bg-footer: #e5547f;
  --icon-surface: #fbfbfb;
  --bg-container: #f3f4f6;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-label: #6b7280;
  --text-card: #fbfbfb;
  --text-brand-primary: #e5547f;
  --text-brand-secondary: #f3f1eb;

  --border-container: #9ca3af;
  --border-section-indicator: #C9D8EE;

  /* Spacing scale */
  --spacing-0:    0px;
  --spacing-8:    8px;
  --spacing-16:   16px;
  --spacing-24:   24px;
  --spacing-48:   48px;
  --spacing-64:   64px;
  --spacing-120:  120px;
  --spacing-200:  200px;
  --spacing-320:  320px;

  /* Semantic spacing aliases */
  --spacing-zero:    var(--spacing-0);
  --spacing-tiny:    var(--spacing-8);
  --spacing-small:   var(--spacing-16);
  --spacing-medium:  var(--spacing-24);
  --spacing-large:   var(--spacing-48);
  --spacing-xlarge:  var(--spacing-64);
  --spacing-xxlarge: var(--spacing-120);
  --spacing-3xlarge: var(--spacing-200);
  --spacing-4xlarge: var(--spacing-320);

  /* Shared content column width — nav pill + about card both snap to this */
  --nav-width: 640px;

  /* Section rhythm — page-level side breathing room */
  --section-padding-y: var(--spacing-xlarge);
  --section-padding-x: var(--spacing-xxlarge);

  /* Card/panel internal padding — independent from page sides */
  --card-padding-x: var(--spacing-xlarge);

  /* Border Radius */
  --radius-m: 8px;
  --radius-l: 16px;
  --radius-xl: 24px;

  /* ─── Typography Scale ───────────────────────────────────────── */

  /* Fonts */
  --font-unbounded: 'Unbounded', sans-serif;
  --font-geist: 'Geist', sans-serif;
  --font-albert: 'Albert Sans', sans-serif;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Display */
  --display-bold-size: 72px;       --display-bold-weight: 500;   --display-bold-font: var(--font-unbounded);
  --display-semibold-size: 60px;   --display-semibold-weight: 500; --display-semibold-font: var(--font-unbounded);
  --display-medium-size: 48px;     --display-medium-weight: 500; --display-medium-font: var(--font-unbounded);
  --display-small-size: 40px;      --display-small-weight: 500;  --display-small-font: var(--font-unbounded);
  --display-xsmall-size: 28px;     --display-xsmall-weight: 500; --display-xsmall-font: var(--font-unbounded);

  /* Heading */
  --h1-size: 40px; --h1-weight: 500; --h1-font: var(--font-geist);
  --h2-size: 32px; --h2-weight: 500; --h2-font: var(--font-geist);
  --h3-size: 28px; --h3-weight: 500; --h3-font: var(--font-geist);
  --h4-size: 24px; --h4-weight: 500; --h4-font: var(--font-geist);
  --h5-size: 20px; --h5-weight: 500; --h5-font: var(--font-geist);
  --h6-size: 16px; --h6-weight: 500; --h6-font: var(--font-geist);

  /* Body */
  --body-large-size: 18px;   --body-large-weight: 400;  --body-large-font: var(--font-geist);
  --body-regular-size: 16px; --body-regular-weight: 400; --body-regular-font: var(--font-geist);
  --body-small-size: 14px;   --body-small-weight: 400;  --body-small-font: var(--font-geist);

  /* Label */
  --label-large-size: 14px;  --label-large-weight: 400;  --label-large-font: var(--font-geist);
  --label-medium-size: 12px; --label-medium-weight: 500; --label-medium-font: var(--font-geist);
  --label-small-size: 10px;  --label-small-weight: 500;  --label-small-font: var(--font-geist);

  /* Legacy aliases (backward compat) */
  --font-display: 72px;
  --font-h2: 40px;
  --font-h3: 28px;
  --font-h4: 24px;
  --font-h5: 20px;
  --font-h6: 16px;
  --font-body-large: 18px;
  --font-body-regular: 16px;
  --font-body-small: 14px;
  --font-label: 14px;

  /* Shadow */
  --shadow-default: 0 0 0 1px rgba(0,0,0,0.05), 0 0 8px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 300ms ease;
}

/* ─── DARK MODE TOKENS ────────────────────────────────────────── */

[data-theme="dark"] {
  --bg-home: #111827;
  --bg-surface: #1c1c1e;
  --bg-card: #0d0d0f;
  --bg-container: #1f2128;
  --icon-surface: #1c1c1e;

  --text-primary: #f3f1eb;
  --text-secondary: #9ca3af;
  --text-label: #6b7280;

  --border-container: #374151;

  --shadow-default: 0 0 0 1px rgba(255,255,255,0.06), 0 0 8px rgba(0,0,0,0.5);
}

/* ─── RESET ───────────────────────────────────────────────────── */

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

/* ─── CUSTOM CURSOR ─────────────────────────────────────────────── */

*, *::before, *::after { cursor: none !important; }

/* Restore pointer cursor on interactive elements so clicks register correctly */
a, button, [role="button"], input, select, textarea, label { cursor: none !important; pointer-events: auto !important; }

@media (hover: none) {
  #custom-cursor { display: none !important; }
  *, *::before, *::after { cursor: auto !important; }
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 20px;
  width: 20px;
  background: var(--cursor-color);
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#custom-cursor .cursor-label {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease 0.2s, transform 0.2s ease 0.2s;
}

#custom-cursor.is-expanded {
  width: var(--cursor-expanded-width, 100px);
}

#custom-cursor.on-footer {
  background: var(--text-brand-secondary);
}

#custom-cursor.on-footer .cursor-label {
  color: var(--bg-footer);
}

#custom-cursor.is-expanded .cursor-label {
  opacity: 1;
  transform: translateX(0);
}

#custom-cursor.is-collapsing .cursor-label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

#custom-cursor.is-clicking {
  animation: cursorClick 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cursorClick {
  0%   { opacity: 1;   }
  40%  { opacity: 0.4; }
  100% { opacity: 1;   }
}

html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--bg-surface);
  font-family: 'Geist', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── NAV ─────────────────────────────────────────────────────── */

@keyframes nav-drop {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── JS-NAVBAR (new nav style) ─────────────────────────────── */
.js-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  box-sizing: border-box;
  background: rgba(251, 251, 251, 0.2);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid #ddd;
  z-index: 100;
  transition: background 0.3s ease;
}

.js-navbar-logo {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #e5547f;
  text-decoration: none;
  white-space: nowrap;
  background: #f3f1eb;
  padding: 2px 4px;
  line-height: normal;
  position: relative;
}

.js-navbar-logo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background: #e5547f;
  transition: width 0.25s ease, left 0.25s ease;
}

.js-navbar-logo:hover::after {
  width: 100%;
  left: 0%;
}

.js-navbar-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-tiny);
}

.js-navbar {
  view-transition-name: navbar;
}

.js-navbar-link {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: normal;
  padding: 6px 8px;
  border-radius: var(--radius-m);
  position: relative;
}

.js-navbar-link:hover {
  color: var(--text-primary);
}

.js-navbar-link.is-active {
  color: var(--text-brand-primary);
}

.js-navbar-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% - 16px);
  height: 1.5px;
  background: var(--text-brand-primary);
  transform: translateX(-50%);
}

[data-theme="dark"] .js-navbar-link:hover {
  color: var(--text-primary);
}

[data-theme="dark"] .js-navbar-link.is-active {
  color: var(--text-brand-primary);
}

.js-navbar-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.js-navbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1;
}

.js-navbar-icon:hover { color: #111827; }

.js-navbar-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

[data-theme="dark"] .js-navbar {
  background: rgba(15, 15, 15, 0.2);
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .js-navbar-logo { background: rgba(243,241,235,0.1); }
[data-theme="dark"] .js-navbar-link { color: #9ca3af; }
[data-theme="dark"] .js-navbar-link:hover { color: #f3f4f6; }
[data-theme="dark"] .js-navbar-icon { color: #9ca3af; }
[data-theme="dark"] .js-navbar-icon:hover { color: #f3f4f6; }

.section-nav {
  /* Navbar is fixed — no space needed in flow */
  padding: 0;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: var(--spacing-medium);
  left: 50%;
  transform: translateX(-50%);
  animation: nav-drop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 300ms;
  /* 800px on wide screens; shrinks with 24px breathing room per side on narrow screens */
  width: min(var(--nav-width), calc(100vw - var(--spacing-xlarge)));
  z-index: 100;
  pointer-events: all;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-default);
  border-radius: var(--radius-l);
  padding: var(--spacing-small) var(--spacing-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-small);
  transition: background-color var(--transition-slow), box-shadow var(--transition-slow);
}

.nav-logo {
  flex-shrink: 0;
  width: 52px;
}

.logo-img {
  width: 36px;
  height: 26px;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.logo-img:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-small);
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: var(--spacing-4) var(--spacing-8);
  border-radius: var(--radius-m);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-brand-primary);
  background-color: rgba(229, 84, 127, 0.06);
}

.nav-link.is-active {
  color: var(--text-brand-primary);
  background-color: rgba(229, 84, 127, 0.08);
}

.nav-link:focus-visible {
  outline: 2px solid var(--text-brand-primary);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
}

/* ─── THEME TOGGLE PILL ───────────────────────────────────────── */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
  border-radius: 14px;
  transition: transform var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.06);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--text-brand-primary);
  outline-offset: 3px;
}

.toggle-track {
  display: block;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background-color: #e5547f;
  position: relative;
  transition: background-color var(--transition-slow);
}

[data-theme="dark"] .toggle-track {
  background-color: #374151;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  transition: transform var(--transition-base);
  transform: translateX(24px);
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(0);
}

/* ─── HERO ────────────────────────────────────────────────────── */

.section-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(54px + var(--spacing-medium)) var(--section-padding-x) var(--spacing-medium);
  gap: var(--spacing-large);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-medium);
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-medium);
}

.hero-title {
  font-family: var(--display-bold-font);
  font-weight: var(--display-bold-weight);
  font-size: clamp(40px, 10vw, var(--display-bold-size));
  color: var(--text-brand-primary);
  text-align: center;
  white-space: nowrap;
  line-height: normal;
}

#titlePrefix {
  color: var(--text-brand-primary);
}

#titleName {
  color: var(--text-brand-primary);
}

.hero-subtitle {
  font-family: var(--h5-font);
  font-weight: var(--body-large-weight);
  font-size: var(--h5-size);
  color: var(--text-primary);
  text-align: center;
  max-width: 768px;
  line-height: normal;
  transition: color var(--transition-slow);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--spacing-small);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: var(--font-label);
  color: var(--text-label);
  text-align: center;
  margin-top: var(--spacing-medium);
}

.hero-meta > * {
  background-color: var(--bg-home);
  padding: 4px var(--spacing-tiny);
  border-radius: var(--radius-m);
  white-space: nowrap;
}

/* ─── HERO TYPEWRITER INTRO ───────────────────────────────────── */

.hero-content {
  position: relative;
}

#heroTextBox {
  position: relative;
  width: fit-content;
}

.hero-title {
  opacity: 0;
}

.hero-subtitle {
  opacity: 0;
}

.hero-meta {
  opacity: 0;
}

.hero-meta > * {
  opacity: 0;
  transform: translateY(8px);
}

.scroll-indicator {
  opacity: 0;
}

/* Figma bounding box — JS drives clip-path and opacity */
.figma-box {
  position: absolute;
  inset: -32px;
  border: 2.5px solid #694A38;
  pointer-events: none;
  opacity: 1;
  clip-path: inset(0 100% 100% 0);
  z-index: 5;
}

/* Figma collaborator cursor — JS controls transform + opacity */
.figma-cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}

.figma-cursor-svg {
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
}

.figma-cursor-label {
  background: #e5547f;
  color: #fff;
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 12px;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* Handles — positioned by JS, outside the clipped figma-box */
.fh {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fbfbfb;
  border: 1.5px solid #694A38;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.15s ease;
}

.fh.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Typing cursor */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  background: #e5547f;
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursor-blink 0.75s step-end infinite;
}

.hero-subtitle.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background: #e5547f;
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursor-blink 0.75s step-end infinite;
}


/* ─── HERO CTA ────────────────────────────────────────────────── */

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-small) var(--spacing-medium);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-l);
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: var(--font-body-small);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base), background-color var(--transition-base);
}

.hero-cta:hover {
  border-color: var(--text-brand-primary);
  color: var(--text-brand-primary);
  background-color: rgba(229, 84, 127, 0.04);
}

/* ─── SCROLL INDICATOR ────────────────────────────────────────── */

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-medium);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  opacity: 0.6;
  cursor: pointer;
  animation: scroll-bounce 2.2s ease-in-out infinite;
  transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 0.8;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─── AVAILABILITY BADGE ──────────────────────────────────────── */

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.available-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.available-dot::before,
.available-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #22c55e;
}

.available-dot::after {
  animation: dot-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes dot-ping {
  0%   { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ─── WORK ────────────────────────────────────────────────────── */

.section-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-padding-y) var(--spacing-200);
  background-color: var(--bg-surface);
}

.work-grid {
  display: flex;
  gap: var(--spacing-large);
  width: 100%;
  max-width: clamp(1040px, 65vw, 1600px);
  align-items: flex-start;
}

.work-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-large);
  min-width: 0;
}

.work-card {
  background-color: rgba(0,0,0,0) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small); /* 16px between image and text area */
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card--tall,
.work-card--short {
  min-height: unset;
}

.work-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card.is-visible:hover {
  transform: translateY(-6px);
}

.work-card.is-visible:hover .card-image {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-image {
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-image img,
.card-image video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: transform var(--transition-slow);
}

.card-image video {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-image--empty {
  background-color: var(--bg-surface);
}

.work-card:hover .card-image img,
.work-card:hover .card-image video {
  transform: scale(1.03);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-tiny);
}

.card-meta {
  font-family: var(--label-large-font);
  font-weight: var(--label-large-weight);
  font-size: var(--label-large-size);
  color: var(--text-label);
  line-height: normal;
  transition: color var(--transition-slow);
}

.card-title {
  font-family: var(--h6-font);
  font-weight: var(--h6-weight);
  font-size: var(--h6-size);
  color: var(--text-primary);
  line-height: normal;
  letter-spacing: 0;
  transition: color var(--transition-slow);
}

.card-description {
  display: none;
}

.card-tags {
  display: block;
}

.card-tags .tag:not(:last-child)::after {
  content: ' ·';
  color: var(--text-label);
}

.tag {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: var(--label-large-font);
  font-weight: var(--label-large-weight);
  font-size: var(--label-large-size);
  color: var(--text-label);
  white-space: normal;
  line-height: normal;
  transition: none;
}

.tag:hover {
  background: none;
  border: none;
  color: var(--text-label);
}

/* ─── LIGHTBOX TRIGGER ────────────────────────────────────────── */
.lightbox-trigger {
  cursor: zoom-in;
  position: relative;
  display: block;
}

.lightbox-trigger-wrap {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.lightbox-trigger-wrap .lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.lightbox-trigger-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}

.lightbox-trigger-wrap:hover::after {
  background: rgba(0, 0, 0, 0.18);
}

.lightbox-trigger-wrap .lightbox-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  z-index: 2;
}

.lightbox-trigger-wrap:hover .lightbox-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ─── ABOUT ───────────────────────────────────────────────────── */

.section-about {
  padding: var(--section-padding-y) var(--spacing-large);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-card {
  /* Matches the nav pill width exactly */
  width: min(var(--nav-width), calc(100vw - var(--spacing-xlarge)));
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xlarge) var(--card-padding-x);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-64);
  transition: background-color var(--transition-slow);
}

.about-intro {
  display: flex;
  gap: var(--spacing-large);
  align-items: flex-end;
}

.about-heading {
  flex-shrink: 0;
  font-size: var(--font-h2);
  line-height: normal;
  white-space: nowrap;
  color: var(--text-brand-primary);
}

.about-heading-light {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
}

.about-heading-medium {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
}

.about-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
  font-family: var(--body-large-font);
  font-weight: var(--body-large-weight);
  font-size: var(--body-large-size);
  color: var(--text-primary);
  line-height: normal;
  transition: color var(--transition-slow);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-container);
  width: 100%;
  transition: border-color var(--transition-slow);
}

/* ─── RESUME ──────────────────────────────────────────────────── */

.resume-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xlarge);
}

.resume-section {
  display: flex;
  gap: var(--spacing-medium);
  align-items: flex-start;
}

.resume-label {
  flex-shrink: 0;
  width: 159px;
}

.resume-label h3 {
  font-family: var(--h5-font);
  font-weight: var(--h5-weight);
  font-size: var(--h5-size);
  color: var(--text-primary);
  line-height: normal;
  white-space: nowrap;
  transition: color var(--transition-slow);
}

.resume-divider-vertical {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background-color: var(--border-container);
  transition: background-color var(--transition-slow);
}

.resume-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
  min-width: 0;
}

.resume-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-medium);
}

.resume-company {
  display: flex;
  align-items: center;
  gap: var(--spacing-small);
}

.company-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--icon-surface);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-default);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4);
  overflow: hidden;
  transition: background-color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.company-icon img {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.company-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-tiny);
}

.company-name {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: var(--font-label);
  color: var(--text-primary);
  letter-spacing: 0.14px;
  line-height: 1.4;
  transition: color var(--transition-slow);
}

.company-role {
  font-family: var(--body-small-font);
  font-weight: var(--body-small-weight);
  font-size: var(--body-small-size);
  color: var(--text-primary);
  letter-spacing: 0.14px;
  line-height: 1.4;
  transition: color var(--transition-slow);
}

.resume-date {
  font-family: var(--body-small-font);
  font-weight: var(--body-small-weight);
  font-size: var(--body-small-size);
  color: var(--text-label);
  letter-spacing: 0.14px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */

.footer {
  background-color: #e5547f;
  padding: var(--spacing-large) var(--spacing-xxlarge) var(--spacing-medium);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(var(--spacing-small), 4vw, var(--spacing-medium));
}

.footer-label {
  font-family: var(--body-large-font);
  font-size: var(--body-large-size);
  font-weight: var(--body-large-weight);
  color: rgba(243, 241, 235, 0.95);
  letter-spacing: 0.01em;
  margin: 0;
  min-width: 0;
}

.footer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  transform: translateY(-2px);
  opacity: 0.8;
}

.footer-icon:focus-visible {
  outline: 2px solid #f3f1eb;
  outline-offset: 4px;
}

.footer-icon img {
  width: 32px;
  height: auto;
  display: block;
}

/* ── Social rows ── */
.footer-socials {
  display: flex;
  flex-direction: column;
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55em;
  padding: var(--spacing-small) 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 241, 235, 0.2);
  position: relative;
  transition: border-color 0.4s ease;
}
.footer-btn:first-child {
  border-top: 1px solid rgba(243, 241, 235, 0.2);
}

.footer-btn-label {
  font-family: var(--font-unbounded);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 42px);
  color: rgba(243, 241, 235, 0.92);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.4s ease,
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Arrow sits inline, baseline-aligned with text */
.footer-btn-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05em;
  opacity: 0.55;
  transition: opacity 0.4s ease,
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-btn-arrow svg {
  width: clamp(12px, 1.8vw, 18px);
  height: clamp(12px, 1.8vw, 18px);
}

.footer-btn:hover {
  border-bottom-color: rgba(243, 241, 235, 0.4);
}
.footer-btn:hover .footer-btn-label {
  color: #f3f1eb;
  transform: translateX(6px);
}
.footer-btn:hover .footer-btn-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

.footer-btn:focus-visible {
  outline: 2px solid #f3f1eb;
  outline-offset: 4px;
}

/* ── Credit ──
   Row wraps to a stacked layout only once there's truly no room —
   the shrinking gap (not hiding either side) absorbs narrower widths first. */
.footer-credit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: clamp(var(--spacing-small), 4vw, var(--spacing-medium));
  row-gap: var(--spacing-8);
}
.footer-credit-left,
.footer-credit-right {
  font-family: var(--body-regular-font);
  font-size: var(--body-regular-size);
  font-weight: var(--body-regular-weight);
  color: rgba(243, 241, 235, 0.8);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer {
    padding-left: var(--spacing-medium);
    padding-right: var(--spacing-medium);
  }
}

/* ─── JOURNAL ─────────────────────────────────────────────────── */

/* ─── HERO SIGNATURE ROW ──────────────────────────────────────── */

.hero-signature {
  display: none;
}

/* ─── YOGA FIGURE ─────────────────────────────────────────────── */

.yoga-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.yoga-svg {
  width: 110px;
  height: auto;
  display: block;
  overflow: visible;
}

.yf-limb {
  fill: none;
  stroke: var(--text-primary);
  stroke-opacity: 0.26;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-slow);
}

.yf-back {
  stroke-opacity: 0.11;
}

#yf-head {
  fill: none;
  stroke: var(--text-primary);
  stroke-opacity: 0.26;
  stroke-width: 1.8;
  transition: stroke var(--transition-slow);
}

.yoga-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  letter-spacing: 0.55px;
  color: var(--text-label);
  opacity: 0.6;
  white-space: nowrap;
  transition: opacity 220ms ease, color var(--transition-slow);
}

.yoga-scene:hover .yoga-label {
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .yoga-svg { opacity: 0.45; }
}

/* ─── JOURNAL ─────────────────────────────────────────────────── */

.journal-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.journal {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms ease;
}

.journal:hover {
  transform: translateY(-3px) scale(1.025);
}

.journal:focus-visible {
  outline: 2px solid var(--text-brand-primary);
  outline-offset: 8px;
  border-radius: 4px;
}

.journal-book {
  display: flex;
  align-items: stretch;
  height: 88px;
  filter:
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.10))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.07));
  transition: filter var(--transition-slow);
}

[data-theme="dark"] .journal-book {
  filter:
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.40))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.30));
}

/* ── Pages ── */

.journal-page-left {
  width: 62px;
  background-color: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-right: none;
  border-radius: 3px 0 0 3px;
  position: relative;
  overflow: hidden;
  box-shadow: inset -3px 0 5px -2px rgba(0, 0, 0, 0.06);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

[data-theme="dark"] .journal-page-left {
  background-color: #252529;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset -3px 0 5px -2px rgba(0, 0, 0, 0.25);
}

/* Ruled lines (shared) */
.page-ruled {
  position: absolute;
  inset: 0;
  top: 18px;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.065) 10px,
    rgba(0, 0, 0, 0.065) 11px
  );
  pointer-events: none;
}

[data-theme="dark"] .page-ruled {
  background-image: repeating-linear-gradient(
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.065) 10px,
    rgba(255, 255, 255, 0.065) 11px
  );
}

/* Margin line (both pages) */
.journal-page-left::before,
.journal-page-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  bottom: 0;
  width: 1px;
  background-color: rgba(229, 84, 127, 0.18);
  z-index: 1;
  pointer-events: none;
}

/* Bookmark ribbon */
.journal-ribbon {
  position: absolute;
  top: 0;
  right: 13px;
  width: 5px;
  height: 22px;
  background-color: var(--text-brand-primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  z-index: 2;
}

/* Spine */
.journal-spine {
  width: 7px;
  flex-shrink: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.09),
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.09)
  );
  border-top: 1px solid rgba(0, 0, 0, 0.11);
  border-bottom: 1px solid rgba(0, 0, 0, 0.11);
  transition: border-color var(--transition-slow);
}

[data-theme="dark"] .journal-spine {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.40),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.40)
  );
  border-color: rgba(255, 255, 255, 0.08);
}

/* Right page wrapper — provides 3-D perspective context */
.journal-page-right-wrap {
  width: 62px;
  flex-shrink: 0;
  perspective: 500px;
}

/* Right page — the element that actually rotates */
.journal-page-right {
  width: 62px;
  height: 88px;
  transform-origin: left center;
  background-color: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-left: none;
  border-radius: 0 3px 3px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

[data-theme="dark"] .journal-page-right {
  background-color: #252529;
  border-color: rgba(255, 255, 255, 0.09);
}

/* Quote text */
.journal-quote-text {
  position: relative;
  z-index: 1;
  font-family: 'Geist', sans-serif;
  font-size: 7.5px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 14px 0 10px;
  letter-spacing: 0.15px;
  transition: color var(--transition-slow);
}

/* Label */
.journal-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  letter-spacing: 0.55px;
  color: var(--text-label);
  opacity: 0.6;
  transition: opacity 220ms ease, color var(--transition-slow);
}

.journal-scene:hover .journal-label {
  opacity: 0.9;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */

/* Work section — reduce side padding as viewport narrows */
@media (max-width: 1280px) {
  .section-work {
    padding-left: var(--spacing-96);
    padding-right: var(--spacing-96);
  }
}

@media (max-width: 1100px) {
  .section-work {
    padding-left: var(--spacing-large);
    padding-right: var(--spacing-large);
  }
}

/* Tablet — nav links compress, padding loosens */
@media (max-width: 860px) {
  .nav-links {
    gap: var(--spacing-4);
  }

  .nav-link {
    font-size: 11px;
    padding: var(--spacing-4) var(--spacing-4);
  }

  .about-card {
    padding-left: var(--spacing-large);
    padding-right: var(--spacing-large);
  }
}

/* Mobile — hero signature stacks, work cards stack */
@media (max-width: 1024px) {
  .hero-signature {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-24);
  }

  .work-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 100%;
  }

  .work-col {
    display: contents;
  }

  [data-mobile-order="1"] { order: 1; }
  [data-mobile-order="2"] { order: 2; }
  [data-mobile-order="3"] { order: 3; }
  [data-mobile-order="4"] { order: 4; }

  .work-card--tall,
  .work-card--short {
    min-height: unset;
  }

  .work-card {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .section-work {
    padding-left: var(--spacing-medium);
    padding-right: var(--spacing-medium);
  }

}

/* Small mobile — hero section padding tightens */
@media (max-width: 480px) {
  .section-hero {
    padding-left: var(--spacing-medium);
    padding-right: var(--spacing-medium);
  }
}

/* Mobile — hide the Figma box, handles and cursor; JS runs the text animation */
@media (max-width: 600px) {
  .figma-box,
  .fh,
  .figma-cursor {
    display: none !important;
  }

  /* Typing cursor blinks 3 times then disappears */
  .typing-cursor {
    animation: cursor-blink 0.75s step-end 3, cursor-hide 0s step-end 2.25s forwards;
  }
}

@keyframes cursor-hide {
  to { opacity: 0; }
}

/* Hero meta tags wrap when there isn't enough room for all three */
@media (max-width: 1000px) {
  .hero-meta {
    flex-wrap: wrap;
  }
}

/* Large mobile — hide middle nav links, keep logo + toggle */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .navbar {
    padding: var(--spacing-small) var(--spacing-small);
  }

  .about-card {
    padding-left: var(--spacing-medium);
    padding-right: var(--spacing-medium);
  }

  .about-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-medium);
  }

  .about-heading {
    white-space: normal;
    font-size: var(--font-h3);
  }
}
