/* ============================================================
   OASIS CREATIONS - style.css
   Design System: "Oasis Deep-Light System"
   
   Sections:
   1. Google Fonts Import
   2. CSS Custom Properties (Design Tokens)
   3. CSS Reset
   4. Base Styles
   5. Typography
   6. Layout
   7. Navigation
   8. Hero Section
   9. Work Section (Alternating Grid)
   10. About Section
   11. Blog Section
   12. Contact Section
   13. Footer
   14. Custom Cursor
   15. Modal System
   16. Tags & Buttons
   17. Animations & Keyframes
   18. Scroll Reveal
   19. Responsive (Tablet ≤ 768px, Mobile ≤ 480px)
   20. Utility & Scrollbar
   ============================================================ */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
/* Fonts loaded via <link> in HTML head - no duplicate @import needed */

/* ============================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* ── Core Colors ── */
  --bg-base:           #0A0A0A;
  --bg-elevated:       #111111;
  --bg-surface:        #131313;
  --bg-container:      #201f1f;
  --bg-container-high: #2a2a2a;
  --bg-container-highest: #353534;

  --text-primary:      #F0EDE8;
  --text-secondary:    #A2A29E; /* WCAG AA 4.8:1 */
  --text-muted:        #444440;

  --border-default:    #222220;
  --border-subtle:     rgba(240, 237, 232, 0.1);

  /* ── Accent Colors ── */
  --accent-palm-bright:  #3DBF6E;  /* Primary CTA */
  --accent-palm-deep:    #1D5E2A;  /* Hover state / dark green */
  --accent-sand-warm:    #C8944A;  /* Branding & Logo */
  --accent-sand-light:   #DEB87A;  /* Shopify / Ecommerce */
  --accent-oasis-water:  #6EC4C8;  /* Web Design */

  /* ── Typography ── */
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* ── Spacing ── */
  --space-sm:      8px;
  --space-md:      16px;
  --space-lg:      24px;
  --space-xl:      48px;
  --space-2xl:     80px;
  --space-3xl:     128px;
  --gutter:        24px;
  --margin-desktop: 64px;
  --margin-tablet:  32px;
  --margin-mobile:  24px;
  --container-max:  1440px;

  /* ── Border Radius ── */
  /* Radius rule: 4px (--radius-default) is the minimum for interactive
     elements; use md/lg/xl for cards and media, full pill for CTAs. */
  --radius-default: 4px;
  --radius-md:     6px;
  --radius-lg:     8px;
  --radius-xl:     12px;
  --radius-full:   9999px;

  /* ── Transitions ── */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast:  200ms;
  --duration-base:  300ms;
  --duration-slow:  500ms;
  --duration-modal: 600ms;

  /* ── Theming prep (dark only, no visual change) ── */
  --surface-0:       var(--bg-base);
  --surface-1:       var(--bg-surface);

  /* ── Nav ── */
  --nav-height:    72px;
  --nav-blur:      20px;
}

/* Theming prep: advertise dark color scheme (no visual change, no light theme). */
:root { color-scheme: dark; }

/* ============================================================
   3. CSS RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

/* ============================================================
   4. BASE STYLES
   ============================================================ */
html {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: clip;
}

/* ── Editorial Paragraph Styling ── */
p {
  line-height: 1.7;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Selection highlight */
::selection {
  background: rgba(61, 191, 110, 0.2);
  color: var(--text-primary);
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */

/* ── Hero Name ── */
.text-hero-name {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 11vw, 160px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Hero Prefix ("HI, I'M") ── */
.text-hero-prefix {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8.5vw, 120px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Headline XL (Section Titles) ── */
.text-headline-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Headline Card (Work Card Titles) ── */
.text-headline-card {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Blog Card Titles ── */
.text-headline-blog {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Subheading (Blog modal) ── */
.text-subheading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Eyebrow / Labels ── */
.text-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Nav Links ── */
.text-nav {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Body Large ── */
.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
}

/* ── Body Medium ── */
.text-body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

/* ── Blog Body (larger for reading) ── */
.text-blog-body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

/* ── Tag / Mono ── */
.text-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   6. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 769px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.section {
  margin-bottom: var(--space-3xl);
}

.section-divider {
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--duration-base) ease,
              backdrop-filter var(--duration-base) ease;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.8);
  -webkit-backdrop-filter: blur(var(--nav-blur));
  backdrop-filter: blur(var(--nav-blur));
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

@media (min-width: 769px) {
  .nav__inner {
    padding: 0 var(--margin-desktop);
  }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--duration-base) ease;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

/* Logo monogram: simple SA lettermark, no box or border, reads as a logo */
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto; /* Push links to the right */
}

.nav__link {
  color: var(--text-secondary);
  transition: color var(--duration-base) ease;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent-palm-bright);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-palm-bright);
}

/* Mobile nav toggle (hidden by default, shown on mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--duration-base) ease;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--nav-height));
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: var(--space-lg);
  border-bottom: none; /* Border added via .hero--scrolled-past class by JS */
  position: relative;
  overflow: hidden;
}

.hero--scrolled-past {
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 769px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
    padding-top: calc(var(--nav-height) + 16px);
  }
}

.hero__text {
  flex: 1 1 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding-right: var(--space-lg);
  min-height: 0; /* Allow flex child to shrink */
  will-change: transform;
}

.hero__heading {
  margin-bottom: var(--space-md);
}

/* Each line of the hero text wraps for animation */
.hero__line {
  display: block;
  overflow: hidden;
}

.hero__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.8s var(--ease-out-expo) forwards;
}

.hero__subtext {
  color: var(--text-secondary);
  max-width: 520px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

.hero__footnote {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 1.6s forwards;
  max-width: 420px;
  font-size: 10px;
  line-height: 14px;
}

/* ── Carousel ── */
.hero__carousel {
  flex: 0 0 38%;
  max-width: 440px;
  overflow: hidden;
  position: relative;
  margin-top: var(--space-lg);
  will-change: transform;
}

@media (min-width: 769px) {
  .hero__carousel {
    height: auto;
    margin-top: 0;
  }
}

.hero__carousel-fade--top,
.hero__carousel-fade--bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 5;
  pointer-events: none;
}

