/* Godari Labs — godari.org. One stylesheet, no build step. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --sunk: #efeae1;
  --ink: #1d1b18;
  --muted: #6b655c;
  --line: #e3ddd2;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #dfeae5;
  --shadow: 0 1px 2px rgb(29 27 24 / 6%), 0 12px 32px -12px rgb(29 27 24 / 18%);

  --mici: #002b7f;
  --mici-2: #ce1126;
  --finance: #3b5bdb;
  --finance-2: #8b5cf6;
  --innerval: #c06b5e;
  --innerval-2: #9b7db8;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 20px;
  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --surface: #1c1a17;
    --sunk: #221f1b;
    --ink: #f2eee7;
    --muted: #a59f94;
    --line: #2f2b26;
    --accent: #8cc4b0;
    --accent-ink: #10201b;
    --accent-soft: #1f2d28;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);

    --mici: #6f9bff;
    --mici-2: #ff6b7a;
    --finance: #8da2ff;
    --finance-2: #b69bff;
    --innerval: #e3998d;
    --innerval-2: #c2a8dc;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
/* The ™ after the wordmark: small, with its top level with the capitals */
.tm { font-size: 0.5em; font-weight: 500; letter-spacing: 0; margin-left: 0.08em; vertical-align: 0.62em; line-height: 0; }

.site-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); font-weight: 600; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.site-nav .nav-cta:hover { border-color: var(--ink); }

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}
/* The smallest phones (320px): keep "Godari Labs" and "Get in touch" on one line */
@media (max-width: 360px) {
  .site-header .brand-name { font-size: 20px; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-large { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 560; }
.hero h1 em { font-style: italic; font-weight: 450; color: var(--accent); }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stack { position: relative; aspect-ratio: 1 / 0.86; }
.stack-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.stack-innerval { width: 70%; aspect-ratio: 16 / 10; top: 0; right: 0; transform: rotate(3deg); }
.stack-finance  { width: 74%; aspect-ratio: 16 / 10.9; top: 22%; left: 0; transform: rotate(-2.5deg); }
.stack-mici     { width: 72%; aspect-ratio: 1624 / 750; bottom: 0; right: 4%; transform: rotate(1.5deg); }
.hero-stack:hover .stack-innerval { transform: rotate(4deg) translate(8px, -6px); }
.hero-stack:hover .stack-finance  { transform: rotate(-3.5deg) translate(-8px, 0); }
.hero-stack:hover .stack-mici     { transform: rotate(2deg) translate(6px, 8px); }
@media (prefers-reduced-motion: reduce) { .stack-card { transition: none; } }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stack { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* Facts */

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts dl > div { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 560; line-height: 1.15; }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div { padding: 18px 0 18px 16px; }
  .facts dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts dt { font-size: 21px; }
}

/* Sections */

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 560; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Products */

.products { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(48px, 8vw, 96px); }

.product {
  --tone: var(--accent);
  --tone-2: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
}
.product:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.product:nth-of-type(even) .product-shot { order: 2; }

.product-mici { --tone: var(--mici); --tone-2: var(--mici-2); }
.product-finance { --tone: var(--finance); --tone-2: var(--finance-2); }
.product-innerval { --tone: var(--innerval); --tone-2: var(--innerval-2); }

.product-shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 18%, var(--sunk)), color-mix(in srgb, var(--tone-2) 18%, var(--sunk)));
  border: 1px solid var(--line);
}
.product-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product-mici .product-shot img { object-position: center; }
.product:hover .product-shot img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .product-shot img { transition: none; } }

.product-body { padding-block: 8px; }
.product-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-icon { width: 48px; height: 48px; border-radius: 13px; flex: none; }
img.product-icon { box-shadow: 0 0 0 1px var(--line); }
.product h3 { font-size: clamp(26px, 2.6vw, 32px); }
.product-kind { color: var(--muted); font-size: 14px; margin-top: 2px; }
.product-pitch { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.35; font-weight: 450; margin-bottom: 12px; }
.product-body > p:not(.product-pitch):not(.eyebrow) { color: var(--muted); }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 24px; }
.product-tags li {
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
}

.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; text-decoration: none;
  color: var(--tone);
  border-bottom: 2px solid color-mix(in srgb, var(--tone) 35%, transparent);
  padding-bottom: 2px;
}
.product-link:hover { border-bottom-color: var(--tone); }
.product-link span { transition: transform .2s ease; }
.product-link:hover span { transform: translate(2px, -2px); }

.product-next {
  background: transparent;
  border-style: dashed;
  grid-template-columns: auto minmax(0, 1fr) !important;
}
.product-next h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.next-mark { display: flex; gap: 8px; padding: 0 clamp(4px, 2vw, 24px); }
.next-mark span { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.next-mark span:nth-child(1) { background: var(--mici); }
.next-mark span:nth-child(2) { background: var(--finance); }
.next-mark span:nth-child(3) { background: var(--innerval); }

@media (max-width: 880px) {
  .product, .product:nth-of-type(even) { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-shot { order: 0; }
  .product-next { grid-template-columns: 1fr !important; }
  .next-mark { padding: 0; }
}

/* Principles */

.principles {
  background: var(--sunk);
  border-block: 1px solid var(--line);
  padding-block: clamp(64px, 10vw, 120px);
}
.principle-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  counter-reset: p;
}
.principle-list li {
  counter-increment: p;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.principle-list li::before {
  content: "0" counter(p);
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.principle-list h3 { font-size: 22px; margin-bottom: 10px; }
.principle-list p { color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .principle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principle-list { grid-template-columns: 1fr; } }

/* Contact */

.contact { padding-block: clamp(64px, 10vw, 120px); }
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.contact-card h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 560; }
.contact-intro p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 18px; }

.contact-channels { display: grid; gap: 12px; }
.channel {
  display: grid; gap: 2px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.channel:hover { border-color: var(--accent); transform: translateY(-1px); }
.channel-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.channel-address { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); font-weight: 560; overflow-wrap: anywhere; }
.channel-note { color: var(--muted); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .channel { transition: none; } }
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; } }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 404 */

.not-found { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-block: 64px; }
.not-found h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 560; }
.not-found-text { color: var(--muted); font-size: 18px; }
