/* ------------------------------------------------------------------
   Indo Brothers — indobrothers.com
   Type: Instrument Serif (display) + Instrument Sans (text)
   ------------------------------------------------------------------ */

:root {
  --paper:      #f3f0e8;
  --paper-2:    #ebe7dd;
  --ink:        #151412;
  --ink-2:      #4a4844;
  --muted:      #7d7a72;
  --rule:       rgba(21, 20, 18, .14);
  --accent:     #b8471f;

  --night:      #0c0c0b;
  --night-2:    #171715;
  --chalk:      #ece8de;
  --chalk-2:    #a9a59b;
  --rule-dark:  rgba(236, 232, 222, .14);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans:  "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

/* film grain — the thing that makes flat colour feel like paper */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 100;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -5%); }
  30% { transform: translate(4%, 2%); }
  50% { transform: translate(-2%, 6%); }
  70% { transform: translate(5%, -3%); }
  90% { transform: translate(-4%, 4%); }
}

.skip {
  position: absolute; left: 12px; top: -60px;
  padding: 8px 14px; background: var(--ink); color: var(--paper);
  z-index: 200; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  font-size: 14px;
  letter-spacing: .01em;
  transition: padding .4s var(--ease-out), background .4s, box-shadow .4s;
}
.site-head.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule);
}
.site-head.on-dark { color: var(--chalk); }
.site-head.on-dark.is-scrolled {
  background: color-mix(in srgb, var(--night) 82%, transparent);
  box-shadow: 0 1px 0 var(--rule-dark);
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; letter-spacing: .005em;
  justify-self: start;
}
.mark { width: 20px; height: 20px; fill: currentColor; }
.wordmark .mark rect:last-child { transition: transform .5s var(--ease-out); transform-origin: 50% 100%; }
.wordmark:hover .mark rect:last-child { transform: scaleY(.62); }

.site-nav { display: flex; gap: 34px; }
.site-nav a, .foot-links a, .links a {
  position: relative; padding-bottom: 2px;
}
.site-nav a::after, .foot-links a::after, .links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.site-nav a:hover::after, .foot-links a:hover::after, .links a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1); transform-origin: 0 50%;
}
.head-meta { justify-self: end; color: var(--muted); font-variant-numeric: tabular-nums; }
.on-dark .head-meta { color: var(--chalk-2); }

.nav-toggle {
  display: none; justify-self: end;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; color: inherit;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 19.5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--gutter);
  background: var(--paper);
  font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.1;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-in-out);
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); }
.mobile-nav a { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: .06s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: .12s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: .18s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--gutter) clamp(36px, 6vh, 64px);
  max-width: var(--max); margin: 0 auto;
}
.eyebrow {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: clamp(24px, 4vh, 48px);
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.9vw, 108px);
  line-height: .96; letter-spacing: -.015em;
  max-width: 18ch;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.hero-title .line:nth-child(3) > span { animation-delay: .16s; }
.hero-title .line:nth-child(4) > span { animation-delay: .24s; }
.hero .reveal { transition-delay: .5s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 25rem);
  gap: 40px var(--gutter); align-items: end;
}
.hero-lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); padding-bottom: .35em; text-wrap: pretty; }
.hero-lede a, .lead a, .fineprint a, .contact-grid a { border-bottom: 1px solid var(--ink); color: var(--ink); transition: color .3s, border-color .3s; }
.hero-lede a:hover, .lead a:hover, .fineprint a:hover, .contact-grid a:hover { color: var(--accent); border-color: var(--accent); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  margin-top: clamp(32px, 5vh, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.hero-meta { display: flex; gap: clamp(28px, 4vw, 64px); font-size: 14px; color: var(--ink); }
.hero-meta span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.scroll-cue svg { width: 12px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.scroll-cue svg path { animation: nudge 2.2s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 40px var(--gutter);
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.section-head {
  position: sticky; top: 96px; align-self: start;
  display: flex; gap: 18px; align-items: baseline;
}
.index { font-family: var(--serif); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-label {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(27px, 3.1vw, 46px);
  line-height: 1.22; letter-spacing: -.008em;
  max-width: 26ch;
  text-wrap: pretty;
}
.lead--dark { color: var(--chalk); }

.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--rule);
}
.principle {
  padding: 36px 32px 44px 0;
  border-right: 1px solid var(--rule);
}
.principle + .principle { padding-left: 32px; }
.principle:last-child { border-right: 0; }
.principle .num {
  display: block; font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--accent); margin-bottom: 26px;
}
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; margin-bottom: 16px; letter-spacing: -.005em; }
.principle p { color: var(--ink-2); font-size: 16px; }

/* ---------- Products (Owtset, Anzwr) ---------- */
.section--product { background: var(--paper-2); max-width: none; }
.section--product {
  /* keep inner content on the same grid as other sections while bleeding bg */
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.product-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.product-tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.product-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.2vw, 62px); line-height: 1.05; letter-spacing: -.012em;
  margin-bottom: 28px; text-wrap: balance;
}
.product-title em { color: var(--accent); }
.product-copy > p:not(.product-tag) { color: var(--ink-2); max-width: 56ch; font-size: 17px; }

