/* ==================================================================
   pradeepkumar.eu - V2
   Self-hosted fonts, no external requests, no cookies, no tracking.
   ================================================================== */

@font-face { font-family:'ISans';  font-style:normal; font-weight:400 700; font-display:swap; src:url('../fonts/isans.woff2') format('woff2'); }
/* Tamil glyphs only, scoped by unicode-range: without this the brand name
   in the Own ventures block falls back to tofu boxes. Nothing else changes. */
@font-face { font-family:'ISerif'; font-style:normal; font-weight:400 600; font-display:swap;
            src:url('../fonts/tamil.woff2') format('woff2');
            unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family:'ISerif'; font-style:normal; font-weight:400 600; font-display:swap; src:url('../fonts/sserif.woff2') format('woff2'); }
@font-face { font-family:'ISerif'; font-style:italic; font-weight:400 600; font-display:swap; src:url('../fonts/sserif-it.woff2') format('woff2'); }
@font-face { font-family:'Plex';   font-style:normal; font-weight:400;     font-display:swap; src:url('../fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family:'Plex';   font-style:normal; font-weight:500;     font-display:swap; src:url('../fonts/plexmono-500.woff2') format('woff2'); }

/* ---------- tokens: light is the base ---------- */
:root {
  --bg:        #f4f2ee;
  --bg-2:      #eae6e0;
  --panel:     #fffefc;
  --ink:       #16181b;
  --ink-2:     #4d545c;
  --ink-3:     #7d858e;
  --line:      #dcd7d0;
  --line-2:    #ebe7e1;

  /* two working hues, each with a job:
     copper = human outcomes, results, emphasis
     steel  = systems, structure, diagram scaffolding */
  --copper:    #a4552a;
  --copper-2:  #c9713f;
  --copper-bg: #f6e9e0;
  --steel:     #3d5a73;
  --steel-2:   #5b7d99;
  --steel-bg:  #e5ebf0;

  --serif: 'ISerif', Georgia, 'Times New Roman', serif;
  --sans:  'ISans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono:  'Plex', ui-monospace, Consolas, monospace;

  --shadow-1: 0 1px 2px rgba(22,24,27,.05), 0 4px 14px rgba(22,24,27,.045);
  --shadow-2: 0 2px 6px rgba(22,24,27,.07), 0 14px 38px rgba(22,24,27,.08);
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d1014;
    --bg-2:      #141920;
    --panel:     #1b2128;
    --ink:       #e9ebed;
    --ink-2:     #a3abb4;
    --ink-3:     #737c86;
    --line:      #313a44;
    --line-2:    #262e36;

    --copper:    #ef9a6b;
    --copper-2:  #f0a983;
    --copper-bg: #2a1d15;
    --steel:     #93bada;
    --steel-2:   #a9c6dc;
    --steel-bg:  #17222b;

    --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 14px 38px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.skip { position:absolute; left:-9999px; top:0; background:var(--panel); color:var(--ink); padding:10px 16px; z-index:80; border:1px solid var(--line); }
.skip:focus { left:10px; top:10px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 28px; }
.narrow { max-width: 680px; }

/* ---------- reveal on scroll ----------
   Everything is visible by default. JS hides ONLY what is already below
   the fold, and only after it has proven it can reveal it again. A page
   that hides its own content when a script hiccups is worse than one
   that skips an animation. */
.rv.pre { opacity: 0; transform: translateY(14px); }
.rv.in  { opacity: 1; transform: none; transition: opacity .62s var(--ease), transform .62s var(--ease); }
.rv.in.d1 { transition-delay: .07s; }
.rv.in.d2 { transition-delay: .14s; }
.rv.in.d3 { transition-delay: .21s; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 8.2vw, 106px);
  line-height: 1.0; letter-spacing: -.024em; font-variation-settings: "opsz" 60;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3.7vw, 40px);
  line-height: 1.16; letter-spacing: -.014em; font-variation-settings: "opsz" 32;
}
h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -.008em; line-height: 1.3; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.lede { font-family: var(--serif); font-size: clamp(19.5px, 2.3vw, 26px); line-height: 1.42; color: var(--ink-2); font-variation-settings: "opsz" 24; }
.lede em { font-style: italic; color: var(--ink); }
.big { font-size: 19px; line-height: 1.5; color: var(--ink); }
.prose { max-width: 62ch; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .19em; text-transform: uppercase; color: var(--ink-3);
}

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

/* ---------- section chrome ---------- */
section { padding-block: clamp(64px, 9vw, 108px); }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.sec-head .eyebrow { flex: none; }
.sec-head .rule { flex: 1 1 60px; height: 1px; background: var(--line); }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vw, 104px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px 56px; align-items: center; }
.hero-grid.with-portrait { grid-template-columns: minmax(0,1fr) minmax(0,260px); }
.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 34ch; }
.hero-art { justify-self: end; width: 100%; max-width: 340px; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Scattered -> ordered. Squares are displaced by their own custom
   properties and settle into the grid once the page is up. Without JS
   or with reduced motion they are simply already in place. */
.ord rect {
  fill: var(--steel-bg); stroke: var(--steel); stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center;
  transform: none;
  transition: transform 1.15s var(--ease);
}
/* Ordered is the resting state, so no-JS and print show the finished
   system. The scatter is applied for one frame and then released. */
.hero-art.scatter-init .ord rect {
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  transition: none;
}
.ord rect.key { fill: var(--copper-bg); stroke: var(--copper); }
.ord rect:nth-child(2)  { transition-delay: .05s; }
.ord rect:nth-child(3)  { transition-delay: .10s; }
.ord rect:nth-child(4)  { transition-delay: .15s; }
.ord rect:nth-child(5)  { transition-delay: .07s; }
.ord rect:nth-child(6)  { transition-delay: .13s; }
.ord rect:nth-child(7)  { transition-delay: .18s; }
.ord rect:nth-child(8)  { transition-delay: .09s; }
.ord rect:nth-child(9)  { transition-delay: .16s; }
.ord rect:nth-child(10) { transition-delay: .21s; }
.ord rect:nth-child(11) { transition-delay: .11s; }
.ord rect:nth-child(12) { transition-delay: .24s; }
.ord-rule path { stroke: var(--line); stroke-width: 1; fill: none; }

/* ---------- record band ---------- */
.record {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 4px; overflow: hidden; margin-top: 44px; box-shadow: var(--shadow-1);
}
.record > div { padding: 15px 18px; border-right: 1px solid var(--line-2); }
.record > div:last-child { border-right: 0; }
.record dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.record dd { margin: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ================= CAPABILITY CARDS ================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  padding: 26px 24px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--steel-2); }
.card .ico { width: 34px; height: 34px; margin-bottom: 16px; display: block; }
.card .ico [stroke] { stroke: var(--steel); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease); }
.card .ico [data-accent] { stroke: var(--copper); }
.card:hover .ico [stroke] { stroke: var(--copper); }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 15px; line-height: 1.52; color: var(--ink-2); margin: 0; }

