/* ============================================
   BASE & RESET
   ============================================ */

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

:root {
  --bg:          #ecf0f3;
  --bg-card:     #ffffff;
  --bg-alt:      #e4e8ed;
  --text:        #1a1c20;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --text-accent: #C4622D;
  --border:      #d1d5db;
  --tag-bg:      #e5e8ec;
  --tag-text:    #374151;
  --btn-primary: #C4622D;
  --btn-primary-hover: #a84f22;
  --accent:      #C4622D;
  --status-green:#22c55e;

  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-sans:   'Outfit', system-ui, -apple-system, sans-serif;

  --max-w:       1200px;
  --nav-h:       64px;
  --radius:      10px;
  --radius-lg:   16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 32px;
  background: transparent;
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 8px;
  width: 100%;
  max-width: var(--max-w);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(209, 213, 219, 0.35);
  border-radius: 16px;
  padding-inline: 20px;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.site-header.scrolled .nav {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(209, 213, 219, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-mark-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

.nav-external {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-ext-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-ext-link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

.ext-icon {
  font-size: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.2s;
}

.nav-hamburger span { width: 22px; }

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  display: none;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  line-height: 1;
}

.mobile-nav-links {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.mobile-nav-links a:hover {
  opacity: 0.6;
}

.mobile-nav-elsewhere {
  padding: 24px 32px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elsewhere-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mobile-nav-elsewhere a {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--btn-primary);
  color: #ffffff;
  border-color: var(--btn-primary);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.04);
  border-color: #adb5bd;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.04);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow-sep {
  color: var(--text-muted);
}

.eyebrow-role {
  color: var(--text-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.hero-highlight {
  color: var(--text-accent);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--status-green);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--status-green);
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { inset: 0; opacity: 0.6; }
  100% { inset: -6px; opacity: 0; }
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.portrait-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ============================================
   WORK PAGE HEADER
   ============================================ */

.work-page-header {
  padding-top: 64px;
  padding-bottom: 20px;
}

.work-page-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-top: 12px;
}

/* ============================================
   LOGO STRIP
   ============================================ */

.logo-strip {
  padding-top: 12px;
  padding-bottom: 12px;
  margin-bottom: 48px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
}

.logo-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.15s;
}

.section-link:hover {
  color: var(--text);
}

/* ============================================
   WORK CARDS
   ============================================ */

.work-section {
  padding-top: 24px;
  padding-bottom: 80px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  transition: box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}


.work-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.work-card-reverse {
  direction: rtl;
}

.work-card-reverse > * {
  direction: ltr;
}

.work-card-image {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 280px;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-img {
  transform: scale(1.04);
}

.work-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dde2e9 0%, #c8cdd6 100%);
}

.work-image-placeholder.alt {
  background: linear-gradient(135deg, #cfd6e0 0%, #b8c2d0 100%);
}

.placeholder-ui {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.6;
}

.placeholder-bar {
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
}
.placeholder-bar.wide   { width: 90%; }
.placeholder-bar.medium { width: 60%; }
.placeholder-bar.short  { width: 40%; }

.placeholder-row {
  display: flex;
  gap: 8px;
}

.placeholder-block {
  flex: 1;
  height: 48px;
  background: rgba(255,255,255,0.5);
  border-radius: 4px;
}

.placeholder-block.tall {
  height: 80px;
}

.work-card-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.work-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-accent);
  letter-spacing: 0.03em;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.work-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.work-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-accent);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.work-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  cursor: pointer;
  pointer-events: auto;
}

.work-card:hover .work-card-link {
  gap: 8px;
}

/* ============================================
   WRITING
   ============================================ */

.writing-section {
  padding-bottom: 80px;
}

.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.writing-item:last-child {
  border-bottom: 1px solid var(--border);
}

.writing-item:hover .writing-title {
  color: var(--text-accent);
}

.writing-item-body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
}

.writing-number {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  min-width: 20px;
  margin-top: 2px;
}

.writing-item-content {
  flex: 1;
}

.writing-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-accent);
  margin-bottom: 6px;
}

.writing-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.15s;
}

.writing-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.writing-item-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
}

.writing-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 0 0 50px 0;
  background: #dde1e7;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.cta-gif {
  height: 380px;
  width: auto;
  display: block;
  object-fit: contain;
}

.cta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  margin-bottom: 20px;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #dde1e7;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 12px;
  display: flex;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  gap: 64px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.footer-nav-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-nav-col a:hover {
  color: var(--text);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

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

  .nav-hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 48px;
    text-align: center;
  }

  .hero-portrait {
    order: 1;
    justify-content: center;
  }

  .hero-eyebrow,
  .hero-ctas,
  .hero-status {
    justify-content: center;
  }

  .portrait-placeholder {
    max-width: 220px;
  }

  .portrait-img {
    max-width: 340px;
    margin-inline: auto;
  }

  .logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .logo-item img {
    max-width: 100%;
  }

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

  .work-card-reverse {
    direction: ltr;
  }

  .work-card-image {
    min-height: 220px;
  }

  .work-card-body {
    padding: 32px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    gap: 40px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 600px) {
  .container {
    padding-inline: 20px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
  }


  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    gap: 8px;
  }

  .writing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .writing-item-thumb {
    width: 100%;
    height: 120px;
  }

  .cta-section {
    padding-top: 56px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-gif {
    height: 260px;
    margin-inline: auto;
  }

  .cta-heading {
    font-size: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    justify-content: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 28px;
  }

  .mobile-nav-links a {
    font-size: 28px;
  }

  .logo-strip {
    padding-bottom: 56px;
  }

  .logo-item img {
    max-width: 90px;
  }

  .work-section {
    padding-bottom: 56px;
  }

  .writing-section {
    padding-bottom: 56px;
  }
}
