@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:      #f7f6f4;
  --surface: #ffffff;
  --border:  #e2e0dc;
  --ink:     #1c1c1a;
  --ink-2:   #4a4845;
  --muted:   #8a8680;
  --red:     #b04030;
  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --r: 4px;
  --max: 1100px;
  --ease: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ══════════════════════════════════════
   GRADIENT BACKGROUND — orbs + cursor
══════════════════════════════════════ */
.gradient-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg);
  pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: orbdrift 22s ease-in-out infinite;
  will-change: transform, opacity;
}
.orb-1 {
  width: 700px; height: 700px; top: -200px; right: -150px;
  background: radial-gradient(circle, #ddd8ce 0%, transparent 70%);
  opacity: .7; animation-delay: 0s;
}
.orb-2 {
  width: 550px; height: 550px; bottom: -150px; left: -150px;
  background: radial-gradient(circle, #cfd4cc 0%, transparent 70%);
  opacity: .45; animation-delay: -7s;
}
.orb-3 {
  width: 450px; height: 450px; top: 45%; right: 10%;
  background: radial-gradient(circle, #d8d5cf 0%, transparent 70%);
  opacity: .3; animation-delay: -14s;
}
@keyframes orbdrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.05); }
  66%      { transform: translate(-20px,30px) scale(0.97); }
}

