/* ============================================================================
   Brivon — Modern Photography Studio HTML Template
   Free template by html.design.
   Visual direction: editorial-brutalist photography studio. Near-black ground
   throughout (#0A0A0C), paper-ivory text (#F4F4F0), one electric lime accent
   (#D4FF3D) used sparingly on tags, hover states, and signature micro-elements.
   Display in Boldonse (heavy condensed display, line-height 1.25), body in
   Inter Tight, captions in Geist Mono. Designed for commercial photographers,
   editorial studios, documentary teams, and visual-arts producers.
   No editorial serif, no cream zone, no warm earth — palette is intentionally
   cool-dark with one saturated accent.
   ============================================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Palette — charcoal ground + electric lime accent.
     Distinct from every shipped html.design template. */
  --ink-000: #050507;
  /* deepest — used behind hero photo */
  --ink-deep: #0A0A0C;
  /* primary surface, body bg */
  --ink: #111114;
  /* default cards / sections */
  --ink-card: #18181C;
  /* elevated card body */
  --ink-elev: #232328;
  /* hover / next elevation */
  --ink-line: rgba(244, 244, 240, 0.08);
  --ink-line-soft: rgba(244, 244, 240, 0.04);
  --ink-rule: rgba(244, 244, 240, 0.16);

  --paper: #F4F4F0;
  /* primary text on dark */
  --paper-soft: #C9C9C2;
  /* secondary text */
  --paper-mute: #80807A;
  /* tertiary / captions */
  --paper-deep: #5A5A55;
  /* hairlines / quiet labels */
  --paper-tile: #F4F4F0;
  /* reverse-tile background */
  --paper-tile-2: #E5E5DE;
  /* alt reverse tile */

  --lime: #D4FF3D;
  /* signature accent — electric lime */
  --lime-soft: #E2FF73;
  /* lighter variant */
  --lime-deep: #9CCB1F;
  /* hover / pressed */
  --lime-glow: rgba(212, 255, 61, 0.20);

  --cobalt: #1A2EFF;
  /* tiny secondary — used once on prints CTA hover only */

  /* Semantic surfaces */
  --bg: var(--ink-deep);
  --bg-alt: var(--ink-000);
  --bg-card: var(--ink-card);
  --bg-elev: var(--ink-elev);
  --bg-tile: var(--paper-tile);
  /* reverse-mode sections */

  --fg: var(--paper);
  --fg-soft: var(--paper-soft);
  --fg-mute: var(--paper-mute);
  --fg-deep: var(--paper-deep);
  --fg-on-tile: var(--ink-deep);
  --fg-on-tile-mute: #5A5A55;

  --rule: var(--ink-line);
  --rule-strong: var(--ink-rule);
  --rule-lime: rgba(212, 255, 61, 0.35);

  --primary: var(--lime);
  --primary-deep: var(--lime-deep);
  --accent: var(--lime);

  /* Typography — Boldonse display, Inter Tight body, Geist Mono captions.
     Per memory: Boldonse needs line-height 1.25 minimum, never below 1.15. */
  --font-display: 'Boldonse', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 0.95vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 1.75rem + 2.6vw, 4rem);
  --text-5xl: clamp(2.8rem, 1.9rem + 3.4vw, 4.75rem);
  --text-mega: clamp(2.5rem, 1.6rem + 3vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --space-10: 9rem;
  --space-11: 12rem;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  --container: 1340px;
  --container-wide: 1480px;
  --container-narrow: 1080px;
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 24px 56px -18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 48px 96px -32px rgba(0, 0, 0, 0.6);
  --shadow-lime: 0 22px 60px -22px rgba(212, 255, 61, 0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--lime);
  color: var(--ink-000);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink-000);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  z-index: 999;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding-block: var(--space-9);
}

section.compact {
  padding-block: var(--space-7);
}

section.snug {
  padding-block: var(--space-8);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.flex {
  display: flex;
}

.center-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ---------- 4. Typography ----------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}