.hero__carousel-fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-base), transparent);
}

.hero__carousel-fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-base), transparent);
}

.hero__carousel-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: carouselScrollUp 26s linear infinite;
}

.hero__carousel:hover .hero__carousel-track {
  animation-play-state: paused;
}

.hero__carousel-item {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero__carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--duration-fast) ease;
  opacity: 0.8;
}

.hero__carousel-item:hover img {
  opacity: 1;
}

/* ============================================================
   9. WORK SECTION (ALTERNATING GRID)
   ============================================================ */
.work__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 769px) {
  .work__grid {
    gap: 80px;
  }
}

.work__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 769px) {
  .work__row {
    flex-direction: row;
    gap: var(--gutter);
  }

  /* Reverse even rows: text left, image right */
  .work__row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.work__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (min-width: 769px) {
  .work__image-wrap {
    width: 50%;
    flex-shrink: 0;
  }
}

.work__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 150ms ease-out;
  will-change: transform;
}

.work__row:hover .work__image {
  transform: scale(1.02);
}

.work__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform 120ms ease-out, opacity 120ms ease-out;
  position: relative;
  cursor: none;
}

@media (min-width: 769px) {
  .work__card {
    width: 50%;
    padding: var(--space-xl) var(--space-xl);
  }
}

.work__card-tag {
  margin-bottom: var(--space-md);
}

.work__card-title {
  margin-bottom: var(--space-md);
  transition: color var(--duration-base) ease;
}

.work__card-desc {
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.work__card-arrow {
  font-family: 'Material Symbols Outlined';
  font-size: 40px;
  font-weight: 300;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 120ms ease-out,
              transform 120ms ease-out;
  position: absolute;
  right: var(--space-xl);
  top: 50%;
  margin-top: -20px;
}

.work__row:hover .work__card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Per-project accent wash backgrounds - token-derived via color-mix (resting 5% / hover 10%) */
.work__card[data-accent="sand-warm"]   { background: color-mix(in srgb, var(--accent-sand-warm) 5%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-sand-warm) 25%, transparent); }
.work__card[data-accent="palm-bright"] { background: color-mix(in srgb, var(--accent-palm-bright) 5%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-palm-bright) 25%, transparent); }
.work__card[data-accent="oasis-water"] { background: color-mix(in srgb, var(--accent-oasis-water) 5%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-oasis-water) 25%, transparent); }
.work__card[data-accent="sand-light"]  { background: color-mix(in srgb, var(--accent-sand-light) 5%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-sand-light) 25%, transparent); }
.work__card[data-accent="palm-deep"]   { background: color-mix(in srgb, var(--accent-palm-deep) 5%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-palm-deep) 25%, transparent); }

.work__row:hover .work__card[data-accent="sand-warm"]   { background: color-mix(in srgb, var(--accent-sand-warm) 10%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-sand-warm) 60%, transparent); }
.work__row:hover .work__card[data-accent="palm-bright"] { background: color-mix(in srgb, var(--accent-palm-bright) 10%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-palm-bright) 60%, transparent); }
.work__row:hover .work__card[data-accent="oasis-water"] { background: color-mix(in srgb, var(--accent-oasis-water) 10%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-oasis-water) 60%, transparent); }
.work__row:hover .work__card[data-accent="sand-light"]  { background: color-mix(in srgb, var(--accent-sand-light) 10%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-sand-light) 60%, transparent); }
.work__row:hover .work__card[data-accent="palm-deep"]   { background: color-mix(in srgb, var(--accent-palm-deep) 10%, var(--bg-base)); border-color: color-mix(in srgb, var(--accent-palm-deep) 60%, transparent); }

/* Arrow color per accent */
.work__card[data-accent="sand-warm"]   .work__card-arrow { color: var(--accent-sand-warm); }
.work__card[data-accent="palm-bright"] .work__card-arrow { color: var(--accent-palm-bright); }
.work__card[data-accent="oasis-water"] .work__card-arrow { color: var(--accent-oasis-water); }
.work__card[data-accent="sand-light"]  .work__card-arrow { color: var(--accent-sand-light); }
.work__card[data-accent="palm-deep"]   .work__card-arrow { color: var(--accent-palm-bright); }

/* ============================================================
   10. ABOUT SECTION
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  align-items: center;
}

@media (min-width: 769px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

.about__photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-container-highest);
}

/* NO blend mode, NO opacity reduction - per user mandate #2 */
.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  display: flex;
  flex-direction: column;
}

.about__title {
  margin-bottom: var(--space-lg);
  line-height: 0.95;
}

.about__bio {
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-xl);
}

.about__bio p + p {
  margin-top: var(--space-lg);
}

.about__skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
}

.about__skills-title {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.about__skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

/* ============================================================
   11. BLOG SECTION
   ============================================================ */
.blog__header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Section head: heading plus sub stacked cleanly, left aligned with the grid */
.blog__head {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.blog__sub {
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 12px;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 769px) {
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog__card {
  background: rgba(240, 237, 232, 0.03);
  border: 1px solid rgba(240, 237, 232, 0.05);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-base) ease,
              border-color var(--duration-base) ease;
  cursor: none;
  display: flex;
  flex-direction: column;
}

.blog__card:hover {
  background: rgba(240, 237, 232, 0.06);
  border-color: rgba(240, 237, 232, 0.1);
}

.blog__card-tag {
  margin-bottom: var(--space-lg);
}

.blog__card-title {
  margin-bottom: var(--space-md);
  transition: color var(--duration-base) ease;
}

.blog__card:hover .blog__card-title {
  color: var(--accent-palm-bright);
}

.blog__card-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  transition: color var(--duration-base) ease;
}

.blog__card:hover .blog__card-link {
  color: var(--accent-palm-bright);
}

.blog__card-link .material-symbols-outlined {
  font-size: 16px;
  transition: transform var(--duration-base) ease;
}

.blog__card:hover .blog__card-link .material-symbols-outlined {
  transform: translateX(4px);
}

/* ============================================================
   12. CONTACT SECTION
   ============================================================ */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px var(--margin-desktop);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  background: var(--accent-palm-bright);
  opacity: 0.05;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.contact__heading {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  max-width: 100%;
}

.contact__link {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.22em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-base) ease;
}

