/* Leo D’Cruz & Co.: base stylesheet
   Palette: Bone / Ink / Slate / Saddle / Wheat ("High Country / River Valley", revised)
   Type: Fraunces (display), Newsreader (body), Inter (labels/nav only)
*/

:root {
  --bone: #F4EFE7;
  --ink: #211D1A;
  --ink-soft: #4A443D;
  --text-muted: #6B6259;
  --text-faint: #8A8074;
  --slate: #28313C;
  --saddle: #7A3B2E;
  --wheat: #B79B5B;
  --hairline: rgba(33, 29, 26, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-label: 'Inter', -apple-system, sans-serif;

  --measure: 640px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bone);
  /* A whisper of paper grain so the parchment tone reads as a surface,
     not a flat digital fill. Tuned to be felt, not seen. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='matrix' values='0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover { border-color: var(--wheat); }
a:focus-visible {
  outline: 1px solid var(--slate);
  outline-offset: 3px;
  border-color: transparent;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Nav */
.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-label);
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border: none;
}
.site-nav .brandmark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: block;
}
.site-nav .wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: none;
}
.site-nav .links {
  display: flex;
  gap: 28px;
}
.site-nav .links a {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: none;
}
.site-nav .links a:hover { color: var(--ink); }
.site-nav .links a.active { color: var(--ink); }

/* Headline / display type */
h1, h2, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

/* Homepage hero */
.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}
.hero .display {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.38;
  max-width: 620px;
}
.hero .signature {
  margin-top: 28px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--saddle);
}
.rule {
  width: 32px;
  height: 2px;
  background: var(--slate);
  margin: 24px 0;
  border: none;
}

/* Homepage hero: full-bleed portrait panel */
.hero-bleed {
  display: grid;
  grid-template-columns: 1fr 42%;
  align-items: stretch;
  min-height: calc(100vh - 84px);
}
.hero-bleed .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(28px, 5vw, 80px) 60px
           max(var(--gutter), calc((100vw - 860px) / 2 + var(--gutter)));
}
.hero-bleed .hero-copy .display {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.3;
  max-width: 18ch;
}
.hero-bleed .hero-under {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 22px 0 0;
}
.hero-bleed figure {
  margin: 0;
  height: 100%;
}
.hero-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  display: block;
}

@media (max-width: 820px) {
  .hero-bleed {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-bleed .hero-copy {
    order: 2;
    padding: 40px var(--gutter) 56px;
  }
  /* Match the source frame exactly (2:3) so nothing is cropped on phones */
  .hero-bleed img {
    aspect-ratio: 2 / 3;
    height: auto;
  }
}

/* Article / long-form copy */
article {
  padding: 88px 0 96px;
}
article p {
  margin: 0 0 1.6em;
  color: var(--ink);
}
article p:last-child { margin-bottom: 0; }
/* A structural pause: set before paragraphs that turn the piece from
   narrative into meaning, so the break itself carries the shift. */
article p.turn { margin-top: 3.2em; }

/* Close-of-letter signature: same idiom as the homepage sign-off,
   so the Story page signs itself with the man as the home page signs
   itself with the house. */
article .signature {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 21px;
  color: var(--saddle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.site-footer .wrap {
  max-width: 860px;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.footer-links {
  display: flex;
  gap: 22px;
  align-items: baseline;
}
.footer-links a {
  color: var(--text-faint);
  border: none;
}
.footer-links a:hover { color: var(--ink); }

/* Contact page */
.contact-block { text-align: left; }
.contact-photo {
  display: block;
  width: 216px;
  height: 324px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 32px;
  border: 1px solid var(--hairline);
}
.contact-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 4px;
}
.contact-email {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 21px;
  color: var(--saddle);
  border-bottom: 1px solid transparent;
}
.contact-email:hover { color: var(--ink); border-color: var(--wheat); }

/* Work landing: four doors */
.work-header {
  margin-bottom: 48px;
}
.work-header .display {
  font-size: clamp(28px, 4vw, 38px);
}
.work-doors {
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-door {
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.work-door:last-child { border-bottom: 1px solid var(--hairline); }
.work-door-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}
a.work-door-link {
  color: var(--ink);
  border: none;
}
a.work-door-link:hover .work-door-title { color: var(--saddle); }
.work-door-line {
  margin: 6px 0 0;
  font-size: 16.5px;
  color: var(--text-muted);
}
.work-door-state {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Services page: quiet accordion */
.services-intro {
  margin-bottom: 44px;
  font-size: 17.5px;
  color: var(--ink-soft);
}
.services-list {
  margin: 0;
  padding: 0;
}
.services-item {
  border-top: 1px solid var(--hairline);
}
.services-item:last-child { border-bottom: 1px solid var(--hairline); }
.services-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.services-item summary::-webkit-details-marker { display: none; }
.services-item summary:hover { color: var(--saddle); }
.services-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-faint);
}
.services-item[open] summary::after { content: '\2013'; }
.services-item-body {
  padding: 0 0 28px;
  max-width: 560px;
}
.services-item-body p {
  margin: 0 0 1.2em;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.services-item-body p:last-child { margin-bottom: 0; }

/* Case study pages */
.study-header {
  margin-bottom: 40px;
}
.study-header .display {
  font-size: clamp(26px, 4vw, 34px);
}
.study-kicker {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saddle);
  margin-bottom: 14px;
}
.study-meta {
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.study-artifacts {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.study-artifacts-label {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saddle);
  margin-bottom: 18px;
}
.study-artifacts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.study-artifacts li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.study-artifacts li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--slate);
}
.study-artifacts .venue { font-style: italic; }
.study-figure {
  margin: 40px 0;
}
.study-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}
.study-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.study-figure .credit {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
}
.study-footnote {
  margin-top: 40px;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
}

/* Art pages */
.art-figure {
  margin: 0 0 12px;
}
.art-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}
.art-caption {
  margin: 8px 0 0;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.art-hero { margin-bottom: 40px; }
.art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 44px 0 0;
}
@media (max-width: 600px) {
  .art-grid { grid-template-columns: 1fr; }
}

/* Placeholder / in-progress notice */
.wip-note {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  font-style: normal;
  text-transform: none;
}

/* CV page */
.cv-header {
  margin-bottom: 56px;
}
.cv-header .display {
  font-size: clamp(28px, 4vw, 38px);
}
.cv-header .cv-location {
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cv-summary {
  margin: -18px 0 56px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.cv-section {
  margin-bottom: 52px;
}
.cv-section:last-child { margin-bottom: 0; }
.cv-section-label {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saddle);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.cv-entry {
  margin-bottom: 34px;
}
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 4px;
}
.cv-entry-role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
.cv-entry-role .org {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.cv-entry-meta {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  white-space: nowrap;
}
.cv-entry-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.cv-entry-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
}
.cv-entry-list li:last-child { margin-bottom: 0; }
.cv-entry-list li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--slate);
}

/* Press & Public Speaking (CV) */
.cv-press-images {
  display: flex;
  gap: 16px;
  margin: 16px 0 20px;
}
.cv-press-photo {
  height: 260px;
  width: auto;
  object-fit: cover;
  border: 1px solid var(--hairline);
}
.cv-press-quotes em { font-style: italic; }

@media (max-width: 600px) {
  .cv-press-photo { height: 200px; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav .links { gap: 20px; }
  article { padding: 56px 0 64px; }
  .cv-entry-head { flex-direction: column; gap: 2px; }
}
