/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--terracotta); text-decoration: none; }
a:hover, a:focus { color: var(--terracotta-dark); }
img, svg { max-width: 100%; display: block; }

/* ---------- Theme ---------- */
:root {
  --cream:           #fdfbf5;   /* warm off-white background */
  --cream-deep:      #f7f1e3;   /* slightly deeper for alt sections */
  --paper:           #ffffff;
  --ink:             #2b2926;   /* warm near-black text */
  --ink-mute:        #6b6660;   /* muted body text */
  --terracotta:      #c47b5a;   /* peach / terracotta accent */
  --terracotta-dark: #9c5e42;
  --sage:            #7a9e7e;   /* dusty sage green */
  --sage-dark:       #5c7d5f;
  --mustard:         #e6c879;   /* warm gold accent */
  --hairline:        #e8e1d0;
  --shadow-sm:       0 1px 2px rgba(64, 50, 32, .06);
  --shadow-md:       0 8px 20px rgba(64, 50, 32, .08);
  --radius:          14px;
  --radius-lg:       22px;
  --maxw:            1080px;
}

::selection { background: var(--mustard); color: var(--ink); }

/* ---------- Typography ---------- */
.section-title,
.hero-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.section-title em,
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.center-text { text-align: center; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: .6rem 1rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Corner ornaments ---------- */
.corner {
  position: fixed;
  width: 64px;
  height: 64px;
  z-index: 10;
  pointer-events: none;
}
.corner-tl { top: 14px; left: 14px; }
.corner-tr { top: 14px; right: 14px; }
.corner-bl { bottom: 14px; left: 14px; }
.corner-br { bottom: 14px; right: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 245, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-flourish { color: var(--terracotta); }
.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 1rem;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:hover, .nav-links a:focus {
  color: var(--terracotta);
}
.nav-links a:hover::after, .nav-links a:focus::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
  max-width: 16ch;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-mute);
  margin-bottom: 2rem;
  max-width: 48ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.hero-link {
  color: var(--ink-mute);
  font-size: .98rem;
  border-bottom: 1px dashed var(--ink-mute);
  padding-bottom: 2px;
}
.hero-link:hover, .hero-link:focus {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-arrow svg { width: 18px; height: 18px; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-eyebrow {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1rem;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}
.section-lede {
  color: var(--ink-mute);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 50ch;
}
.center-text + .center-text { margin-left: auto; margin-right: auto; }

/* ---------- Divider ---------- */
.divider {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.divider svg {
  width: 100%;
  height: 40px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}
/* ---- About pullquote (replaces headshot) ---- */
.about-pullquote {
  position: relative;
  padding: 2.5rem 2rem 2.25rem;
  background: var(--cream-deep);
  border: 2px solid var(--ink);
  border-radius: 10px;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.pullquote-mark {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto .5rem;
}
.pullquote-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 1rem;
}
.pullquote-text p { margin: 0; }
.pullquote-text em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}
.pullquote-cite {
  display: block;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-style: normal;
}
.pullquote-scribble {
  width: 70%;
  height: auto;
  display: block;
  margin: 1rem auto 0;
}
.pullquote-dots {
  position: absolute;
  width: 60px;
  height: 60px;
}
.pullquote-dots--tl { top: -18px; left: -18px; transform: rotate(-12deg); }
.pullquote-dots--br { bottom: -22px; right: -16px; transform: rotate(8deg); }
@media (min-width: 760px) {
  .pullquote-text { font-size: 1.7rem; }
}
.about-text-col p {
  color: var(--ink);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-text-col p:last-child { margin-bottom: 0; }
.inline-link {
  color: var(--terracotta);
  border-bottom: 1.5px solid var(--terracotta);
  padding-bottom: 1px;
}
.inline-link:hover, .inline-link:focus {
  background: var(--mustard);
  color: var(--ink);
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.work-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-flagship { grid-column: 1 / -1; }
.card-thumb {
  border-bottom: 1.5px solid var(--ink);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.thumb-spp        { background: #fff8eb; }
.thumb-localyze   { background: #f0f4ec; }
.thumb-ledger     { background: #fdf2e9; }
.thumb-praarthana { background: #fbf2dd; }
.card-thumb svg { width: 100%; max-width: 340px; height: auto; }
.card-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-category {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--sage-dark);
  font-size: .95rem;
  margin-bottom: .4rem;
}
.card-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: .75rem;
  color: var(--ink);
}
.card-blurb {
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.card-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.card-ctas .btn { padding: .65rem 1.1rem; font-size: .92rem; }

/* ---------- Contact ---------- */
.section-contact {
  background: var(--cream-deep);
  border-top: 1.5px solid var(--hairline);
  border-bottom: 1.5px solid var(--hairline);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
.contact-art {
  display: flex;
  justify-content: center;
}
.contact-art svg { width: 100%; max-width: 240px; }
.contact-copy .section-title { margin-bottom: 1rem; }
.contact-lede {
  color: var(--ink-mute);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: .92rem;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .hero-title { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-photo {
    max-width: 240px;
    margin: 0 auto;
  }
  .work-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-flagship { grid-column: auto; }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .contact-cta { justify-content: center; }
  .contact-art svg { max-width: 180px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .corner { width: 44px; height: 44px; }
  .corner-tl, .corner-tr { top: 8px; }
  .corner-bl, .corner-br { bottom: 8px; }
  .corner-tl, .corner-bl { left: 8px; }
  .corner-tr, .corner-br { right: 8px; }
  .nav { padding: .85rem 1.5rem; }
  .nav-links { gap: 1.1rem; font-size: .95rem; }
  .hero { padding: 3rem 0 4rem; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1.05rem; }
  .section { padding: 3.5rem 0; }
  .card-thumb { min-height: 180px; padding: 1.25rem; }
  .card-body { padding: 1.5rem; }
  .card-title { font-size: 1.3rem; }
  .scroll-arrow { display: none; }
  .btn { width: 100%; }
  .hero-cta .btn { width: auto; }
  .card-ctas .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .nav-links { gap: .85rem; font-size: .9rem; }
  .brand { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