.contact__link:hover {
  color: var(--accent-palm-bright);
}

.contact__heading-prefix {
  display: inline-block;
  line-height: 0.92;
}

.contact__heading-word {
  display: inline-block;
  line-height: 0.92;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

/* ── Secret Hero Asterisk (Zero Clickable Styling) ── */
.hero__star {
  cursor: default !important;
  user-select: none;
  display: inline;
  pointer-events: auto;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  height: 56px;
  border-top: 1px solid var(--border-subtle);
  /* No separate bg - integrated into page flow */
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

@media (min-width: 769px) {
  .footer__inner {
    padding: 0 var(--margin-desktop);
  }
}

/* Copyright synced to match social link typography (.text-tag) */
.footer__copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer__socials {
  display: flex;
  gap: var(--space-lg);
}

.footer__social-link {
  color: var(--text-secondary);
  transition: color var(--duration-base) ease;
}

.footer__social-link:hover {
  color: var(--accent-palm-bright);
}

/* ============================================================
   14. CUSTOM CURSOR
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  /* Hide system cursor on all elements */
  body, a, button, [data-cursor] {
    cursor: none;
  }

  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  /* ── Illustrator-Style Crosshair ── */
  .cursor__crosshair-h,
  .cursor__crosshair-v {
    position: absolute;
    background: var(--text-primary);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                opacity 0.3s ease;
  }

  /* Horizontal line */
  .cursor__crosshair-h {
    width: 28px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Vertical line */
  .cursor__crosshair-v {
    width: 1px;
    height: 28px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Center dot */
  .cursor__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background-color 0.3s ease,
                opacity 0.3s ease;
  }

  /* Hide the old ring - repurpose as crosshair expansion ring */
  .cursor__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 1px solid var(--text-primary);
    opacity: 0;
    transition: width 0.35s var(--ease-out-expo),
                height 0.35s var(--ease-out-expo),
                opacity 0.35s ease,
                border-color 0.3s ease;
  }

  /* ── Link / Button Hover: hide crosshair, show green ring ── */
  .cursor--hover .cursor__crosshair-h,
  .cursor--hover .cursor__crosshair-v {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .cursor--hover .cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--accent-palm-bright);
  }
  .cursor--hover .cursor__ring {
    width: 52px;
    height: 52px;
    opacity: 0.25;
    border-color: var(--accent-palm-bright);
  }

  /* ── Project Card Hover: hide crosshair, show dashed ring + VIEW ── */
  .cursor--project .cursor__crosshair-h,
  .cursor--project .cursor__crosshair-v {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .cursor--project .cursor__dot {
    width: 0;
    height: 0;
    opacity: 0;
  }
  .cursor--project .cursor__ring {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    border-color: var(--text-primary);
    border-style: dashed;
    animation: cursorSpin 6s linear infinite;
  }

  .cursor__ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
  }

  .cursor--project .cursor__ring-text {
    opacity: 1;
  }
}

/* Touch devices: normal cursor */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body, a, button { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ============================================================
   15. MODAL SYSTEM
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-base);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Hidden by default */
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--duration-modal) var(--ease-out-expo),
              opacity var(--duration-modal) var(--ease-out-expo),
              visibility 0s linear var(--duration-modal);
}

.modal-overlay.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--duration-modal) var(--ease-out-expo),
              opacity var(--duration-modal) var(--ease-out-expo),
              visibility 0s linear 0s;
}

/* Modal Header Actions (Close & Share) */
.modal__actions {
  position: sticky;
  top: 0;
  z-index: 210;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: var(--margin-mobile);
  pointer-events: none;
}

@media (min-width: 769px) {
  .modal__actions {
    padding: var(--margin-desktop);
  }
}

.modal__action-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--duration-base) ease,
              border-color var(--duration-base) ease,
              transform var(--duration-fast) ease,
              color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
}

.modal__action-btn:hover {
  background: var(--bg-container-high);
  border-color: var(--accent-palm-bright);
  color: var(--accent-palm-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.modal__action-btn .material-symbols-outlined {
  font-size: 22px;
  transition: transform var(--duration-slow) ease;
}

.modal__close-btn:hover .material-symbols-outlined {
  transform: rotate(90deg);
}

/* ── Project Modal ── */
.modal__project-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-xl) var(--margin-mobile);
}

@media (min-width: 769px) {
  .modal__project-hero {
    padding: var(--space-2xl) var(--margin-desktop);
  }
}

.modal__project-title {
  text-align: center;
  max-width: 800px;
}

.modal__project-body {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: 0 var(--margin-mobile);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 769px) {
  .modal__project-body {
    padding: 0;
    padding-bottom: var(--space-3xl);
  }
}

.modal__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(61, 74, 63, 0.3);
  border-bottom: 1px solid rgba(61, 74, 63, 0.3);
}

@media (min-width: 769px) {
  .modal__meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modal__meta-label {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.modal__meta-value {
  color: var(--text-primary);
}

.modal__meta-value ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Rich Case Study Breakdown ── */
.modal__casestudy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (min-width: 769px) {
  .modal__casestudy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.modal__casestudy-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__casestudy-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-palm-bright);
}

.modal__casestudy-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── Modal Gallery: Mixed Grid (Landscape Full-Width vs Portrait 2-Column) ── */
.modal__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  width: 100%;
}