.product-list { margin-top: 40px; border-top: 1px solid var(--rule); }
.product-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  transition: padding-left .4s var(--ease-out);
}
.product-list li:hover { padding-left: 10px; }
.product-list span { font-family: var(--serif); font-size: 24px; letter-spacing: -.005em; }
.product-list small { font-size: 14px; color: var(--muted); }

.product-cta { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; letter-spacing: .02em; font-weight: 500;
  transition: background .35s, color .35s, transform .35s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.arrow { display: inline-block; transition: transform .35s var(--ease-out); }
a:hover > .arrow { transform: translate(2px, -2px); }
.fineprint { font-size: 13px; color: var(--muted); max-width: 34ch; }

.journey { color: var(--ink); padding-top: 10px; }
.journey svg { width: 100%; height: auto; max-width: 420px; margin: 0 auto; display: block; }
.journey .spine { stroke-width: 1; }
.journey circle { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; }
.journey .node--end circle:first-child { fill: var(--accent); stroke: var(--accent); }
.journey .halo { fill: none; stroke: var(--accent); opacity: .35; }
.journey text { font-family: var(--sans); fill: var(--ink); }
.journey .yr { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.journey .lbl { font-family: var(--serif); font-size: 20px; }
.journey .node-in { opacity: 0; transform: translateX(-8px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.journey.is-visible .node-in { opacity: 1; transform: none; }
.journey.is-visible .node:nth-of-type(2) .node-in { transition-delay: .15s; }
.journey.is-visible .node:nth-of-type(3) .node-in { transition-delay: .30s; }
.journey.is-visible .node:nth-of-type(4) .node-in { transition-delay: .45s; }
.journey.is-visible .node:nth-of-type(5) .node-in { transition-delay: .60s; }
.journey figcaption { text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin-top: 14px; }

/* ---------- Founders (dark) ---------- */
.section--dark {
  background: var(--night); color: var(--chalk);
  max-width: none; border-top: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.section--dark .index { color: var(--chalk-2); }
.section--dark ::selection { background: var(--chalk); color: var(--night); }

.founders {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 104px);
}
.founder { display: flex; flex-direction: column; }
.portrait {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--night-2);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.founder:hover .portrait img { transform: scale(1.06); }
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,11,.55), transparent 45%);
  pointer-events: none;
}
.founder-text { padding-top: 28px; }
.founder h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -.01em; line-height: 1.05; }
.founder .role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-2); margin: 12px 0 22px; }
.founder-text > p:not(.role) { color: color-mix(in srgb, var(--chalk) 78%, var(--night)); max-width: 52ch; font-size: 16px; }
.founder em { font-family: var(--serif); font-style: italic; font-size: 1.06em; color: var(--chalk); }
.links { display: flex; gap: 22px; margin-top: 24px; font-size: 14px; }

/* ---------- Contact ---------- */
.contact-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.014em;
  max-width: 18ch; text-wrap: balance;
}
.contact-title em { color: var(--accent); }
.contact-mail {
  display: inline-block; margin-top: 36px;
  font-family: var(--serif); font-size: clamp(24px, 3vw, 44px); letter-spacing: -.01em;
  border-bottom: 1px solid var(--ink);
  transition: color .3s, border-color .3s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.contact-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.contact-grid p { color: var(--ink-2); font-size: 15px; }

/* ---------- Footer ---------- */
.site-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  max-width: var(--max); margin: 0 auto;
  padding: 40px var(--gutter) 36px;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--muted);
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.foot-legal { text-align: center; line-height: 1.6; }
.foot-links { display: flex; gap: 22px; justify-self: end; }
.foot-links a { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.principles .principle:nth-child(2), .founders .founder:nth-child(2) { transition-delay: .12s; }
.principles .principle:nth-child(3) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-lede { max-width: 46ch; }
  .principles { grid-template-columns: 1fr; border-top: 0; }
  .principle { border-right: 0; border-top: 1px solid var(--rule); padding: 30px 0 34px; }
  .principle + .principle { padding-left: 0; }
  .product { grid-template-columns: 1fr; }
  .journey { order: -1; margin-bottom: 8px; }
}
@media (max-width: 860px) {
  .site-head { grid-template-columns: 1fr auto; }
  .site-nav, .head-meta { display: none; }
  .nav-toggle { display: block; }
  .section { grid-template-columns: 1fr; gap: 28px; }
  .section-head { position: static; }
  .founders { grid-template-columns: 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-meta { flex-wrap: wrap; gap: 18px 32px; }
  .site-foot { grid-template-columns: 1fr; align-items: start; }
  .foot-legal { text-align: left; }
  .foot-links { justify-self: start; }
  .product-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero-title { font-size: clamp(38px, 10.3vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .hero-title .line > span { animation: none; transform: none; }
  .reveal, .journey .node-in { opacity: 1; transform: none; transition: none; }
  .scroll-cue svg path, .product-tag .dot { animation: none; }
  .portrait img, .founder:hover .portrait img { transform: none; transition: none; }
}