/* Cursor-follow orb — desktop only, positioned via JS */
.cursor-orb {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28,28,26,.055) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  left: -1000px; top: -1000px; /* hidden until first mousemove */
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(247,246,244,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--fd); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .8rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); transition: color var(--ease); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; flex-direction: column; gap: 1rem; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: .95rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--border); transition: color var(--ease); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--ink); }

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.label { font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; display: block; }
.title { font-family: var(--fd); font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.15; margin-bottom: 2rem; color: var(--ink); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero { padding-top: calc(60px + 8rem); padding-bottom: 8rem; min-height: 100svh; display: flex; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink); display: block; }
.hero-name { font-family: var(--fd); font-size: clamp(3rem,9vw,6.5rem); line-height: .92; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero-name em { font-style: italic; color: var(--red); }
.hero-tag { font-size: clamp(1rem,2.5vw,1.15rem); color: var(--muted); max-width: 500px; margin-bottom: 3rem; font-weight: 300; line-height: 1.75; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-family: var(--fb); font-size: .82rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; border-radius: var(--r); transition: all var(--ease); cursor: pointer; border: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #333; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ══════════════════════════════════════
   ABOUT — full bleed portrait
══════════════════════════════════════ */
.about-strip { background: var(--ink); color: #f0ede8; overflow: hidden; }

/* Grid: text left, photo right — photo is full height, zero padding */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 600px;
  /* no max-width wrapper here — photo must bleed to right edge */
}
.about-left {
  max-width: calc(var(--max) - 380px);
  margin-left: auto; /* push left content to respect max-width */
  padding: 5rem 3rem 5rem 2rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}
.about-strip .label { color: rgba(240,237,232,.35); }
.about-strip .title { color: #f0ede8; margin-bottom: 0; }
.about-body { font-size: .95rem; color: rgba(240,237,232,.6); line-height: 1.85; }
.about-body p + p { margin-top: 1rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-item { border-top: 1px solid rgba(255,255,255,.1); padding-top: .75rem; }
.stat-n { font-family: var(--fd); font-size: 2rem; color: #f0ede8; line-height: 1; margin-bottom: 2px; }
.stat-l { font-size: .75rem; color: rgba(240,237,232,.4); letter-spacing: .05em; }

/* Portrait — zero padding, covers entire right column */
.about-photo {
  position: relative;
  overflow: hidden;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ══════════════════════════════════════
   WORK CARDS
══════════════════════════════════════ */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.work-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; display: flex; flex-direction: column; cursor: pointer; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,.1); border-color: rgba(28,28,26,.2); }
.work-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: .68rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.card-title { font-family: var(--fd); font-size: 1.2rem; line-height: 1.3; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.card-title svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.card-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.7; flex: 1; }
.card-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill { font-size: .67rem; background: var(--bg); color: var(--muted); padding: 3px 9px; border-radius: 100px; border: 1px solid var(--border); letter-spacing: .04em; }
.card-more { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; transition: color var(--ease); white-space: nowrap; }
.work-card:hover .card-more { color: var(--ink); }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,8,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal { position: fixed; top: 0; right: 0; bottom: 0; z-index: 201; width: min(640px,100vw); background: var(--surface); overflow-y: auto; transform: translateX(100%); transition: transform .38s cubic-bezier(.32,0,.16,1); }
.modal.open { transform: translateX(0); }
.modal-header { position: sticky; top: 0; z-index: 1; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }
.modal-tag-label { font-size: .68rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center; transition: all var(--ease); color: var(--ink); }
.modal-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal-body { padding: 2rem 2rem 4rem; }
.modal-title { font-family: var(--fd); font-size: 1.9rem; line-height: 1.2; margin-bottom: .4rem; }
.modal-subtitle { font-size: .85rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.5; }
.modal-text { font-size: .92rem; color: var(--ink-2); line-height: 1.85; }
.modal-text p + p { margin-top: 1rem; }
.modal-text h4 { font-family: var(--fd); font-size: 1.05rem; color: var(--ink); margin: 2rem 0 .5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.modal-text h4:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.modal-text ul { padding-left: 1.2rem; margin-top: .5rem; }
.modal-text ul li { margin-bottom: 5px; font-size: .9rem; color: var(--ink-2); list-style: disc; }
.modal-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.modal-text a:hover { color: var(--red); }
.modal-text blockquote { border-left: 2px solid var(--border); padding-left: 1rem; margin: 1rem 0; color: var(--muted); font-style: italic; font-size: .9rem; }
.modal-img { width: 100%; border-radius: var(--r); margin: 1.25rem 0; border: 1px solid var(--border); }
.modal-img-caption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: -.75rem; margin-bottom: 1.25rem; font-style: italic; }
.modal-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.modal-2col img { width: 100%; border-radius: var(--r); border: 1px solid var(--border); }
.modal-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; margin: 1.25rem 0; }
.modal-3col img { width: 100%; border-radius: var(--r); border: 1px solid var(--border); }
.modal-video { width: 100%; border-radius: var(--r); margin: 1.25rem 0; background: #000; display: block; }
.modal-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testimonials-section { background: var(--bg); }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.t-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; transition: transform var(--ease), box-shadow var(--ease); }
.t-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.t-quote { font-family: var(--fd); font-size: .98rem; line-height: 1.7; font-style: italic; color: var(--ink); margin-bottom: 1rem; }
.t-quote::before { content: '\201C'; font-size: 2.5rem; color: var(--border); line-height: 0; vertical-align: -.55em; margin-right: 3px; font-family: var(--fd); }
.t-author { font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

/* ══════════════════════════════════════
   PROJECTS
══════════════════════════════════════ */
.projects-section { background: var(--surface); border-top: 1px solid var(--border); }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.p-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.p-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.p-title { font-family: var(--fd); font-size: 1.1rem; line-height: 1.3; display: flex; align-items: center; gap: .45rem; }
.p-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.p-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.p-link { font-size: .75rem; font-weight: 500; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; margin-top: auto; transition: letter-spacing var(--ease); }
.p-card:hover .p-link { letter-spacing: .1em; }
.p-link::after { content: ' →'; }

/* ══════════════════════════════════════
   CONNECT
══════════════════════════════════════ */
.connect-section { background: var(--ink); color: #f0ede8; padding: 5rem 0; text-align: center; }
.connect-section .label { color: rgba(240,237,232,.35); display: flex; justify-content: center; }
.connect-section .title { color: #f0ede8; }
.connect-links { display: flex; gap: 2rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.c-link { display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgba(240,237,232,.4); transition: color var(--ease); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.c-link:hover { color: #f0ede8; }
.c-icon { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all var(--ease); }
.c-link:hover .c-icon { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.footer-bottom { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .75rem; color: rgba(240,237,232,.25); letter-spacing: .05em; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp .75s ease forwards; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
[data-fade] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
[data-fade].visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  /* About: stack vertically, photo below */
  .about-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 380px;
    min-height: unset;
  }
  .about-left {
    max-width: unset;
    margin-left: 0;
    padding: 3rem 1.5rem;
  }
  /* Photo: full width, fixed height, no side padding */
  .about-photo {
    width: 100%;
    height: 380px;
    position: relative;
  }
  .about-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .modal { width: 100vw; top: auto; border-radius: 16px 16px 0 0; max-height: 92svh; transform: translateY(100%); }
  .modal.open { transform: translateY(0); }
  .modal-2col, .modal-3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-name { font-size: 2.8rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-photo { height: 300px; }
  .modal-3col { grid-template-columns: 1fr 1fr; }
}