.modal__gallery-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  transition: transform var(--duration-base) ease, border-color var(--duration-base) ease;
}

.modal__gallery-img:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 237, 232, 0.3);
}

.modal__gallery-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--duration-slow) ease;
}

.modal__gallery-img:hover img {
  transform: scale(1.01);
}

/* Wide / landscape assets take full container width */
.modal__gallery-img.is-landscape,
.modal__gallery-img--full {
  grid-column: 1 / -1;
}

/* Square / vertical portrait assets span 1 column side-by-side */
.modal__gallery-img.is-portrait {
  grid-column: span 1;
}

@media (max-width: 768px) {
  .modal__gallery {
    grid-template-columns: 1fr;
  }
  .modal__gallery-img.is-portrait {
    grid-column: span 1;
  }
}

.modal__gallery-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
  pointer-events: none;
}

.modal__gallery-img:hover .modal__gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ── Fullscreen Image Zoom Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
  background: rgba(10, 10, 10, 0.8);
}

.lightbox__counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.lightbox__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox__btn {
  background: rgba(240, 237, 232, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.lightbox__btn:hover {
  background: rgba(61, 191, 110, 0.2);
  border-color: var(--accent-palm-bright);
  color: var(--accent-palm-bright);
}

.lightbox__body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: default;
}

.lightbox__img-wrap {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center center;
  cursor: zoom-in;
}

.lightbox__img-wrap.is-zoomed {
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
  z-index: 10;
}

.lightbox__nav:hover {
  background: rgba(61, 191, 110, 0.2);
  border-color: var(--accent-palm-bright);
  color: var(--accent-palm-bright);
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

.modal__project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(61, 74, 63, 0.3);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

.modal__project-counter {
  color: var(--text-secondary);
}

.modal__project-next {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-primary);
  transition: color var(--duration-base) ease;
}

.modal__project-next:hover {
  color: var(--accent-palm-bright);
}

.modal__project-next-label {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

@media (min-width: 769px) {
  .modal__project-next-label {
    font-size: 48px;
  }
}

.modal__project-next .material-symbols-outlined {
  font-size: 32px;
  transition: transform var(--duration-base) ease;
}

.modal__project-next:hover .material-symbols-outlined {
  transform: translateX(8px);
}

/* ── Blog Modal ── */
.modal-overlay--blog {
  background: var(--bg-elevated);
}

.modal__blog-article {
  width: 100%;
  max-width: 680px;
  padding: var(--space-2xl) var(--margin-mobile);
  margin: 0 auto;
  padding-bottom: var(--space-3xl);
}

@media (min-width: 769px) {
  .modal__blog-article {
    padding: var(--space-2xl) 0;
    padding-bottom: var(--space-3xl);
  }
}

.modal__blog-header {
  margin-bottom: var(--space-xl);
}

.modal__blog-title {
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.modal__blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.modal__blog-date {
  color: var(--text-secondary);
}

.modal__blog-date-sep {
  color: var(--text-secondary);
  opacity: 0.6;
}

.modal__blog-featured {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal__blog-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1s ease-out;
}

.modal__blog-featured:hover img {
  transform: scale(1.05);
}

.modal__blog-content {
  color: rgba(240, 237, 232, 0.9);
}

.modal__blog-content p {
  margin-bottom: 28px;
}

.modal__blog-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.modal__blog-content blockquote {
  padding-left: var(--space-lg);
  border-left: 2px solid var(--accent-palm-bright);
  font-style: italic;
  margin: var(--space-xl) 0;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.modal__blog-endmark {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.modal__blog-endmark span {
  width: 48px;
  height: 4px;
  background: rgba(245, 188, 110, 0.2);
  border-radius: var(--radius-full);
}

/* ── Modal reveal animations for inner content ── */
.modal__reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: modalContentReveal 0.8s var(--ease-out-expo) forwards;
}

.modal__reveal--delay-1 { animation-delay: 100ms; }
.modal__reveal--delay-2 { animation-delay: 200ms; }
.modal__reveal--delay-3 { animation-delay: 300ms; }

/* ============================================================
   16. TAGS & BUTTONS
   ============================================================ */

/* ── Tag ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-default);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Tag accent variants */
.tag--sand-warm   { background: rgba(200, 148, 74, 0.10); color: var(--accent-sand-warm); }
.tag--palm-bright { background: rgba(61, 191, 110, 0.10); color: var(--accent-palm-bright); }
.tag--oasis-water { background: rgba(110, 196, 200, 0.10); color: var(--accent-oasis-water); }
.tag--sand-light  { background: rgba(222, 184, 122, 0.10); color: var(--accent-sand-light); }
.tag--palm-deep   { background: rgba(61, 191, 110, 0.10); color: var(--accent-palm-bright); }
.tag--tertiary    { background: rgba(110, 196, 200, 0.10); color: var(--accent-oasis-water); }

/* ── Tag (plain, no bg) ── */
.tag--plain {
  padding: 0;
  background: none;
}

/* ── Secondary Button ── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color var(--duration-base) ease,
              border-color var(--duration-base) ease;
}

.btn-secondary:hover {
  background: rgba(240, 237, 232, 0.05);
}

/* ============================================================
   17. ANIMATIONS & KEYFRAMES
   ============================================================ */

/* Hero character reveal */
@keyframes charReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade + slide up (general) */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel vertical scroll (desktop) */
@keyframes carouselScrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Carousel horizontal scroll (mobile marquee) */
@keyframes carouselScrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cursor rotation */
@keyframes cursorSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modal content inner reveal */
@keyframes modalContentReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   18. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ============================================================
   19. ABOUT PAGE
   ============================================================ */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--margin-mobile) var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 769px) {
  .about-hero {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.about-hero__title {
  margin-bottom: var(--space-lg);
}

.about-hero__subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--margin-mobile);
}

@media (min-width: 769px) {
  .about-body {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-2xl) var(--margin-desktop);
  }
}

.about__skills-list li {
  transition: color var(--duration-base) ease;
  padding: 6px 0;
}

.about__skills-list li:hover {
  color: var(--accent-palm-bright);
}

/* ============================================================
   20. BLOG PAGE
   ============================================================ */
.page-header {
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--margin-mobile) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 769px) {
  .page-header {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.page-header__title {
  max-width: var(--container-max);
  margin: 0 auto;
}

.blog-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--margin-mobile);
}