.eyebrow--on-tile {
  color: var(--fg-on-tile-mute);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  /* Per memory: Boldonse-class display fonts require >= 1.2 line-height. */
  line-height: 1.25;
  text-transform: uppercase;
}

h1 {
  font-size: var(--text-5xl);
  line-height: 1.22;
}

h2 {
  font-size: var(--text-4xl);
  line-height: 1.25;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.3;
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.32;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.label--lime {
  color: var(--lime);
}

/* ---------- 5. Header / Nav --------------------------------------------- */

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 50;

  background: transparent;
  border: 0;

  pointer-events: none;
}

.site-header .container {
  display: flex;
  justify-content: center;
}

.nav {
  width: min(1180px, calc(100% - 40px));

  display: flex;
  align-items: center;
  gap: var(--space-5);

  padding: 12px 16px 12px 22px;

  background: rgba(10, 10, 12, 0.88);

  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);

  border: 1px solid var(--rule-strong);
  border-radius: 14px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);

  pointer-events: auto;
}


/* ---------- Brand -------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);

  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;

  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;

  background: var(--lime);

  display: inline-block;
  position: relative;

  border-radius: 4px;
}

.brand-mark::after {
  content: '';

  position: absolute;
  inset: 6px;

  background: var(--ink-000);

  clip-path: polygon(0 0,
      100% 0,
      100% 60%,
      50% 100%,
      0 60%);
}


/* ---------- Navigation Links -------------------------------------------- */

.nav-links {
  display: flex;

  gap: var(--space-5);

  margin-inline-start: auto;

  font-family: var(--font-mono);
  font-size: var(--text-sm);

  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--fg-soft);

  padding-block: 4px;

  border-bottom: 1px solid transparent;

  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
  border-bottom-color: var(--lime);
}

.nav-links a[aria-current="page"],
.nav-links a.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}


/* ---------- CTA ---------------------------------------------------------- */

.nav-cta-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}


/* ---------- Mobile Toggle ------------------------------------------------ */

.nav-toggle {
  display: none;

  width: 40px;
  height: 40px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;

  background: var(--fg);

  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';

  position: absolute;
  left: 0;
  right: 0;

  height: 2px;

  background: var(--fg);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}


/* ---------- Mobile Drawer ------------------------------------------------ */

.mobile-drawer {
  position: fixed;

  inset: 0;

  background: var(--ink-000);

  z-index: 200;

  padding: var(--space-7) var(--gutter);

  display: none;

  flex-direction: column;

  gap: var(--space-5);

  font-family: var(--font-display);

  font-size: var(--text-2xl);

  text-transform: uppercase;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  color: var(--fg);
}

.mobile-drawer a:hover {
  color: var(--lime);
}

.drawer-close {
  align-self: flex-end;

  font-family: var(--font-mono);
  font-size: var(--text-sm);

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--fg-mute);
}


/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 900px) {

  .site-header {
    top: 12px;
  }

  .nav {
    width: calc(100% - 24px);

    padding: 10px 12px 10px 16px;

    border-radius: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta-row .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

}

/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--lime);
  color: var(--ink-000);
}

