/* Takeshi Castle India — corporate edition, white theme
   Layout idea: an all-white, left-aligned corporate site on a 12-column grid. Sections are separated
   by hairlines and a very pale grey; the founder spotlight is the one large moment. Red marks actions only. */
:root {
  --ink: #0F1B2D;      /* headings, dark sections */
  --white: #FFFFFF;    /* page */
  --mist: #F7F8FA;     /* very pale alternate sections */
  --red: #C62E3A;      /* actions, accent rules */
  --slate: #56637A;    /* secondary text */
  --line: #DCE1E8;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(18px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: inherit; text-wrap: balance; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.lead { font-size: 1.2rem; color: var(--slate); }
.small { font-size: 0.95rem; color: var(--slate); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 700 1.1rem var(--display); }
.brand small { font-size: 0.82rem; color: var(--slate); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: 0.98rem; font-weight: 500; padding: 8px 11px; color: var(--ink); border-radius: 4px; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; background: var(--white); border: 1px solid var(--ink); color: var(--ink); font: 600 0.95rem var(--body); padding: 8px 14px; border-radius: 4px; cursor: pointer; }
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gut) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--mist); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem var(--body); text-decoration: none; padding: 13px 22px; border-radius: 4px; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #A82330; color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #22324C; color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.on-dark .btn-ghost { border-color: var(--white); color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.mist { background: var(--mist); }
.on-dark { background: var(--ink); color: var(--white); }
.on-dark a { color: var(--white); }
.on-dark .lead, .on-dark .small { color: #B9C3D3; }
.kicker { display: block; width: 44px; height: 3px; background: var(--red); margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: start; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: auto; } }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.hero .grid-2 { align-items: center; }
.hero-photo { position: relative; margin: 0; }
.hero-photo .ph { aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; background: var(--mist); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; left: -28px; bottom: -28px; display: flex; gap: 14px; align-items: center; background: var(--white); padding: 14px 20px 14px 14px; border-radius: 6px; box-shadow: 0 10px 30px rgba(15,27,45,0.14); max-width: 330px; text-decoration: none; color: var(--ink); }
.credit .face { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; background: var(--mist); }
.credit .face img { width: 100%; height: 100%; object-fit: cover; }
.credit b { display: block; font-family: var(--display); }
.credit span { font-size: 0.9rem; color: var(--slate); line-height: 1.35; display: block; }
@media (max-width: 900px) { .credit { position: static; margin-top: 14px; box-shadow: none; border: 1px solid var(--line); max-width: none; } }