@media (min-width: 769px) {
  .blog-page__grid {
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-xl) var(--margin-desktop);
  }
}

/* ============================================================
   21. ARTICLE PAGE
   ============================================================ */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--margin-mobile) var(--space-3xl);
}

.article-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: color var(--duration-base) ease;
  margin-bottom: var(--space-xl);
}

.article-page__back:hover {
  color: var(--accent-palm-bright);
}

.article-page__header {
  margin-bottom: var(--space-xl);
}

.article-page__title {
  margin-bottom: var(--space-lg);
}

.article-page__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.article-page__featured {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.article-page__featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-page__content {
  color: rgba(240, 237, 232, 0.9);
}

.article-page__content p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.article-page__content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.article-page__content blockquote {
  padding-left: var(--space-lg);
  border-left: 2px solid var(--accent-palm-bright);
  font-style: italic;
  margin: var(--space-xl) 0;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.article-page__content img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.article-page__endmark {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.article-page__endmark span {
  width: 48px;
  height: 4px;
  background: rgba(245, 188, 110, 0.2);
  border-radius: var(--radius-full);
}

/* ============================================================
   22. CONTACT PAGE
   ============================================================ */
.contact-page {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--margin-mobile) var(--space-3xl);
  text-align: center;
}

.contact-page__title {
  margin-bottom: var(--space-lg);
}

.contact-page__subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: left;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-form__input,
.contact-form__textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--duration-base) ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--accent-palm-bright);
}

.contact-form__textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-default);
  background: var(--accent-palm-bright);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-base) ease,
              transform var(--duration-base) ease;
}

.contact-form__submit:hover {
  background: var(--accent-palm-deep);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ── Primary Button (reusable) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-default);
  background: var(--accent-palm-bright);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duration-base) ease,
              transform var(--duration-base) ease;
}

.btn-primary:hover {
  background: var(--accent-palm-deep);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ── Section spacer (between hero and SELECTED WORK) ── */
.section-spacer {
  height: 80px;
}

@media (max-width: 768px) {
  .section-spacer {
    height: 24px;
  }
}

/* ── View all link ── */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xl);
  color: var(--text-secondary);
  transition: color var(--duration-base) ease;
}

.view-all-link:hover {
  color: var(--accent-palm-bright);
}

.view-all-link .material-symbols-outlined {
  font-size: 16px;
  transition: transform var(--duration-base) ease;
}

.view-all-link:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* ============================================================
   22. WORK ARCHIVE PAGE & VIEW ALL CTA
   ============================================================ */
.work__view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.work__view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 12px;
  letter-spacing: 0.2em;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(61, 191, 110, 0.2);
}

.work__view-all-btn .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--duration-base) ease;
}

.work__view-all-btn:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Category Filter Bar */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-xl);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-container);
}

.filter-btn.is-active {
  background: var(--accent-palm-bright);
  color: var(--bg-base);
  border-color: var(--accent-palm-bright);
  font-weight: 600;
}

/* Work Archive Grid */
.work-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 769px) {
  .work-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--gutter);
  }
}

.archive__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  transition: transform var(--duration-base) ease,
              border-color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
  position: relative;
}

.archive__card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 237, 232, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.archive__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
}

.archive__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.archive__card:hover .archive__image {
  transform: scale(1.04);
}

.archive__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.archive__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.archive__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
  transition: color var(--duration-base) ease;
}

.archive__card:hover .archive__card-title {
  color: var(--accent-palm-bright);
}

.archive__card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive__card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--duration-base) ease;
}

.archive__card:hover .archive__card-footer {
  color: var(--accent-palm-bright);
}

.archive__card-footer .material-symbols-outlined {
  font-size: 16px;
  transition: transform var(--duration-base) ease;
}

.archive__card:hover .archive__card-footer .material-symbols-outlined {
  transform: translateX(4px);
}

