/* ── FONT ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --lav:       #b299ff;
  --lav-light: #e8e4f5;
  --lav-dark:  #8c6fd4;
  --yellow:    #ffe600;
  --black:     #0a0a0a;
  --white:     #ffffff;
  --muted:     #666;
  --max-w:     1170px;
  --f-display: 'Gilroy', 'Arial Black', sans-serif;
  --f-body:    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── SKIP NAV ──────────────────────────────────────────────── */
.skip-nav {
  position: absolute; top: -40px; left: 0;
  background: var(--yellow); color: var(--black);
  padding: 8px 16px; font-weight: 700;
  z-index: 200; transition: top 0.2s; text-decoration: none;
}
.skip-nav:focus { top: 0; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: var(--lav);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav[data-scrolled] {
  background: rgba(178,153,255,0.93);
  backdrop-filter: blur(14px);
}
.nav-brand { text-decoration: none; display: block; }
.nav-logo   { height: 44px; width: auto; }
.nav-cta {
  background: var(--yellow); color: var(--black);
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  padding: 12px 28px; transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: #d4c200; transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px 40px 80px;
  background-color: #e4e4e4;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.52) 0%, #fff 100%), url('/images/hero.jpg');
  background-size: cover; background-position: center;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px); font-weight: 700;
  line-height: 1.1; color: var(--black);
  max-width: 800px; margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: #333;
  max-width: 640px; line-height: 1.75; margin-bottom: 36px;
}
.hero-arrow { margin-top: 52px; animation: bounce 1.4s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(14px); }
}

/* ── SECTION UTILS ─────────────────────────────────────────── */
section { padding: 88px 0; }