/* ================= CASES ================= */
.cases { display: flex; flex-direction: column; gap: 22px; }
.case {
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,330px);
  gap: 0; overflow: hidden; box-shadow: var(--shadow-1);
}
.case-body { padding: 30px 30px 28px; }
.case-art { border-left: 1px solid var(--line-2); background: var(--bg-2); padding: 26px 24px; display: grid; place-items: center; }
.case-art svg { width: 100%; height: auto; max-width: 280px; overflow: visible; }
.case .sector { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.case h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.24; letter-spacing: -.011em; margin-bottom: 12px; }
.case p { font-size: 15.5px; line-height: 1.56; color: var(--ink-2); }

.result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.result .eyebrow { display: block; margin-bottom: 8px; }
.result p { color: var(--ink); font-size: 16px; margin: 0; }
.figure { font-family: var(--mono); font-weight: 500; color: var(--copper); font-variant-numeric: tabular-nums; }

/* diagram primitives, shared by all three case schematics */
.dg-box { fill: var(--panel); stroke: var(--steel); stroke-width: 1.2; }
.dg-box.acc { stroke: var(--copper); }
.dg-fill { fill: var(--steel-bg); stroke: var(--steel); stroke-width: 1.1; }
.dg-fill.acc { fill: var(--copper-bg); stroke: var(--copper); }
.dg-line { stroke: var(--steel); stroke-width: 1.2; fill: none; opacity: .7; }
.dg-line.acc { stroke: var(--copper); opacity: 1; }
.dg-t { font-family: var(--mono); font-size: 8.5px; fill: var(--ink-2); letter-spacing: .04em; }
.dg-t.acc { fill: var(--copper); }
.case-art.pre svg .anim { opacity: 0; }
.case-art.on svg .anim { animation: fadeUp .55s var(--ease) forwards; }
.case-art.on svg .a2 { animation-delay: .12s; }
.case-art.on svg .a3 { animation-delay: .24s; }
.case-art.on svg .a4 { animation-delay: .36s; }
@keyframes fadeUp { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform:none; } }

/* ================= PRINCIPLES ================= */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 26px 34px; counter-reset: pr; }
.principle { counter-increment: pr; border-top: 2px solid var(--line); padding-top: 15px; }
.principle::before {
  content: counter(pr, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--copper);
  letter-spacing: .08em; display: block; margin-bottom: 9px;
}
.principle h3 { margin-bottom: 6px; }
.principle p { font-size: 15px; line-height: 1.52; color: var(--ink-2); margin: 0; }

/* ================= PANELS ================= */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-1); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 34px 48px; align-items: start; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 32px; }
.contact .eyebrow { display: block; margin-bottom: 6px; }
.contact .v { font-size: 16.5px; line-height: 1.5; }
.contact .v a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact .v a:hover { border-bottom-color: var(--copper); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; padding-block: 26px 56px;
           font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--copper); }
.foot-in .sp { margin-left: auto; }