/* ============================================================
   23. RESPONSIVE (TABLET & MOBILE)
   ============================================================ */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {

  /* ── Prevent horizontal overflow ── */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* ── Fluid Typography via clamp() - Extra Bold on Mobile ── */
  .text-hero-name {
    font-size: clamp(4.8rem, 26vw, 8.8rem);
    line-height: 0.86;
    letter-spacing: -0.03em;
  }

  .text-hero-prefix {
    font-size: clamp(3.2rem, 17vw, 5.5rem);
    line-height: 0.86;
    letter-spacing: -0.03em;
  }

  .text-headline-xl {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    line-height: 1.05;
  }

  .text-headline-card {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.1;
  }

  .text-headline-blog {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    line-height: 1.2;
  }

  /* ── Header Navigation on Mobile ── */
  .nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .nav__logo-text {
    display: block;
    font-size: 20px;
  }

  /* ── Full-Screen Mobile Navigation Overlay ── */
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(10, 10, 10, 0.98);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
    padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom) 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo),
                visibility 0s linear 0.4s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease-out-expo),
                visibility 0s linear 0s;
  }

  .nav__links .nav__link {
    font-size: clamp(2rem, 7vw, 2.5rem);
    letter-spacing: 0.1em;
    line-height: 1.3;
  }

  .nav__toggle {
    display: flex;
    z-index: 1000;
    position: relative;
    padding: 8px;
  }

  /* ── Hero on Mobile: Strict 100dvh Viewport Fold Isolation ── */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    padding-top: calc(var(--nav-height) + 12px);
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
  }

  .hero__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
    width: 100%;
    z-index: 2;
  }

  .hero__subtext {
    margin-top: 10px;
    font-size: clamp(15px, 4vw, 17px);
  }

  .hero__footnote {
    position: relative;
    bottom: auto;
    margin-top: 12px;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-secondary);
    opacity: 0.85;
  }

  /* ── Mobile Hero Carousel: Touching Screen Bottom (Max 28% of Viewport) ── */
  .hero__carousel {
    display: block;
    flex: 0 0 auto;
    width: calc(100% + (var(--margin-mobile) * 2));
    margin-left: calc(-1 * var(--margin-mobile));
    margin-right: calc(-1 * var(--margin-mobile));
    margin-top: auto;
    margin-bottom: 0;
    height: clamp(140px, 26vh, 180px);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  /* Bottom rising gradient for seamless blending into #0A0A0A base */
  .hero__carousel-fade--bottom {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to top, var(--bg-base) 20%, rgba(10, 10, 10, 0.6) 60%, transparent 100%);
    z-index: 6;
    pointer-events: none;
  }

  /* Top subtle gradient fade */
  .hero__carousel-fade--top {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 35px;
    background: linear-gradient(to bottom, var(--bg-base) 15%, transparent 100%);
    z-index: 6;
    pointer-events: none;
  }

  /* Left and right edge masks */
  .hero__carousel-fade--left,
  .hero__carousel-fade--right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    z-index: 6;
    pointer-events: none;
  }

  .hero__carousel-fade--left {
    left: 0;
    background: linear-gradient(to right, var(--bg-base) 25%, transparent 100%);
  }

  .hero__carousel-fade--right {
    right: 0;
    background: linear-gradient(to left, var(--bg-base) 25%, transparent 100%);
  }

  .hero__carousel-track {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: max-content;
    height: 100%;
    animation: carouselScrollLeft 24s linear infinite;
  }

  .hero__carousel-item {
    width: 135px;
    height: 100%;
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }

  .hero__carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
  }

  /* ── Selected Work Section ── */
  .work__grid {
    gap: var(--space-lg);
  }

  .work__row,
  .work__row:nth-child(even) {
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    transition: transform 120ms ease-out;
  }

  .work__row:active {
    transform: scale(0.99);
    border-color: rgba(240, 237, 232, 0.25);
  }

  .work__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .work__card {
    width: 100%;
    padding: var(--space-lg);
  }

  .work__card-arrow {
    display: none;
  }

  /* ── Modal System (Mobile Bottom-Sheet Style) ── */
  .modal-overlay {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .modal__close {
    padding: 12px 16px;
  }

  .modal__close-btn {
    width: 44px;
    height: 44px;
  }

  .modal__close-btn .material-symbols-outlined {
    font-size: 22px;
  }

  .modal__project-hero {
    padding: var(--space-md) var(--margin-mobile);
  }

  .modal__project-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    line-height: 1;
  }

  .modal__project-body {
    padding: 0 var(--margin-mobile) var(--space-2xl);
    gap: var(--space-lg);
  }

  .modal__meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }

  .modal__project-next-label {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  /* ── Contact Section Responsive (Single Line, Baseline Synced, Breathing Margins) ── */
  .contact {
    padding: 36px var(--margin-mobile);
    width: 100%;
    box-sizing: border-box;
  }

  .contact__heading {
    font-size: clamp(2.3rem, 10.5vw, 3.8rem);
    line-height: 0.92;
    width: 100%;
    text-align: center;
  }

  .contact__link {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .contact__heading-prefix,
  .contact__heading-word {
    font-size: inherit;
    line-height: 0.92;
  }

  /* ── Mobile Footer: Vertical Stacking & Single-Line Copyright ── */
  .footer {
    height: auto;
    padding: 24px var(--margin-mobile);
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .footer__copyright {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.1em;
    order: 2;
  }

  .footer__socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    order: 1;
  }

  /* ── About Page Responsive ── */
  .about-hero {
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
    min-height: auto;
  }

  .about-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
  }

  .about-hero__subtitle {
    font-size: 15px;
    line-height: 1.6;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--margin-mobile);
  }

  /* ── Blog & Article Responsive ── */
  .blog-page__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--margin-mobile);
  }

  .article-page {
    padding: calc(var(--nav-height) + var(--space-lg)) var(--margin-mobile) var(--space-2xl);
  }
}

/* ── Glowing Endmark for Blog Archive & Article Pages ── */
.article-page__endmark,
.blog-page__endmark {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px auto 24px;
  width: 100%;
}

.article-page__endmark span,
.blog-page__endmark span {
  width: 48px;
  height: 3px;
  background: rgba(245, 188, 110, 0.35);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(245, 188, 110, 0.3);
  display: block;
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {

  :root {
    --margin-mobile: 16px;
  }

  .hero {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
  }

  .work__card {
    padding: 16px;
  }

  .modal__meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .contact-form__submit {
    width: 100%;
  }
}

/* ============================================================
   20. UTILITY & SCROLLBAR
   ============================================================ */

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-container-highest);
  border-radius: var(--radius-default);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-container-highest) var(--bg-elevated);
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__carousel-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Smooth focus for accessibility ── */
*:focus-visible {
  outline: 2px solid var(--accent-palm-bright);
  outline-offset: 2px;
}

/* ── Material Symbols font setup ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}


/* ── Touch-Device Cursor Guard ── */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor button,
  body.has-custom-cursor a,
  body.has-custom-cursor [role="button"] {
    cursor: none;
  }
}

/* ── Navigation CTA Button ── */
.nav__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-palm-bright);
  color: #0A0A0A;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.nav__cta-btn:hover {
  background: var(--accent-palm-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61, 191, 110, 0.35);
}