/* Facts strip */
.facts-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-strip dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-strip div { padding: 22px 24px 22px 0; }
.facts-strip div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts-strip dt { font-size: 0.9rem; color: var(--slate); }
.facts-strip dd { margin: 4px 0 0; font: 600 1.08rem/1.35 var(--display); }
@media (max-width: 900px) { .facts-strip dl { grid-template-columns: 1fr 1fr; } .facts-strip div, .facts-strip div + div { padding: 16px 12px; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Founder spotlight: the one bold element */
.spotlight .grid-2 { align-items: center; }
.portrait { margin: 0; }
.portrait .ph { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #1C2A40; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { font-size: 0.9rem; color: #B9C3D3; margin-top: 10px; }
.spotlight h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.role { font-size: 1.15rem; color: #DCE3EE; border-left: 3px solid var(--red); padding-left: 16px; margin: 0 0 24px; max-width: 52ch; }
.contrib { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.contrib li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.contrib b { display: block; font-family: var(--display); font-weight: 600; }
.contrib span { font-size: 0.95rem; color: #B9C3D3; }
@media (max-width: 640px) { .contrib { grid-template-columns: 1fr; } }

/* Pillars (unordered group of four) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.pillars > div { padding: 22px 24px 8px 0; }
.pillars > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillars > div, .pillars > div + div { padding: 18px 14px 6px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* Challenge → response ledger */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.ledger thead th { font: 600 0.92rem var(--body); color: var(--slate); border-bottom: 2px solid var(--ink); }
.ledger tbody th { font: 600 1.1rem var(--display); width: 30%; }
.ledger td.out { width: 28%; font-weight: 600; }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ledger th, .ledger td { border: 0; padding: 2px 0; width: auto !important; }
}

/* Steps (true sequence) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 1.4rem var(--display); color: var(--red); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }

/* Photo row */
.photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.photos figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--mist); }
.photos figure:first-child { grid-row: span 2; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; } .photos figure:first-child { grid-column: span 2; grid-row: auto; } }

/* Service list */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.services > div { padding: 22px 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 600 1.15rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq .a { padding: 0 0 20px; }
.faq .a p { margin: 0; }

/* Inner page head */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.crumb { font-size: 0.92rem; color: var(--slate); margin-bottom: 18px; }
.crumb a { color: var(--slate); }
.page-head .ph { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--mist); }
.page-head .ph img { width: 100%; height: 100%; object-fit: cover; }

/* Profile head */
.profile-head .ph { aspect-ratio: 4 / 5; }
.glance { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.glance div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.glance dt { color: var(--slate); font-size: 0.95rem; }
.glance dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .glance div { grid-template-columns: 1fr; gap: 2px; } }

/* Prose + aside */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.box { border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 6px 6px; padding: 22px; background: var(--white); }
.box h3 { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.box dl { margin: 0; }
.box dl div { padding: 8px 0; border-bottom: 1px solid var(--mist); }
.box dl div:last-child { border-bottom: 0; }
.box dt { font-size: 0.88rem; color: var(--slate); }
.box dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .aside { position: static; } }
.note { background: var(--mist); border-left: 3px solid var(--ink); padding: 16px 20px; max-width: 66ch; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }

/* Activities */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 500 0.98rem var(--body); padding: 9px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.act .ph { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--mist); margin-bottom: 14px; }
.act .ph img { width: 100%; height: 100%; object-fit: cover; }
.act .tag { font-size: 0.88rem; color: var(--red); font-weight: 600; }
.act h3 { margin: 4px 0 6px; }
.act p { font-size: 0.98rem; color: var(--slate); }
.act[hidden] { display: none; }
@media (max-width: 960px) { .acts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .acts { grid-template-columns: 1fr; } }

/* Contact */
form.enquiry { display: grid; gap: 18px; }
form.enquiry .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.enquiry label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: 400 1rem var(--body); padding: 12px 14px; border: 1px solid #A9B3C2; border-radius: 4px; color: var(--ink); background: var(--white); width: 100%; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
form.enquiry .msg { min-height: 1.4em; margin: 0; font-weight: 600; }
@media (max-width: 560px) { form.enquiry .two { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(48px, 6vw, 72px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #B9C3D3; }

/* Footer */
.foot { background: #0A1422; color: #A9B4C6; font-size: 0.95rem; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 28px; }
.foot h3 { color: var(--white); font-size: 1rem; }
.foot a { color: #DCE3EE; text-decoration-color: rgba(255,255,255,0.3); }
.foot a:hover { color: var(--white); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot address { font-style: normal; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.86rem; }
.foot .legal p { max-width: none; margin-bottom: 6px; }
@media (max-width: 900px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Image fallback when a photo cannot load */
.img-missing { background: linear-gradient(135deg, #E4E8EE, #D5DBE4) !important; display: grid; place-items: center; }
.img-missing::before { content: attr(data-alt); color: var(--slate); font-size: 0.9rem; padding: 14px; text-align: center; }
.on-dark .img-missing { background: linear-gradient(135deg, #1C2A40, #24344F) !important; }
.on-dark .img-missing::before { color: #B9C3D3; }
.credit .face.img-missing::before { content: "RK"; font-weight: 700; }

/* ---- White theme: formerly dark areas ---- */
.on-dark { background: var(--white); color: var(--ink); }
.on-dark a { color: var(--ink); }
.on-dark .lead, .on-dark .small { color: var(--slate); }
.on-dark .btn-ghost { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-ghost:hover { background: var(--ink); color: var(--white); }
.spotlight { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portrait .ph { background: var(--mist); box-shadow: 18px 18px 0 var(--mist), 18px 18px 0 1px var(--line); }
.portrait figcaption { color: var(--slate); }
.role { color: var(--ink); }
.contrib li { border-top: 1px solid var(--line); }
.contrib span { color: var(--slate); }
.cta-band { background: var(--mist); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band p { color: var(--slate); }
.foot { background: var(--white); color: var(--slate); border-top: 1px solid var(--line); }
.foot h3 { color: var(--ink); }
.foot a { color: var(--ink); text-decoration-color: var(--line); }
.foot a:hover { color: var(--red); }
.foot .legal { border-top: 1px solid var(--line); }
.on-dark .img-missing { background: linear-gradient(135deg, #E4E8EE, #D5DBE4) !important; }
.on-dark .img-missing::before { color: var(--slate); }
.alert { padding: 14px 18px; border-radius: 4px; border: 1px solid; font-weight: 600; margin: 0 0 18px; }
.alert-ok { background: #EEF8F1; border-color: #9CCFAE; color: #1D5E35; }
.alert-err { background: #FDF0F1; border-color: #E8A6AD; color: #8E1C28; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