/* ================= LEGAL PAGES ================= */
.legal { padding-block: clamp(46px,6vw,76px) 40px; }
.legal .back { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
               text-transform: uppercase; color: var(--ink-3); text-decoration: none; margin-bottom: 30px; }
.legal .back:hover { color: var(--copper); }
.legal h1 { font-size: clamp(38px,6vw,64px); margin-bottom: 10px; }
.legal .sub { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 40px; }
.lsec { border-top: 1px solid var(--line); padding-block: 26px; }
.lsec:last-of-type { border-bottom: 1px solid var(--line); }
.lsec h2 { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; line-height: 1.35; margin-bottom: 12px; }
.lsec p, .lsec li { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.lsec strong { color: var(--ink); font-weight: 600; }
.lsec ul { margin: 0 0 1em; padding-left: 20px; }
.lsec li { margin-bottom: 4px; }
.lsec dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0,1fr); gap: 9px 26px; margin: 0 0 1em; max-width: 68ch; }
.lsec dt { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); padding-top: 5px; }
.lsec dd { margin: 0; font-size: 15.5px; color: var(--ink); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .hero-art { justify-self: start; max-width: 280px; order: -1; }
  .case { grid-template-columns: minmax(0,1fr); }
  .case-art { border-left: 0; border-top: 1px solid var(--line-2); order: -1; padding: 22px; }
  .case-art svg { max-width: 240px; }
  .split { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .record { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .record > div:nth-child(2n) { border-right: 0; }
  .record > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .case-body { padding: 24px 22px; }
  .lsec dl { grid-template-columns: minmax(0,1fr); gap: 2px 0; }
  .lsec dd { margin-bottom: 12px; }
  .foot-in .sp { margin-left: 0; }
}

/* ================= MOTION / PRINT ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .rv.pre { opacity: 1 !important; transform: none !important; }
  .case-art svg .anim { opacity: 1 !important; }
  .ord rect { transform: none !important; }
}

@media print {
  :root { --bg:#fff; --bg-2:#fff; --panel:#fff; --ink:#000; --ink-2:#333; --ink-3:#666; --line:#bbb; --line-2:#ddd; }
  body { font-size: 10.5pt; }
  .hero-art, .skip, .back, footer .sp { display: none; }
  section { padding-block: 14pt; }
  .card, .case, .panel, .record { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .rv, .rv.pre { opacity: 1 !important; transform: none !important; }
}

/* ---------- legal pages: earlier markup, mapped onto the V2 language ----------
   Their content is legally required text, so the markup stays untouched and
   the stylesheet adapts instead. */
.sheet { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 28px; }
.legal .masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 26px 0; }
.mark { font-family: var(--mono); font-size: 11px; letter-spacing: .19em; text-transform: uppercase; color: var(--ink-3); }
.legal .back { margin-bottom: 0; }
.legal .updated { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 42px; }
.lsec .num { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .15em; color: var(--copper); margin: 0 0 9px; }
footer .foot { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline;
               padding-block: 26px 56px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
footer .foot .sp { margin-left: auto; }
@media (max-width: 560px) { .sheet { padding-inline: 20px; } footer .foot .sp { margin-left: 0; } }

/* ================= STICKY NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.solid { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 95%, transparent); }
@supports not (backdrop-filter: blur(10px)) { .nav { background: var(--bg); } }
.nav-in { display: flex; align-items: center; gap: 10px 28px; padding-block: 13px; flex-wrap: wrap; }
.nav .home {
  font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: -.012em;
  color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap;
}
.nav .home:hover { color: var(--copper); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a:not(.home):not(.pdf) {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; padding-block: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:not(.home):not(.pdf):hover { color: var(--ink); }
.nav a[aria-current] { color: var(--copper); border-bottom-color: var(--copper); }
.nav .pdf {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav .pdf:hover { border-color: var(--copper); color: var(--copper); }
@media (max-width: 860px) { .nav ul { display: none; } }

/* ---------- inline soft prompt ---------- */
.prompt {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2);
  font-size: 15.5px; color: var(--ink-2);
}
.prompt a { font-weight: 500; }

/* ---------- download row ---------- */
.dl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 26px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  padding: 12px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dl-btn:hover { transform: translateY(-2px); border-color: var(--copper); box-shadow: var(--shadow-2); color: var(--ink); }
.dl-btn svg { width: 17px; height: 17px; flex: none; stroke: var(--copper); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn b { font-weight: 600; font-size: 15px; }
.dl-note { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }

@media print { .nav, .dl { display: none; } }

/* ---------- own ventures: deliberately quieter than client cases ---------- */
.own-card {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 5px;
  padding: 24px 22px 22px;
  transition: border-color .3s var(--ease);
}
.own-card:hover { border-color: var(--steel-2); }
.own-card .sector { font-family: var(--mono); font-size: 10px; letter-spacing: .15em;
                    text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.own-card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px;
               letter-spacing: -.012em; margin-bottom: 8px; font-variation-settings: "opsz" 24; }
.own-card p { font-size: 15px; line-height: 1.52; color: var(--ink-2); margin: 0; }