.btn--primary:hover {
  background: var(--lime-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--ghost-on-tile {
  background: transparent;
  color: var(--fg-on-tile);
  border-color: rgba(10, 10, 12, 0.2);
}

.btn--ghost-on-tile:hover {
  border-color: var(--ink-000);
}

.btn--dark {
  background: var(--ink-000);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--ink-elev);
}

.btn--sm {
  padding: 8px 14px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 28px;
}

.btn .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- 7. Hero ----------------------------------------------------- */
.hero {
  padding-block: var(--space-8) var(--space-9);
  background:
    radial-gradient(900px 460px at 88% 0%, var(--lime-glow), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(26, 46, 255, 0.10), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-text>*+* {
  margin-top: var(--space-5);
}

.hero-headline {
  /* font-size: var(--text-mega); */
  font-size: var(--text-3xl);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}

.hero-headline .lime {
  color: var(--lime);
}

.hero-headline .slash {
  color: var(--paper-mute);
  font-weight: 400;
}

.hero-sub {
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 56ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  margin-top: var(--space-6);
}

.hero-meta strong {
  color: var(--fg);
  font-weight: 500;
}

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.floating-tag {
  position: absolute;
  background: var(--ink-000);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow);
}

.floating-tag .pill {
  background: var(--lime);
  color: var(--ink-000);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.ft-top {
  top: 16px;
  left: 16px;
}

.ft-bottom {
  bottom: 16px;
  right: 16px;
}

.ft-mid-r {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

/* ---------- 8. Stat strip ---------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--rule);
  margin-top: var(--space-7);
}

.stat-cell {
  padding: var(--space-6) var(--space-5);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stat-cell:last-child {
  border-inline-end: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}

.stat-num .lime {
  color: var(--lime);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 9. Section headers ----------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}

.section-head h2 {
  font-size: var(--text-4xl);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: -0.018em;
}

.section-head .lede {
  max-width: 48ch;
}

/* ---------- 10. Work grid (selected work, archive) --------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.work-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
}

.work-item .wm {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
}

.work-item:hover img {
  transform: scale(1.04);
  filter: contrast(1.05);
}

.work-item .wm-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink-000);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-item .wm-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: var(--ink-000);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}

.work-item:hover .wm-arrow {
  transform: translate(2px, -2px);
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-family: var(--font-mono);
}

.work-meta .wm-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.work-meta .wm-cap {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.work-item--xl {
  grid-column: span 8;
}

.work-item--lg {
  grid-column: span 7;
}

.work-item--md {
  grid-column: span 5;
}

.work-item--sm {
  grid-column: span 4;
}

.work-item--smm {
  grid-column: span 3;
}

.work-item--smm .wm {
  aspect-ratio: 1 / 1;
}

.work-item--smm .wm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-item--xl .wm {
  aspect-ratio: 16 / 11;
}

.work-item--lg .wm {
  aspect-ratio: 4 / 3;
}

@media (max-width: 991px) {

  .work-item--smm {
    grid-column: span 4;
  }

}


@media (max-width: 700px) {

  .work-item--smm {
    grid-column: span 6;
  }

}

/* ---------- 11. Reverse-mode tile (paper section) ---------------------- */
.tile-section {
  background: var(--bg-tile);
  color: var(--fg-on-tile);
  position: relative;
}

.tile-section .eyebrow {
  color: var(--fg-on-tile-mute);
}

.tile-section .eyebrow .dot {
  background: var(--ink-000);
}

.tile-section .lede {
  color: #2A2A28;
}

.tile-section h1,
.tile-section h2,
.tile-section h3,
.tile-section h4 {
  color: var(--ink-000);
}

.tile-section .label {
  color: var(--fg-on-tile-mute);
}

.tile-section .mono {
  color: #2A2A28;
}

.tile-section .btn--ghost {
  color: var(--ink-000);
  border-color: rgba(10, 10, 12, 0.25);
}

.tile-section .btn--ghost:hover {
  border-color: var(--ink-000);
}

.tile-section hr {
  border: 0;
  border-top: 1px solid rgba(10, 10, 12, 0.15);
}

/* ---------- 12. Chapter opener ----------------------------------------- */
.chapter {
  padding-block: var(--space-9);
}

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-8);
  align-items: start;
}

.chapter-grid .label {
  margin-bottom: var(--space-4);
}

.chapter-body p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 60ch;
}

.tile-section .chapter-body p {
  color: #2A2A28;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-block: var(--space-6);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--lime);
  max-width: 22ch;
}

.tile-section .pull-quote {
  color: var(--ink-000);
  border-color: var(--ink-000);
}

.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: var(--space-3);
  font-style: normal;
}

/* ---------- 13. Capability bento --------------------------------------- */
.cap-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.cap-card:hover {
  border-color: var(--rule-lime);
  background: var(--ink-elev);
}

.cap-card .label {
  color: var(--fg-mute);
}

.cap-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}

.cap-card p {
  color: var(--fg-soft);
}