/* Secondary header action: quiet outline, pairs with the primary CTA */
.nav__cta-btn--secondary {
  background: transparent;
  border: 1px solid rgba(240, 237, 232, 0.35);
  color: var(--text-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav__cta-btn--secondary:hover {
  background: rgba(240, 237, 232, 0.06);
  border-color: var(--text-primary);
  color: var(--text-primary);
  box-shadow: none;
}

@media (max-width: 768px) {
  .nav__links.is-open .nav__cta-btn {
    min-height: 48px;
    margin-top: 8px;
  }
}

/* ── Testimonials & Social Proof Grid ── */
.testimonials__section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.testimonials__header {
  margin-bottom: var(--space-xl);
}

.testimonials__stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.testimonials__stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.testimonials__stat-badge {
  color: var(--accent-palm-bright);
  display: flex;
  align-items: center;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-out-quart), border-color var(--duration-base) ease;
}

.testimonial__card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 237, 232, 0.25);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  color: #F5BC6E;
  margin-bottom: var(--space-md);
}

.testimonial__stars .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}

.testimonial__quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial__client {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.testimonial__role {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Contact Direct Action Cards ── */
.contact-direct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-direct-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: border-color var(--duration-base) ease, transform var(--duration-base) ease;
}

.contact-direct-card:hover {
  border-color: rgba(240, 237, 232, 0.3);
  transform: translateY(-2px);
}

.email-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 237, 232, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.email-copy-chip:hover {
  background: rgba(61, 191, 110, 0.12);
  border-color: var(--accent-palm-bright);
  color: var(--accent-palm-bright);
}

.email-copy-chip .material-symbols-outlined {
  font-size: 15px;
  color: var(--accent-palm-bright);
}

.contact-direct-card .card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-palm-bright);
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.contact-direct-card .card-action-btn:hover {
  color: var(--accent-palm-bright);
  transform: translateX(3px);
}

/* ── Share Toast Notification ── */
.share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--accent-palm-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(61, 191, 110, 0.25);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.share-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ── Tablet Viewports (769px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav__inner {
    padding: 0 var(--margin-tablet);
  }

  .nav__links {
    gap: 16px;
  }

  .nav__link {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .nav__cta-btn {
    font-size: 11px;
    padding: 7px 14px;
    letter-spacing: 0.08em;
  }

  .hero {
    gap: 24px;
    padding-top: calc(var(--nav-height) + 12px);
  }

  .hero__text {
    flex: 1 1 58%;
    padding-right: var(--space-sm);
  }

  .hero__carousel {
    flex: 0 0 40%;
    max-width: 380px;
  }

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

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

  .contact-direct-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .contact-direct-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   24. APPROVED FEATURE SET - 7 features (additive, dark-first)
   Voice: warm first-person. Motion: transform/opacity only.
   ============================================================ */

/* -- Shared measure and scale tokens for reading -- */
:root {
  --measure: 68ch;
  --measure-narrow: 44rem;
  --read-pill-bg: rgba(240, 237, 232, 0.06);
  --read-pill-border: rgba(240, 237, 232, 0.12);
}

/* -- Data states for every data-driven block -- */
.data-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.data-state--error {
  border-color: rgba(200, 148, 74, 0.5);
  color: var(--text-primary);
}
.data-state__spinner {
  width: 22px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent-palm-bright);
  animation: dataSpin 0.9s linear infinite;
}
@keyframes dataSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* -- (1) Live iframe previews on work and case views -- */
.live-preview {
  margin-top: var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}
.live-preview__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}
.live-preview__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg-elevated);
}
.live-preview__caption {
  padding: 12px 16px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.live-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 16px 16px;
}
.live-preview__fallback {
  display: block;
  text-decoration: none;
}
.live-preview__fallback img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.live-preview__fallback-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-palm-bright);
}

/* -- (2) Trust line under each submit -- */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.form-trust .material-symbols-outlined {
  font-size: 16px;
  font-weight: 200;
  font-variation-settings: 'FILL' 0, 'wght' 200;
  color: var(--accent-palm-bright);
}

/* -- (3) Hand-holding guidance lines -- */
.field-help {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 2px;
}
.services-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: 0 0 var(--space-xl);
  text-align: left;
}
@media (min-width: 769px) {
  .services-guide {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--duration-base) ease, transform var(--duration-base) ease;
}
.service-card:hover {
  border-color: rgba(240, 237, 232, 0.25);
  transform: translateY(-2px);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.service-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.service-card__meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.service-card__meta strong {
  color: var(--text-primary);
  font-weight: 600;
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0 var(--space-xl);
  text-align: left;
}
@media (min-width: 769px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.process-step {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 20px;
}
.process-step__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.process-step__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.process-step__need {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.process-step__need strong {
  color: var(--text-primary);
}
.work-intro__help {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
  margin-top: 16px;
}
.work-intro__cta {
  margin-top: 20px;
}

/* -- (4) FAQ upgrade -- */
.faq {
  max-width: 720px;
  margin: var(--space-2xl) auto 0;
  text-align: left;
}
.faq__title {
  margin-bottom: 8px;
}
.faq__sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}
.faq__item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item.is-open {
  border-color: rgba(61, 191, 110, 0.45);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  color: var(--text-primary);
  transition: color var(--duration-fast) ease;
}
.faq__question:hover {
  color: var(--accent-palm-bright);
}
.faq__question h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0;
}
.faq__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  transition: transform var(--duration-base) ease;
}
.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}
.faq__icon .material-symbols-outlined {
  font-size: 18px;
}
.faq__panel {
  padding: 0 20px 20px;
  animation: faqIn 0.28s var(--ease-out-expo);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq__panel p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.faq__panel p + p {
  margin-top: 12px;
}
.faq__intake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-palm-bright);
}
.faq__unsure {
  margin-top: var(--space-lg);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.faq__unsure p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* -- (5) Blog readability: measure, pill, shield row -- */
.read-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--read-pill-bg);
  border: 1px solid var(--read-pill-border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.blog__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: var(--space-md);
}
.shield-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(61, 191, 110, 0.06);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: var(--measure);
}
.shield-row .material-symbols-outlined {
  font-size: 16px;
  font-weight: 200;
  font-variation-settings: 'FILL' 0, 'wght' 200;
  color: var(--accent-palm-bright);
  flex-shrink: 0;
}
.article-page__body,
.modal__blog-content {
  max-width: var(--measure);
}
.article-page__header p,
.modal__blog-header p {
  max-width: var(--measure);
}