.section-label {
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase; color: var(--lav-dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; display: block; width: 36px; height: 2px;
  background: var(--lav-dark); flex-shrink: 0;
}
.section-title {
  font-family: var(--f-display); font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; line-height: 1.05; margin-bottom: 24px;
}

/* ── PROFILE ───────────────────────────────────────────────── */
.profile-section { background: var(--lav-light); }
.profile-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start;
}
.profile-text { font-size: 18px; color: #333; line-height: 1.85; margin-bottom: 16px; }
.profile-text:last-child { color: #555; font-size: 16px; }

/* ── SERVICES ──────────────────────────────────────────────── */
.services-section { background: var(--black); color: var(--white); }
.services-section .section-label,
.services-section .section-label::before { color: var(--yellow); background: var(--yellow); }
.services-section .section-title { color: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px; margin-top: 48px;
}
.service { border-top: 3px solid var(--yellow); padding-top: 24px; }
.service-icon { width: 28px; height: 28px; margin-bottom: 18px; }
.service h3 {
  font-family: var(--f-display); font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.service p { font-size: 15px; color: #aaa; line-height: 1.75; }

/* ── BENEFITS ──────────────────────────────────────────────── */
.benefits-section { background: var(--lav-light); overflow: hidden; }
.benefit {
  padding: 72px 40px; text-align: center;
  font-family: var(--f-display); font-size: clamp(26px, 4vw, 52px);
  font-weight: 700; line-height: 1.2; color: var(--black);
  view-timeline: --bt block;
  animation: bcolor linear both;
  animation-timeline: --bt;
  animation-range: entry 20% cover 60%;
}
@keyframes bcolor {
  0%   { background-color: #ffaaaa; }
  50%  { background-color: #86ceff; }
  100% { background-color: #d6ffed; }
}
@supports not (animation-timeline: scroll()) {
  .benefit { background-color: var(--lav-light); }
}

/* ── PORTFOLIO ─────────────────────────────────────────────── */
.portfolio-section { background: var(--black); color: var(--white); }
.portfolio-section .section-label { color: var(--yellow); }
.portfolio-section .section-label::before { background: var(--yellow); }
.portfolio-section .section-title { color: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px; margin-top: 48px;
}

.portfolio-card {
  position: relative; cursor: pointer; overflow: hidden;
  background: #111;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  padding: 40px 36px 32px;
  display: flex; flex-direction: column;
}
.portfolio-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}
.portfolio-card:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.card-tag {
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 12px; display: block;
}
.card-title {
  font-family: var(--f-display); font-size: 26px; font-weight: 700;
  color: var(--white); margin-bottom: 12px; line-height: 1.1;
}
.card-summary { font-size: 14px; color: #888; line-height: 1.7; flex: 1; }
.card-arrow {
  margin-top: 24px; font-family: var(--f-display);
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--yellow);
  transition: gap 0.2s;
}
.portfolio-card:hover .card-arrow { letter-spacing: 5px; }

/* ── CASE STUDY DRAWER ─────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.35s;
}
.drawer-overlay.open {
  background: rgba(0,0,0,0.7);
  pointer-events: all;
}

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(680px, 95vw);
  background: var(--white); z-index: 600;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-close {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; background: var(--black);
  border-bottom: 3px solid var(--yellow);
}
.drawer-close-label {
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--yellow);
}
.drawer-close-btn {
  background: none; border: none; color: var(--white); cursor: pointer;
  font-size: 28px; line-height: 1; padding: 0 4px;
  transition: color 0.15s;
}
.drawer-close-btn:hover { color: var(--yellow); }

.drawer-header {
  background: var(--black); padding: 40px 40px 48px;
}
.drawer-tag {
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 16px; display: block;
}
.drawer-title {
  font-family: var(--f-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; color: var(--white); line-height: 1.05; margin-bottom: 20px;
}
.drawer-subtitle { font-size: 18px; color: #aaa; line-height: 1.7; }

.drawer-body { padding: 48px 40px; flex: 1; }

.drawer-section { margin-bottom: 40px; }
.drawer-section h3 {
  font-family: var(--f-display); font-size: 18px; font-weight: 700;
  color: var(--black); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 3px solid var(--yellow);
}
.drawer-section p {
  font-size: 16px; color: #333; line-height: 1.85; margin-bottom: 12px;
}

.outcome-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.outcome-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; color: #333; line-height: 1.6;
}
.outcome-list li::before {
  content: '→'; color: var(--lav-dark); flex-shrink: 0;
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  background: var(--lav-light); color: #444;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 14px;
}

.placeholder-note {
  background: #fff8d6; border-left: 4px solid var(--yellow);
  padding: 14px 18px; font-size: 14px; color: #666;
  font-style: italic; margin-top: 8px;
}

.drawer-cta {
  background: var(--lav-light); padding: 32px 40px;
  border-top: 1px solid #eee;
}
.drawer-cta p { font-size: 15px; color: #555; margin-bottom: 16px; }
.btn-primary {
  display: inline-block; background: var(--black); color: var(--white);
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  padding: 14px 32px; transition: background 0.2s;
}
.btn-primary:hover { background: #333; }

/* ── CLIENTS ───────────────────────────────────────────────── */
.clients-section { background: var(--lav-light); padding: 72px 0; }
.logos-grid {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 40px 56px; margin-top: 40px;
}
.logos-grid img {
  height: 34px; width: auto; object-fit: contain;
  opacity: 0.5; transition: opacity 0.2s;
}
.logos-grid img:hover { opacity: 1; }

/* ── TWO-COL INFO ──────────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.two-col h3 {
  font-family: var(--f-display); font-size: 26px; font-weight: 700;
  margin-bottom: 12px; line-height: 1.1;
}
.two-col p { font-size: 16px; color: #555; line-height: 1.8; }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-section { background: var(--black); color: var(--white); }
.contact-section .section-label { color: var(--yellow); }
.contact-section .section-label::before { background: var(--yellow); }
.contact-section .section-title { color: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-intro { font-size: 18px; color: #bbb; line-height: 1.8; margin-bottom: 28px; }
.contact-email {
  display: inline-block; font-family: var(--f-display); font-size: 18px; font-weight: 700;
  color: var(--yellow); text-decoration: none; border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px; transition: opacity 0.2s; word-break: break-all;
}
.contact-email:hover { opacity: 0.75; }
.cal-embed { min-height: 520px; }

/* ── FIND ME ───────────────────────────────────────────────── */
.findme-section { background: var(--lav-light); padding: 56px 0; }
.findme-links {
  display: flex; gap: 32px; margin-top: 20px; flex-wrap: wrap;
}
.findme-links a {
  color: #555; text-decoration: none; font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.findme-links a:hover { color: var(--lav-dark); border-color: var(--lav-dark); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--black); border-top: 1px solid #1a1a1a;
  padding: 32px; text-align: center; color: #555; font-size: 13px;
}
footer a { color: var(--yellow); text-decoration: none; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .profile-grid, .contact-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .nav-cta { font-size: 12px; padding: 10px 18px; }
  .drawer-body, .drawer-header, .drawer-cta { padding-left: 24px; padding-right: 24px; }
}