.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.cap-card--wide {
  grid-column: span 6;
}

.cap-card--std {
  grid-column: span 3;
}

.cap-card--tall {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
}

.cap-card--tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-card--tall .cap-tall-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, 0.85));
  color: var(--paper);
}

.cap-card--tall {
  position: relative;
}

/* ---------- 14. Process / numbered steps ------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}

.process-card {
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--lime);
}

.process-card h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
}

.process-card p {
  color: var(--fg-soft);
  font-size: var(--text-base);
}

/* ---------- 15. Split-image chapter ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-9);
}

.split--reverse .split-text {
  order: 2;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.split-text h2 {
  font-size: var(--text-3xl);
  line-height: 1.22;
  text-transform: uppercase;
}

.split-text p {
  color: var(--fg-soft);
  font-size: var(--text-base);
  line-height: 1.6;
}

.tile-section .split-text p {
  color: #2A2A28;
}

.split-fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.tile-section .split-fact-list {
  border-top-color: rgba(10, 10, 12, 0.15);
}

.split-fact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}

.tile-section .split-fact-list li {
  border-bottom-color: rgba(10, 10, 12, 0.15);
}

.split-fact-list li b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.tile-section .split-fact-list li b {
  color: var(--fg-on-tile-mute);
}

.split-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-img .ft-corner {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--lime);
  color: var(--ink-000);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 16. Press / logo strip ------------------------------------- */
.press-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-7);
  border-block: 1px solid var(--rule);
}

.press-strip .label {
  font-size: var(--text-xs);
}

.press-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: center;
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.press-row span {
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.press-row span:hover {
  color: var(--fg);
}

/* ---------- 17. Pricing / service tiers --------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tier-card.featured {
  background: var(--paper-tile);
  color: var(--ink-000);
  border-color: var(--paper-tile);
  box-shadow: var(--shadow-lime);
}

.tier-card.featured .label,
.tier-card.featured .tier-meta,
.tier-card.featured .tier-list li,
.tier-card.featured p {
  color: #2A2A28;
}

.tier-card.featured .label {
  color: var(--fg-on-tile-mute);
}

.tier-card.featured .tier-list li::before {
  background: var(--ink-000);
}

.tier-card.featured h3 {
  color: var(--ink-000);
}

.tier-card .label {
  color: var(--fg-mute);
}

.tier-card h3 {
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

.tier-meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
}

.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.tier-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--fg-soft);
}

.tier-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-card.featured .tier-list li {
  color: #2A2A28;
}

.tier-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: var(--space-3);
}

.tier-card.featured .tier-divider {
  border-top-color: rgba(10, 10, 12, 0.15);
}

/* ---------- 18. Forms --------------------------------------------------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-row--full {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--ink-000);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  font-family: var(--font-body);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-deep);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--lime);
  background: var(--ink-elev);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.form-actions small {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* ---------- 19. FAQ ----------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}

.faq-card h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.faq-card p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

/* ---------- 20. Journal / notes grid ----------------------------------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}

.journal-card .j-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

.journal-card .j-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  text-transform: uppercase;
}

.journal-card .j-meta {
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 21. Awards strip ------------------------------------------- */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--rule);
}

.award-cell {
  padding: var(--space-6) var(--space-4);
  border-inline-end: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}

.award-cell:last-child {
  border-inline-end: 0;
}

.award-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--lime);
}

.award-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 22. Team grid ---------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.team-card .t-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-card);
}

.team-card .t-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: filter var(--dur-base) var(--ease-out);
}

.team-card:hover .t-img img {
  filter: grayscale(0);
}

.team-card h3 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.team-card .t-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 23. Contact channels bento --------------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.channel-card .label {
  color: var(--lime);
}

.channel-card h3 {
  font-size: var(--text-xl);
  text-transform: uppercase;
}

.channel-card p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

.channel-card .channel-line {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg);
  letter-spacing: 0.04em;
}

.channel-card a.channel-line:hover {
  color: var(--lime);
}