/* -- (6) Know-how list reusing blog components -- */
.knowhow {
  margin-top: var(--space-2xl);
}
.knowhow__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  margin-top: var(--space-lg);
}
@media (min-width: 769px) {
  .knowhow__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.knowhow__empty {
  max-width: var(--measure-narrow);
  margin: 0 auto;
}
.related-essays {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  max-width: var(--measure);
}
.related-essays__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.related-essays__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 769px) {
  .related-essays__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* -- (7) Header CTA on mobile plus footer contact button -- */
.nav__cta-btn--mobile {
  display: none;
}
@media (max-width: 768px) {
  .nav__cta-btn--mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 12px;
    padding: 8px 14px;
    font-size: 11px;
    white-space: nowrap;
  }
  .nav__inner {
    gap: 8px;
  }
}
.footer__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--accent-palm-bright);
  color: #0A0A0A;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease;
  white-space: nowrap;
}
.footer__contact-btn:hover {
  background: var(--accent-sand-light);
  transform: translateY(-1px);
}
.footer__contact-btn .material-symbols-outlined {
  font-size: 15px;
}
@media (max-width: 768px) {
  .footer__contact-btn {
    order: 0;
  }
}

/* ============================================================
   25. REVIEW-FIX: roomier blog and contact, button tiers,
   expanded footer, cursor guards (same warm dark look)
   ============================================================ */

/* -- (2) Roomier reading: reuse --measure, larger padding, air -- */
.article-page {
  max-width: var(--measure);
}
@media (min-width: 769px) {
  .article-page {
    max-width: var(--measure);
    padding-left: 24px;
    padding-right: 24px;
  }
  .contact-page {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.modal__blog-article {
  max-width: var(--measure);
}
.contact-page {
  max-width: var(--measure);
  padding-bottom: var(--space-3xl);
}
.faq {
  max-width: var(--measure);
}
.page-header__subtitle,
.work-intro__help,
.contact-page__subtitle {
  max-width: var(--measure);
}
.blog-page__grid {
  gap: 32px;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.blog__card {
  padding: 32px;
}
.blog__card-meta {
  margin-bottom: var(--space-lg);
}
.blog__card-excerpt {
  margin-bottom: var(--space-xl);
}
.knowhow {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
}
.contact-form {
  gap: 28px;
  margin-top: var(--space-xl);
}
.contact-form__input,
.contact-form__textarea {
  padding: 18px 20px;
}
.contact-form__textarea {
  min-height: 180px;
}
.contact-direct-grid {
  gap: 20px;
  margin-top: var(--space-2xl);
}
.contact-direct-card {
  padding: 24px;
  gap: 16px;
}
.services-guide {
  margin-bottom: var(--space-2xl);
  gap: 20px;
}
.service-card {
  padding: 28px;
  gap: 14px;
}
.process-steps {
  margin: var(--space-xl) 0 var(--space-2xl);
  gap: 20px;
}
.process-step {
  padding: 28px;
}
.faq__question {
  padding: 22px 24px;
}
.faq__panel {
  padding: 0 24px 24px;
}
.faq__unsure {
  padding: 28px;
  margin-top: var(--space-2xl);
}

/* -- (6) Button tiers: primary glass, outline secondary, quiet link -- */
.btn-primary,
.nav__cta-btn,
.contact-form__submit,
.work__view-all-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 191, 110, 0.14);
  border: 1px solid rgba(61, 191, 110, 0.5);
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-primary:hover,
.nav__cta-btn:hover,
.contact-form__submit:hover,
.work__view-all-btn:hover {
  background: rgba(61, 191, 110, 0.24);
  border-color: var(--accent-palm-bright);
  color: var(--text-primary);
}
.btn-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(240, 237, 232, 0.35);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(240, 237, 232, 0.06);
  border-color: var(--text-primary);
}
.btn-quiet,
.view-all-link,
.faq__intake,
.contact-direct-card .card-action-btn,
.article-page__back {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-palm-bright);
}
/* Equal heights where buttons sit in groups */
.contact-direct-card,
.faq__unsure,
.modal__project-cta,
.work-intro {
  align-items: stretch;
}
.faq__unsure .btn-primary,
.modal__project-cta .btn-primary {
  min-height: 48px;
}

/* -- (5) Expanded footer: no contact button, link columns -- */
.footer {
  height: auto;
  padding: 56px 0 32px;
}
.footer__inner--expanded {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  height: auto;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: color var(--duration-base) ease;
}
.footer__col a:hover {
  color: var(--accent-palm-bright);
}
@media (min-width: 769px) {
  .footer__inner--expanded {
    grid-template-columns: 1.1fr 1.6fr;
  }
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .footer__inner--expanded {
    text-align: center;
    justify-items: center;
  }
  .footer__brand {
    align-items: center;
  }
  .footer__cols {
    width: 100%;
  }
}

/* -- (7) Cursor guards: touch gets no cursor, reduced motion keeps native -- */
@media (prefers-reduced-motion: reduce) {
  .cursor {
    display: none !important;
  }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: auto;
  }
}

/* -- (8) Iframe hover: custom cursor hides over embedded frames -- */
@media (hover: hover) and (pointer: fine) {
  .cursor--hidden {
    opacity: 0 !important;
  }
}

/* -- (9) Zoomable images: hide the native cursor so only the custom zoom ring shows -- */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor .modal__gallery-img,
  body.has-custom-cursor .modal__gallery-img img,
  body.has-custom-cursor .lightbox__img-wrap,
  body.has-custom-cursor .lightbox__img-wrap img,
  body.has-custom-cursor .lightbox__body {
    cursor: none !important;
  }
}


