/* ==========================================================================
   Kokil Sehgal — site styles
   1. Fonts   2. Tokens   3. Base   4. Layout helpers   5. Components
   6. Sections   7. Reveal animation
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL Open Font License) ---------------------------- */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --cream: #F7F4EE;
  --sand: #EFEAE1;
  --ink: #1F1D1B;
  --body: #3E3A36;
  --muted: #5C5752;
  --accent: #A4452C;
  --accent-dark: #7E321F;
  --peach: #F2C9B8;

  --line: #E2DCD2;
  --line-strong: #D6CEC2;
  --line-soft: #C9BFB2;
  --img-border: #DCD4C7;

  --dark-line: #4A4541;
  --dark-field: #2A2724;
  --dark-footer-line: #3A3531;
  --on-dark: #F7F4EE;
  --on-dark-body: #CFC8BE;
  --on-dark-label: #E4DED5;
  --on-dark-muted: #A9A198;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: 96px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 4. Layout helpers -------------------------------------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.container--narrow { max-width: 880px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.section--rule { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--sand { background: var(--sand); }

/* 5. Components ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px;
}
.skip-link:focus { left: 8px; color: var(--cream); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.link-underline {
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-soft);
}
.link-underline:hover { color: var(--accent); text-decoration-color: var(--accent); }

.inline-cta { margin-top: 40px; font-size: 17px; color: var(--body); }
.inline-cta a { font-weight: 500; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.nav-links {
  order: 3; flex-basis: 100%;
  display: flex; gap: 4px 24px;
  overflow-x: auto;
  font-size: 15px;
}
.nav-links a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.nav-links a:hover { color: var(--accent); }
.header-cta {
  background: var(--ink); color: var(--cream);
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
  transition: background-color .2s, color .2s;
}
.header-cta:hover { background: var(--accent); color: #fff; }

/* 6. Sections -------------------------------------------------------------- */

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(64px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--body);
  max-width: 520px;
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 28px;
}
.hero__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 480px;
  height: auto;
  justify-self: end;
  object-fit: cover;
  display: block;
  background: var(--sand);
}

/* Services */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 48px;
  margin-bottom: 56px;
}
.section-head .section-title { margin-bottom: 0; }
.section-head p { max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  border-top: 1px solid var(--line-strong);
}
.service { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line-strong); }
.service__num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.service h3 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.service__tags { margin-bottom: 14px; font-size: 14px; color: var(--muted); letter-spacing: 0.01em; }
.service__desc { font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* Promises */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 32px;
}
.promises li { border-top: 1px solid var(--dark-line); padding-top: 24px; }
.promises p { font-family: var(--serif); font-size: 26px; line-height: 1.25; text-wrap: pretty; }
.promises__note { margin-top: 56px; font-size: 17px; line-height: 1.6; color: var(--on-dark-body); max-width: 640px; }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 48px 32px;
}
.step__num { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent); }
.step h3 { margin: 20px 0 10px; font-size: 19px; font-weight: 600; }
.step p { font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.steps-cta { margin-top: 56px; }

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 56px 32px;
}
.project { display: flex; flex-direction: column; gap: 16px; }
.project img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--img-border);
  background: var(--sand);
}
.project .eyebrow { letter-spacing: 0.06em; }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.project p:not(.eyebrow) { font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.project a { font-weight: 500; font-size: 16px; text-underline-offset: 4px; align-self: flex-start; }
.work-cta { margin-top: 56px; }

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about__photo {
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 460px; height: auto;
  object-fit: cover;
  display: block;
}
.about .section-title { margin-bottom: 28px; }
.about p { margin-bottom: 20px; font-size: 18px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.about p.about__base { margin-bottom: 32px; color: var(--ink); }
.about .link-underline { text-decoration-color: var(--accent); }

/* FAQ */
.faq .section-title { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 400;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 24px;
  color: var(--accent);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item__answer { padding: 0 48px 28px 0; font-size: 17px; line-height: 1.6; color: var(--body); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(48px, 6vw, 96px);
}
.contact h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.contact__lede { margin-bottom: 40px; font-size: 18px; line-height: 1.6; color: var(--on-dark-body); max-width: 420px; }
.contact-details { display: grid; gap: 24px; font-size: 17px; }
.contact-details dt {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}
.contact-details dd { display: flex; flex-wrap: wrap; gap: 24px; }
.section--dark a { color: var(--on-dark); text-underline-offset: 4px; }
.section--dark a:hover { color: var(--peach); }
.section--dark :focus-visible { outline-color: var(--peach); }

.contact-form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; font-size: 15px; color: var(--on-dark-label); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 17px;
  color: var(--on-dark);
  background: var(--dark-field);
  border: 1px solid var(--dark-line);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
  color-scheme: dark;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23CFC8BE' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--peach);
  outline: 2px solid var(--peach);
  outline-offset: 1px;
}
.btn-submit {
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 16px 36px;
  cursor: pointer;
  transition: background-color .2s;
}
.btn-submit:hover { background: var(--peach); }
.form-note { font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
.form-note[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-body); border-top: 1px solid var(--dark-footer-line); }
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px 40px;
  font-size: 15px;
}
.site-footer .brand { font-size: 22px; color: var(--on-dark); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__links a { color: var(--on-dark-body); }
.site-footer__links a:hover { color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--peach); }

/* 7. Reveal animation -------------------------------------------------------
   Only active when js/main.js has added .reveal-ready to <html>, so content is
   always visible to search engines, no-JS visitors and reduced-motion users. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