/* ---------- 24. Closing CTA -------------------------------------------- */
.closing-cta {
  background: var(--lime);
  color: var(--ink-000);
  padding-block: var(--space-9);
}

.closing-cta .container {
  display: grid;
  gap: var(--space-6);
}

.closing-cta h2 {
  font-size: var(--text-mega);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  color: var(--ink-000);
  max-width: 22ch;
}

.closing-cta .lede {
  color: rgba(10, 10, 12, 0.75);
  max-width: 52ch;
}

.closing-cta .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.closing-cta .btn--dark {
  background: var(--ink-000);
  color: var(--lime);
}

.closing-cta .btn--dark:hover {
  background: var(--ink-elev);
}

.closing-cta .btn--ghost {
  background: transparent;
  border-color: rgba(10, 10, 12, 0.4);
  color: var(--ink-000);
}

.closing-cta .btn--ghost:hover {
  background: var(--ink-000);
  color: var(--lime);
  border-color: var(--ink-000);
}

/* ---------- 25. Footer -------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--rule);
}

.footer-top h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-top ul a {
  color: var(--fg-soft);
  font-size: var(--text-sm);
}

.footer-top ul a:hover {
  color: var(--lime);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand .brand {
  font-size: var(--text-xl);
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--fg-soft);
  font-size: var(--text-sm);
  max-width: 32ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom .footer-meta-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom a:hover {
  color: var(--lime);
}

/* ---------- 26. Misc helpers ------------------------------------------- */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.hidden {
  display: none;
}

.lime-text {
  color: var(--lime);
}

/* ---------- 27. Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 28. Responsive --------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .hero-media {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    justify-self: stretch;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell:nth-child(2) {
    border-inline-end: 0;
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }

  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .work-item--xl,
  .work-item--lg {
    grid-column: span 6;
  }

  .work-item--md,
  .work-item--sm {
    grid-column: span 3;
  }

  .cap-bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .cap-card--wide,
  .cap-card--tall {
    grid-column: span 6;
  }

  .cap-card--std {
    grid-column: span 3;
  }

  .cap-card--tall {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-text {
    order: initial;
  }

  .press-strip {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .awards-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .award-cell:nth-child(2) {
    border-inline-end: 0;
  }

  .award-cell:nth-child(1),
  .award-cell:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule);
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item--xl,
  .work-item--lg,
  .work-item--md,
  .work-item--sm {
    grid-column: span 1;
  }

  .cap-bento {
    grid-template-columns: 1fr;
  }

  .cap-card--wide,
  .cap-card--std,
  .cap-card--tall {
    grid-column: span 1;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .awards-strip {
    grid-template-columns: 1fr;
  }

  .award-cell {
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule);
  }

  .award-cell:last-child {
    border-bottom: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-headline {
    font-size: var(--text-4xl);
  }

  .closing-cta h2 {
    font-size: var(--text-4xl);
  }
}


/* =========================================================
   Dynamic Portfolio
   ========================================================= */

#portfolio-container {
  width: 100%;
}


/* Category */

.portfolio-category {
  margin-top: var(--space-8);
}


.portfolio-category+.portfolio-category {
  margin-top: var(--space-9);
}


/* Category Header */

.portfolio-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: var(--space-5);

  padding-bottom: 18px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.12);
}


.portfolio-category-label {
  display: block;

  margin-bottom: 8px;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  opacity: 0.55;
}


.portfolio-category-head h3 {
  margin: 0;

  font-size:
    clamp(24px, 3vw, 38px);

  line-height: 1.05;
}


/* View All */

.portfolio-category-link {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  white-space: nowrap;

  font-size: 13px;

  text-decoration: none;

  transition:
    gap 0.25s ease,
    opacity 0.25s ease;
}


.portfolio-category-link:hover {
  gap: 14px;
}


.portfolio-category-link svg {
  transition:
    transform 0.25s ease;
}


.portfolio-category-link:hover svg {
  transform:
    translateX(3px);
}


/* Loading */

.portfolio-loading {
  padding: 80px 20px;

  text-align: center;

  opacity: 0.55;
}


