/* ——— harshita / evolviumtech.com — v4 "Blueprint" ———
   Stackgrid-faithful: light annotated-spec layout. White canvas in a
   hairline frame, dotted borders, black label tags, crop marks,
   serif hero, huge type scale contrast. One accent: pink. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --page: #F2F2F0;          /* outside the frame */
  --bg: #FFFFFF;            /* canvas */
  --ink: #131316;
  --muted: #6E6E6B;
  --line: #E4E4E0;          /* hairlines */
  --dotted: #C9C9C2;        /* dotted borders */
  --tag: #131316;           /* black label tags */
  --accent: #E0447C;        /* pink — the one color */
  --accent-ink: #C22E66;
  --accent-soft: #FCE0EC;
  --radius: 4px;            /* blueprint = sharp */
  --maxw: 1240px;
  --colw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* the page frame: white column with full-height hairlines */
.page {
  max-width: var(--maxw); margin: 0 auto; background: var(--bg);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { max-width: var(--colw); margin: 0 auto; padding: 0 32px; }

/* mono + tags + brackets */
.mono, .kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; font-weight: 500; letter-spacing: .06em;
  color: var(--muted);
}
.tag {
  display: inline-block; position: relative;
  background: var(--tag); color: #fff;
  font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 600;
  padding: 5px 14px; letter-spacing: .01em;
}
.tag-wrap { display: inline-block; position: relative; padding: 7px 9px; }
.tag-wrap::before, .tag-wrap::after,
.tag-wrap .tag::before, .tag-wrap .tag::after {
  position: absolute; color: var(--ink); font-size: .8rem; font-weight: 400;
  font-family: "Inter", sans-serif; line-height: 1;
}
.tag-wrap::before { content: "+"; left: -2px; top: -2px; }
.tag-wrap::after  { content: "+"; right: -2px; top: -2px; }
.tag-wrap .tag::before { content: "+"; left: -11px; bottom: -11px; }
.tag-wrap .tag::after  { content: "+"; right: -11px; bottom: -11px; }

