/* ============================================================
   Amish Jha — Personal Site
   Editorial Night palette with restrained orange & green accents
   ============================================================ */

/* ---------- FONTS (referenced from /fonts) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-Italic.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Palette — Editorial Night */
  --bg:           #0e1116;
  --bg-card:      #161a21;
  --bg-elevated:  #1c212a;
  --rule:         #2a313d;
  --rule-soft:    #1f242d;
  --text:         #d8d4cc;
  --text-muted:   #7d8493;
  --text-dim:     #5b6271;

  /* Accents (used sparingly, with intent) */
  --gold:         #c9a961;  /* primary accent — name, CTAs, hero highlights */
  --gold-dim:     #8d764a;
  --orange:       #e07a3c;  /* energy accent — metrics, hover state */
  --orange-soft:  rgba(224, 122, 60, 0.12);
  --green:        #7ba05b;  /* signal accent — available status, success */
  --green-soft:   rgba(123, 160, 91, 0.14);

  /* Typography scale */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container: 1100px;
  --content:   860px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- ACCESSIBILITY ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* Honor reduced-motion preference — disable reveals, orbit, pulse */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- LAYOUT PRIMITIVES ---------- */
main { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--rule);
}

/* ---------- HERO ---------- */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
}
.hero::before {
  /* Subtle radial atmosphere — adds depth without being noisy */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(201, 169, 97, 0.05), transparent 60%),
    radial-gradient(ellipse 500px 300px at 90% 80%, rgba(224, 122, 60, 0.025), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 620px; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variation-settings: "opsz" 144;
  margin-bottom: var(--space-4);
}
.display .dot {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}

.role-line {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-primary { color: var(--gold); font-weight: 600; }
.role-secondary { color: var(--text-muted); }

.deck {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 19px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  max-width: 580px;
  margin-bottom: var(--space-5);
  letter-spacing: 0.005em;
}

/* "Available" pill — pulsing green dot, semantic signal */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--green-soft);
  border: 1px solid rgba(123, 160, 91, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: var(--space-6);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  animation: status-pulse 2.4s var(--ease) infinite;
}
@keyframes status-pulse {
  0%   { transform: scale(0.7); opacity: 0.4; }
  70%  { transform: scale(2);   opacity: 0; }
  100% { transform: scale(2);   opacity: 0; }
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: var(--gold);
  color: #1a1408;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0e08;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- HERO PORTRAIT + ORBIT ---------- */
.hero-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 360px;
  width: 100%;
  margin-left: auto;
}
.portrait-frame {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  z-index: 2;
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 80px;
  color: var(--gold);
  background: var(--bg-card);
}
.orbit-anim {
  position: absolute;
  top: -8%;
  left: -8%;
  right: -8%;
  bottom: -8%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- SECTIONS ---------- */
.section-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-7);
  max-width: 720px;
}

/* ABOUT */
.about-body {
  max-width: var(--content);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.about-body p {
  margin-bottom: var(--space-5);
}
.about-body p:last-child { margin-bottom: 0; }
.about-body em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02em;
  color: var(--gold);
}
.metric-inline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange);
  font-size: 1.05em;
  font-style: italic;
  white-space: nowrap;
}

/* WORK LIST */
.work-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.work-item {
  background: var(--bg-card);
  padding: var(--space-6);
  transition: background 0.25s var(--ease);
  position: relative;
}
.work-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.work-item:hover {
  background: var(--bg-elevated);
}
.work-item:hover::before { transform: scaleX(1); }
.work-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.work-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.work-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* CONTACT */
.section-contact {
  padding-bottom: var(--space-9);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-intro p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.contact-meta {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.contact-meta li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.meta-k {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 2px;
}
.meta-v { color: var(--text); }
.meta-v a {
  color: var(--gold);
  border-bottom: 1px dotted var(--gold-dim);
  transition: color 0.2s var(--ease);
}
.meta-v a:hover { color: var(--orange); }

/* FORM */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: var(--space-6);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  margin-bottom: var(--space-4);
}
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 4px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elevated);
}
.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-4);
  text-align: center;
}
.form-note code {
  font-family: var(--font-body);
  color: var(--gold);
  background: var(--orange-soft);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-7) 0;
  margin-top: var(--space-7);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-sig {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.footer-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-credit {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-credit a {
  color: var(--gold);
  border-bottom: 1px dotted var(--gold-dim);
}
.footer-credit a:hover { color: var(--orange); }

/* ============================================================
   REVEAL ANIMATIONS — staggered fade-up on load
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 0.9s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SERVICES SECTION — four engagement cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.service-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

/* Primary Adobe card gets a subtle gold-tinted background */
.service-card-primary {
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.04) 0%, var(--bg-card) 100%);
  border-color: rgba(201, 169, 97, 0.25);
}
.service-card-primary:hover {
  border-color: var(--gold);
}

.service-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  display: inline-block;
  padding: 4px 10px;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.service-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.service-list {
  list-style: none;
  margin-bottom: var(--space-5);
  padding-left: 0;
}
.service-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.service-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-cta:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ============================================================
   ENGAGEMENT SECTION — three models + booking CTA
   ============================================================ */
.section-engage {
  background:
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(201, 169, 97, 0.04), transparent 70%);
}

.engage-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.engage-models {
  display: grid;
  gap: var(--space-5);
}

.engage-model {
  padding: var(--space-5);
  border-left: 2px solid var(--rule);
  position: relative;
  transition: border-color 0.3s var(--ease);
}
.engage-model:hover {
  border-left-color: var(--gold);
}

.engage-model-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}

.engage-model-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.engage-model-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.engage-cta {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: var(--space-6);
  text-align: center;
  position: sticky;
  top: var(--space-5);
}

.engage-cta-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.btn-large {
  padding: 16px 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  width: 100%;
  justify-content: center;
}

.engage-cta-or {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-4);
  font-weight: 500;
}

/* ============================================================
   FEATURED WORK ITEM — special treatment for the XF box
   ============================================================ */
.work-item-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.06) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(201, 169, 97, 0.3);
  position: relative;
}
.work-item-feature::before {
  background: var(--gold);
  transform: scaleX(1);
  height: 2px;
}
.work-item-feature:hover {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, var(--bg-elevated) 60%);
  border-color: var(--gold);
}
.work-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  display: inline-block;
  padding: 4px 10px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 100px;
  border: 1px solid rgba(201, 169, 97, 0.3);
}

.work-item-feature .work-title {
  font-size: 28px;
}

/* ============================================================
   FORM EXTENSIONS — select dropdown
   ============================================================ */
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237d8493' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--bg-elevated);
}
.field select option {
  background: var(--bg-card);
  color: var(--text);
  padding: 8px;
}

/* ============================================================
   RESPONSIVE OVERRIDES — services & engage on mobile
   ============================================================ */
@media (max-width: 880px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .engage-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .engage-cta {
    position: static;
  }
  .work-item-feature .work-title {
    font-size: 22px;
  }
}
@media (max-width: 880px) {
  main { padding: 0 var(--space-4); }
  .section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-7) 0 var(--space-6); }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hero-portrait {
    order: -1;
    max-width: 200px;
  }
  .hero-text { max-width: 100%; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .work-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  main { padding: 0 var(--space-4); }
  .display { font-size: clamp(48px, 14vw, 64px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .deck { font-size: 16px; }
  .about-body { font-size: 16px; }
  .work-item { padding: var(--space-5); }
  .contact-form { padding: var(--space-5); }
}