/* Empty */

.portfolio-empty {
  padding: 80px 20px;

  text-align: center;

  opacity: 0.55;
}


/* Error */

.portfolio-error {
  padding: 60px 20px;

  text-align: center;

  opacity: 0.65;
}


/* Mobile */

@media (max-width: 700px) {

  .portfolio-category-head {

    align-items: flex-start;

    flex-direction: column;

    gap: 15px;

  }


  .portfolio-category-link {

    margin-top: 4px;

  }

}

.reveal {
  opacity: 0;

  transform:
    translateY(20px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}


.reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);
}

/* =========================================================
   Portfolio Lightbox
   ========================================================= */

body.lightbox-open {
  overflow: hidden;
}


.portfolio-lightbox {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 30px;

  visibility: hidden;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}


.portfolio-lightbox.is-open {
  visibility: visible;

  opacity: 1;

  pointer-events: auto;
}


/* Background */

.portfolio-lightbox-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.88);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);
}


/* Dialog */

.portfolio-lightbox-dialog {
  position: relative;

  z-index: 2;

  width: min(1100px,
      100%);

  max-height: 94vh;

  overflow: auto;

  background:
    rgba(18, 18, 20, 0.98);

  border:
    1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.5);

  transform:
    translateY(20px) scale(0.98);

  transition:
    transform 0.3s ease;
}


.portfolio-lightbox.is-open .portfolio-lightbox-dialog {

  transform:
    translateY(0) scale(1);
}


/* Close */

.portfolio-lightbox-close {
  position: absolute;

  top: 14px;

  right: 14px;

  z-index: 5;

  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.65);

  color: #fff;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}


.portfolio-lightbox-close:hover {
  background:
    rgba(0, 0, 0, 0.9);

  transform:
    rotate(90deg);
}


/* Image */

.portfolio-lightbox-image-wrap {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    #111;
}


.portfolio-lightbox-image-wrap img {
  display: block;

  width: 100%;

  max-height: 72vh;

  object-fit: contain;
}


/* Information */

.portfolio-lightbox-info {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  padding: 24px 28px;
}


.portfolio-lightbox-category {
  display: block;

  margin-bottom: 7px;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  opacity: 0.55;
}


.portfolio-lightbox-info h3 {
  margin: 0;

  font-size:
    clamp(24px, 3vw, 36px);

  line-height: 1.1;
}


.portfolio-lightbox-info p {
  margin:
    7px 0 0;

  font-size: 14px;

  opacity: 0.65;
}


/* Live button */

.portfolio-live-btn {
  flex-shrink: 0;

  white-space: nowrap;

  display: inline-flex;

  align-items: center;

  gap: 9px;
}


/* Live button on image */

.portfolio-live-overlay {
  position: absolute;

  left: 14px;

  bottom: 14px;

  z-index: 3;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding:
    9px 13px;

  border:
    1px solid rgba(255, 255, 255, 0.22);

  border-radius: 4px;

  background:
    rgba(0, 0, 0, 0.72);

  color: #fff;

  font-family: inherit;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.04em;

  cursor: pointer;

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}


.portfolio-live-overlay:hover {
  background:
    rgba(0, 0, 0, 0.92);

  transform:
    translateY(-2px);
}


/* Make sure WM is positioned */

.work-item .wm {
  position: relative;
}


/* Mobile */

@media (max-width: 700px) {

  .portfolio-lightbox {
    padding: 12px;
  }


  .portfolio-lightbox-dialog {
    max-height: 96vh;
  }


  .portfolio-lightbox-info {

    align-items: flex-start;

    flex-direction: column;

    padding: 20px;

    gap: 20px;

  }


  .portfolio-live-btn {
    width: 100%;

    justify-content: center;
  }


  .portfolio-lightbox-image-wrap img {
    max-height: 60vh;
  }


  .portfolio-live-overlay {
    left: 10px;

    bottom: 10px;

    padding:
      8px 10px;

    font-size: 10px;
  }

}