/* ——— Nav: centered mark, links split around it ——— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  padding: 18px 24px; max-width: var(--colw); margin: 0 auto;
}
.logo {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -0.02em; order: 3;
}
.logo .dot { color: var(--accent); }
.nav-links { display: contents; list-style: none; }
.nav-links li:nth-child(1) { order: 1; }
.nav-links li:nth-child(2) { order: 2; }
.nav-links li:nth-child(3) { order: 4; }
.nav-links li:nth-child(4) { order: 5; }
.nav-links a {
  text-decoration: none; font-size: .88rem; color: var(--ink);
  transition: color .15s;
}
.nav-links a:not(.btn)::before { content: "［"; color: var(--muted); }
.nav-links a:not(.btn)::after  { content: "］"; color: var(--muted); }
.nav-links a:hover { color: var(--accent-ink); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 11px 24px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(19,19,22,.25); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(224,68,124,.35); }
.btn-ghost { background: #EFEFED; color: var(--ink); }
.btn-ghost:hover { background: #E6E6E3; }
.nav-links .btn { padding: 8px 18px; font-size: .84rem; }

/* ——— Hero: centered serif statement ——— */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 480;
  font-size: clamp(3rem, 6.6vw, 4.8rem); letter-spacing: -0.01em;
  max-width: 18ch; margin: 0 auto;
}
.hero .sub {
  margin: 22px auto 0; font-size: .98rem; color: var(--muted); max-width: 44ch;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eyebrow { display: none; }
.shape { display: none; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; }

/* hero media with crop-mark corners */
.hero-media {
  position: relative; max-width: 860px; margin: 64px auto 0; padding: 26px;
}
.hero-media video, .hero-media img, .hero-media svg { width: 100%; height: auto; display: block; }
.cm { position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; border-width: 0; }
.cm.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.cm.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.cm.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cm.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ——— Section grammar: centered tag → big heading. → small gray sub ——— */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .tag-wrap { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.section-head p { color: var(--muted); margin: 14px auto 0; max-width: 52ch; font-size: .95rem; }
.section-head a { color: var(--ink); }

/* ——— Capabilities: 2x2 dotted cards ——— */
.cap-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 920px; margin: 0 auto;
}
.cap {
  border: 1px dotted var(--dotted); padding: 34px 32px;
  transition: border-color .2s;
}
.cap:hover { border-color: var(--ink); }
.cap .mono { display: block; margin-bottom: 14px; font-size: .68rem; color: var(--accent-ink); }
.cap h3 { font-size: 1rem; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: .86rem; }

/* story prose (kept for case pages compatibility + intro paragraphs) */
.story-text p { color: var(--muted); }
.story-text p + p { margin-top: 16px; }
.intro-line { max-width: 62ch; margin: 0 auto 44px; text-align: center; color: var(--muted); font-size: .95rem; }

/* "Currently" strip */
.fact-strip {
  max-width: 920px; margin: 48px auto 0; border: 1px dotted var(--dotted);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.fact-strip .cell { padding: 18px 16px; border-left: 1px dotted var(--dotted); }
.fact-strip .cell:first-child { border-left: 0; }
.fact-strip .k { display: block; font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.fact-strip .v { font-size: .84rem; color: var(--ink); line-height: 1.5; }

/* ——— Featured story cards: compact number + line-art + title grid ——— */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 480px)  { .story-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 700px)  { .story-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .story-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.story-col { display: flex; flex-direction: column; }
.story-card {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px dotted var(--dotted); border-radius: var(--radius);
  padding: 18px 18px 16px; text-decoration: none;
  transition: border-color .2s;
}
.story-card:hover { border-color: var(--ink); }
.story-card .num {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.story-card .art { width: 100%; height: auto; display: block; margin: 6px 0; }
.story-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.story-foot h3 { font-size: .95rem; line-height: 1.32; }
.story-foot .go { color: var(--ink); font-size: 1.05rem; line-height: 1.32; transition: transform .18s; }
.story-card:hover .go { transform: translateX(4px); }
.story-notes { list-style: none; margin-top: 14px; padding: 0 6px; display: flex; flex-direction: column; gap: 6px; }
.story-notes li { position: relative; padding-left: 15px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.story-notes li::before {
  content: "+"; position: absolute; left: 0; top: 0;
  color: var(--accent-ink); font-family: "JetBrains Mono", monospace; font-size: .74rem;
}

/* ——— Case cards: annotated tier-card layout (legacy, no longer on home) ——— */
.case-list { display: flex; flex-direction: column; gap: 56px; max-width: 980px; margin: 0 auto; }
.case-card {
  position: relative; border: 1px dotted var(--dotted);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  padding: 44px 42px; text-decoration: none;
  transition: border-color .2s;
}
.case-card:hover { border-color: var(--ink); }
.case-card .callout {
  position: absolute; left: -76px; top: 42px; display: flex; align-items: center;
}
.case-card .callout .tag { font-size: .72rem; padding: 4px 10px; }
.case-card .callout::after { content: ""; width: 46px; height: 1px; background: var(--ink); }
.case-info .chip {
  display: inline-block; font-family: "JetBrains Mono", monospace;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; margin-bottom: 18px;
}
.case-info h3 { font-size: 1.7rem; margin-bottom: 12px; max-width: 18ch; }
.case-info p { color: var(--muted); font-size: .93rem; max-width: 40ch; }
.case-info .btn { margin-top: 26px; }
.check-rows { display: flex; flex-direction: column; gap: 10px; align-self: center; }
.check-rows .row {
  border: 1px solid var(--line); padding: 13px 18px; font-size: .88rem;
  color: var(--ink); background: #FDFDFC;
}
.archive-link { margin-top: 48px; text-align: center; }
.archive-link a { color: var(--muted); font-size: .88rem; }
.archive-link a::before { content: "［ "; }
.archive-link a::after { content: " ］"; }
.archive-link a:hover { color: var(--ink); }

/* ——— Writing: card grid ——— */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.post-card {
  border: 1px dotted var(--dotted); padding: 30px 28px; text-decoration: none;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s;
}
.post-card:hover { border-color: var(--ink); }
.post-card .m { font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.post-card .t { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.post-card .go { margin-top: auto; padding-top: 10px; font-size: .85rem; color: var(--muted); }
.post-card:hover .go { color: var(--ink); }

/* ——— Contact: heading left, rows right ——— */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; max-width: 980px; margin: 0 auto; }
.contact-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 18px 0 14px; }
.contact-head p { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.contact-rows { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  border: 1px dotted var(--dotted); padding: 20px 24px; text-decoration: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: border-color .2s;
}
.contact-row:hover { border-color: var(--ink); }
.contact-row .l { font-weight: 600; font-size: .95rem; }
.contact-row .r { color: var(--muted); font-size: .85rem; }
.contact-row.assure { border-style: solid; border-color: var(--line); background: #FDFDFC; }
.contact-row.assure .l { font-weight: 400; color: var(--muted); font-size: .88rem; }
.contact-row.assure .r { color: var(--accent-ink); font-family: "JetBrains Mono", monospace; font-size: .7rem; }

/* ——— Footer ——— */
footer { border-top: 1px solid var(--line); padding: 56px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: var(--colw); margin: 0 auto; padding: 0 32px; }
.foot-brand .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; }
.foot-brand p { color: var(--muted); font-size: .86rem; margin-top: 8px; max-width: 30ch; }
.foot-col h4 { font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { text-decoration: none; color: var(--muted); font-size: .86rem; }
.foot-col a::before { content: "［"; }
.foot-col a::after { content: "］"; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { max-width: var(--colw); margin: 40px auto 0; padding: 0 32px; color: var(--muted); font-size: .78rem; }
/* legacy simple footer (inner pages) */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; max-width: var(--colw); margin: 0 auto; padding: 0 32px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a::before { content: "［"; }
.foot a::after { content: "］"; }
.foot a:hover { color: var(--ink); }

/* ——— Case study pages (light refit) ——— */
.case-hero { padding: 72px 0 48px; text-align: center; border-bottom: 1px solid var(--line); }
.case-num { display: none; }
.case-hero .chip {
  display: inline-block; position: relative;
  background: #EFEFED; color: var(--ink);
  font-size: .8rem; font-weight: 600; padding: 6px 14px; margin-bottom: 26px;
}
.case-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 22ch; margin: 0 auto; }
.case-hero .meta {
  margin-top: 22px; color: var(--muted); display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  font-size: .84rem;
}
.case-hero .meta strong { color: var(--ink); }

.case-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.case-body h1 { font-size: 1.55rem; margin: 54px 0 16px; }
.case-body h2 { font-size: 1.4rem; margin: 46px 0 14px; }
.case-body h3 { font-size: 1.14rem; margin: 38px 0 10px; }
.case-body h4 { font-size: 1rem; margin: 32px 0 8px; }
.case-body p { color: #4A4A47; }
.case-body p + p { margin-top: 16px; }
.case-body ul { margin: 14px 0 14px 22px; color: #4A4A47; }
.case-body li + li { margin-top: 8px; }
.case-body strong { color: var(--ink); }
.case-body a { color: var(--accent-ink); }
.case-body img, .case-body video { width: 100%; margin: 26px 0; border: 1px solid var(--line); }
.pull {
  border-left: 2px solid var(--accent); background: #FBFBFA;
  padding: 22px 26px; margin: 34px 0; font-size: 1.02rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 500; color: var(--ink);
}
.figure { background: #fff; border: 1px dotted var(--dotted); padding: 28px; margin: 36px 0; }
.figure figcaption { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; font-family: "JetBrains Mono", monospace; }
.figure svg { width: 100%; height: auto; display: block; }
.case-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-nav a { text-decoration: none; color: var(--muted); font-size: .88rem; }
.case-nav a:hover { color: var(--ink); }
.note {
  background: #FBFBFA; border: 1px dotted var(--dotted); padding: 16px 20px;
  font-size: .85rem; color: var(--muted); margin: 30px 0;
}
.case-links { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 28px; flex-wrap: wrap; }
.case-back { text-decoration: none; color: var(--muted); font-size: .86rem; }
.case-back:hover { color: var(--ink); }
.case-teaser {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 30px; margin-top: 18px;
  text-decoration: none; border: 1px dotted var(--dotted);
  transition: border-color .18s;
}
.case-teaser:hover { border-color: var(--ink); }
.case-teaser.sky, .case-teaser.sand, .case-teaser.sage, .case-teaser.blush, .case-teaser.plain { background: #FDFDFC; }
.teaser-label { font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.teaser-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--ink); }

/* tables inside articles */
.table-scroll { overflow-x: auto; margin: 26px 0; }
.case-body table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.5; }
.case-body th {
  text-align: left; font-family: "JetBrains Mono", monospace; font-weight: 500;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--ink); padding: 10px 12px;
}
.case-body td { border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: top; color: #4A4A47; }
.case-body td:first-child { color: var(--ink); }

/* 2x2 quadrant grid inside articles */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.quad .q { border: 1px dotted var(--dotted); padding: 20px 22px; }
.quad .q.hit { border: 1px solid var(--accent); background: #FDF7FA; }
.quad .q h3 { font-size: .98rem; margin-bottom: 8px; }
.quad .q p { font-size: .86rem; color: var(--muted); }
@media (max-width: 640px) { .quad { grid-template-columns: 1fr; } }

/* metric cards for case pages */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0; }
.metric { border: 1px dotted var(--dotted); padding: 26px 22px; text-align: center; }
.metric .num { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2rem; }
.metric .lbl { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* ——— Archive & misc inner pages ——— */
.arch-group + .arch-group { margin-top: 56px; }
.arch-group-head { margin-bottom: 22px; }
.arch-group-head h2 { font-size: 1.4rem; }
.arch-group-head p { color: var(--muted); margin-top: 6px; max-width: 62ch; font-size: .9rem; }
.arch-list { display: grid; gap: 14px; }
.arch-item {
  background: #fff; border: 1px dotted var(--dotted);
  padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center;
}
.arch-item h3 { font-size: 1.08rem; }
.arch-item p { grid-column: 1; color: var(--muted); font-size: .9rem; }
.arch-item .chip {
  grid-row: 1; grid-column: 2;
  font-family: "JetBrains Mono", monospace; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 5px 10px;
}
a.arch-item { text-decoration: none; color: inherit; transition: border-color .15s; }
a.arch-item:hover { border-color: var(--ink); }
/* home "featured reading" list: proportional to the case-study cards */
.writing .arch-item h3 { font-size: 1rem; }
.writing .arch-item p { font-size: .84rem; }
.case-body aside, .case-body blockquote {
  background: #FBFBFA; border: 1px dotted var(--dotted); padding: 16px 20px; margin: 20px 0; font-size: .95rem;
}
.case-body blockquote { border-left: 2px solid var(--accent); }

/* legacy classes still present on inner pages — neutralize gracefully */
.work-rows, .post-list { list-style: none; }
.featured, .work-row, .post-link { text-decoration: none; }

/* ——— Scroll reveals ——— */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cap, .case-card, .story-col, .post-card, .arch-item, .case-teaser,
    .figure, .pull, .fact-strip, .section-head, .contact-row, .metric, .hero-media {
      animation: reveal both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .case-card .callout { display: none; }
}
@media (max-width: 840px) {
  .cap-grid, .post-grid, .contact-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; padding: 30px 24px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip .cell { border-left: 0; border-top: 1px dotted var(--dotted); }
  .fact-strip .cell:first-child { border-top: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; gap: 14px; }
  .hero { padding: 64px 0 52px; }
}
