@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --surface: #fffdf8;
  --surface-2: #eae7dd;
  --ink: #1b302e;
  --muted: #60726e;
  --line: #d5d8ce;
  --accent: #a45537;
  --accent-soft: #f4e2d8;
  --deep: #153735;
  --deep-ink: #f7f5ed;
  --sage: #cadcc9;
  --shadow: 0 18px 55px rgba(20, 47, 42, .07);
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111b1a;
  --surface: #1b2927;
  --surface-2: #243532;
  --ink: #f1f1e9;
  --muted: #b0c0b8;
  --line: #34504b;
  --accent: #dfa483;
  --accent-soft: #432e29;
  --deep: #d1e3d5;
  --deep-ink: #152622;
  --sage: #315347;
  --shadow: 0 18px 55px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; line-height: 1.6; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--sage); color: #142f2b; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 1000; background: var(--surface); padding: .7rem 1rem; border: 1px solid var(--line); }
.skip-link:focus { top: 1rem; }
.shell { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 93%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; flex: 1; font-weight: 700; letter-spacing: -.035em; font-size: 1.12rem; line-height: 1; }
.wordmark span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--deep); color: var(--deep-ink); font-family: 'Instrument Serif', Georgia, serif; font-size: 1.45rem; font-weight: 400; letter-spacing: -.07em; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--muted); font-size: .89rem; font-weight: 700; }
.site-nav a[aria-current='page'], .site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current='page'] { box-shadow: 0 2px var(--accent); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-button, .menu-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.theme-button { font-size: 1.25rem; line-height: 1; }
.theme-button:hover, .menu-button:hover { background: var(--surface-2); }
.menu-button { display: none; font-size: 1.3rem; line-height: 1; }
.header-contact { padding: .65rem 1rem; border-radius: 999px; background: var(--deep); color: var(--deep-ink); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.header-contact:hover { opacity: .86; color: var(--deep-ink); }
.eyebrow { margin: 0 0 1rem; color: var(--accent); text-transform: uppercase; font-size: .74rem; font-weight: 700; letter-spacing: .19em; }
.display, h1, h2, h3 { line-height: 1.1; }
.display, .section-title, .page-title, .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.display { font-size: clamp(4.2rem, 8vw, 8.5rem); letter-spacing: -.055em; margin: 0; max-width: 850px; }
.display em, .page-title em { color: var(--accent); font-weight: 400; }
.lead { max-width: 670px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); line-height: 1.7; }
.small-lead { font-size: 1.04rem; color: var(--muted); line-height: 1.75; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--deep); color: var(--deep-ink); }
.button-primary:hover { color: var(--deep-ink); opacity: .87; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { color: var(--ink); background: var(--surface-2); }
.text-link { color: var(--accent); font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.section { padding-block: clamp(4rem, 7vw, 7rem); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.1rem; }
.section-heading p { max-width: 440px; margin: 0; color: var(--muted); }
.section-title { font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.045em; margin: 0; }
.section-title.small { font-size: clamp(2.4rem, 4vw, 4rem); }
.kicker { font-size: .74rem; letter-spacing: .16em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.hero { min-height: min(780px, calc(100vh - 76px)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: 4rem; padding-block: 6rem; }
.hero .lead { max-width: 560px; margin-top: 1.5rem; }
.hero-note { color: var(--muted); margin-top: 3rem; padding-left: 1rem; border-left: 2px solid var(--accent); font-size: .9rem; }
.system-card { position: relative; overflow: hidden; min-height: 510px; border-radius: 28px; background: #153735; color: #f5f3e9; padding: 2rem; box-shadow: 0 24px 70px rgba(19, 55, 53, .2); }
.system-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 86% 20%, rgba(180, 208, 164, .18), transparent 42%), repeating-linear-gradient(0deg, transparent 0 35px, rgba(255,255,255,.035) 36px), repeating-linear-gradient(90deg, transparent 0 35px, rgba(255,255,255,.035) 36px); }
.system-card > * { position: relative; }
.system-top { display: flex; justify-content: space-between; gap: 1rem; color: #b8d8cb; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.system-center { display: grid; place-items: center; min-height: 340px; }
.system-orbit { position: relative; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; }
.system-orbit::before { content: ''; position: absolute; inset: 42px; border: 1px dashed rgba(255,255,255,.28); border-radius: 50%; }
.system-core { z-index: 2; display: grid; place-items: center; text-align: center; width: 128px; height: 128px; border-radius: 50%; background: #d9e8cf; color: #173c34; box-shadow: 0 0 0 12px rgba(217,232,207,.1); font-family: 'Instrument Serif', Georgia, serif; font-size: 2rem; line-height: 1; }
.orbit-chip { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.3); background: #214943; color: #f5f3e9; border-radius: 999px; padding: .55rem .85rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.chip-one { top: 8px; left: 42px; }.chip-two { top: 124px; right: -26px; }.chip-three { bottom: 12px; left: -8px; }
.system-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.22); padding-top: 1rem; color: #c6d8d1; font-size: .82rem; }
.credential-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.credential-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.credential { padding: 1.6rem 2rem; border-right: 1px solid var(--line); }
.credential:first-child { padding-left: 0; }.credential:last-child { border: 0; }
.credential strong { display: block; font-family: 'Instrument Serif', Georgia, serif; font-size: 2.1rem; line-height: 1; font-weight: 400; }
.credential span { color: var(--muted); font-size: .82rem; }
.cards-3, .cards-2, .venture-grid, .skill-grid { display: grid; gap: 1rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }.cards-2 { grid-template-columns: repeat(2, 1fr); }.venture-grid { grid-template-columns: repeat(2, 1fr); }.skill-grid { grid-template-columns: repeat(2, 1fr); }
.card, .venture-card, .skill-card, .work-card, .contact-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.card { padding: 1.8rem; min-height: 235px; display: flex; flex-direction: column; }
.card .card-index { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.card h3 { font-size: 1.3rem; margin: 2.5rem 0 .55rem; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.venture-card { position: relative; overflow: hidden; padding: 2rem; min-height: 280px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.venture-card:hover, .work-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.venture-card::after { content: attr(data-mark); position: absolute; right: .5rem; bottom: -5rem; font-family: 'Instrument Serif', Georgia, serif; font-size: 16rem; line-height: 1; color: var(--sage); opacity: .5; pointer-events: none; }
.venture-card > * { position: relative; z-index: 1; }
.venture-card .topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.venture-card h3 { margin: 2.6rem 0 .65rem; font-family: 'Instrument Serif', Georgia, serif; font-size: 2.6rem; font-weight: 400; letter-spacing: -.04em; }
.venture-card p { max-width: 400px; margin: 0 0 1.5rem; color: var(--muted); }
.venture-card .text-link { margin-top: auto; align-self: flex-start; }
.venture-aangan { background: #e3eadf; }.venture-raha { background: #ede5dc; }.venture-qaisariyah { background: #e6e8dc; }.venture-finance { background: #dce7e5; }
html[data-theme='dark'] .venture-card { background: var(--surface); }
.work-card { display: block; padding: 1.65rem; transition: transform .2s ease, border-color .2s ease; }
.work-card h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: .7rem 0; }
.work-card p { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .24rem .65rem; font-size: .73rem; font-weight: 700; color: var(--muted); }
.timeline { border-left: 1px solid var(--line); margin-left: .4rem; }
.timeline-item { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timeline-item h3 { font-size: 1.35rem; margin: .45rem 0 .25rem; letter-spacing: -.025em; }
.timeline-item p { margin: 0; color: var(--muted); }
.timeline-item ul { margin: .8rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.timeline-item li + li { margin-top: .45rem; }
.quote-panel { background: var(--deep); color: var(--deep-ink); border-radius: 22px; padding: clamp(2rem, 5vw, 4rem); }
.quote-panel p { margin: 0 0 1.7rem; font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.16; }
.quote-panel .eyebrow { color: #b5d6be; }
.quote-panel .button { background: #f2f0e8; color: #153735; }
.page-hero { padding-block: clamp(5rem, 10vw, 9rem) clamp(3.5rem, 6vw, 5rem); }
.page-title { font-size: clamp(4rem, 8vw, 8rem); letter-spacing: -.055em; margin: 0 0 1.2rem; }
.page-hero .lead { margin: 0; }
.page-hero.split { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 2rem; }
.page-hero.split .side-note { border-left: 2px solid var(--accent); padding-left: 1.2rem; color: var(--muted); }
.prose { max-width: 800px; font-size: 1.1rem; line-height: 1.85; color: var(--muted); }
.prose p { margin: 0 0 1.4rem; }.prose strong { color: var(--ink); }
.skill-card { padding: 1.8rem; }
.skill-card h3 { margin: 0 0 1.1rem; font-size: 1.32rem; }
.skill-card ul { list-style: none; padding: 0; margin: 0; }
.skill-card li { padding: .58rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.skill-card li strong { color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; min-height: 255px; }
.project-card .project-number { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
.project-card h3 { margin: 2rem 0 .7rem; font-size: 1.18rem; }
.project-card p { color: var(--muted); font-size: .91rem; margin: 0 0 1rem; }
.project-card .text-link { margin-top: auto; align-self: flex-start; }
.project-card:hover { border-color: var(--accent); }
.project-details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 1rem; scroll-margin-top: 100px; }
.project-details h3 { margin: .3rem 0 .8rem; font-size: 1.55rem; }
.project-details p { color: var(--muted); margin: .5rem 0; }
.project-details ul { color: var(--muted); margin: 1rem 0; padding-left: 1.2rem; }
.project-details li + li { margin-top: .35rem; }
.project-details:target { border-color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; min-height: 190px; padding: 1.7rem; }
.contact-card .kicker { margin-bottom: auto; }
.contact-card h2 { margin: 2rem 0 .3rem; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 2.3rem; }
.contact-card p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; margin-top: 4rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; gap: 1.2rem; }
#case-study-list { scroll-margin-top: 100px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .system-card { min-height: 420px; }
  .cards-3, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero.split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .4rem; }
  .menu-button { display: grid; }
  .header-contact { display: none; }
  .hero { padding-block: 4.2rem; }
  .display { font-size: clamp(3.9rem, 16vw, 6rem); }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .credential-grid { grid-template-columns: 1fr; }
  .credential { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .credential:last-child { border: 0; }
  .cards-3, .cards-2, .venture-grid, .skill-grid, .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 390px; padding: 1.3rem; }
  .system-orbit { width: 255px; height: 255px; }
  .system-center { min-height: 300px; }
  .system-core { width: 112px; height: 112px; font-size: 1.7rem; }
  .chip-two { right: -8px; }
  .page-title { font-size: clamp(3.9rem, 15vw, 6rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.project-details[hidden] { display: none; }
.project-details > .button { margin-top: 1.5rem; border: 0; }
.project-details[id^='venture-'] { border-left: 5px solid var(--accent); }
.project-details[id^='venture-'] h3 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.6rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.035em; }
#venture-aangan { background: #e3eadf; }
#venture-raha { background: #ede5dc; }
#venture-qaisariyah { background: #e6e8dc; }
#venture-finance { background: #dce7e5; }
html[data-theme='dark'] .project-details[id^='venture-'] { background: var(--surface); }
html[data-theme='dark'] #venture-aangan { background: #20382c; }
html[data-theme='dark'] #venture-raha { background: #392d2a; }
html[data-theme='dark'] #venture-qaisariyah { background: #34382a; }
html[data-theme='dark'] #venture-finance { background: #20383a; }
