/* ============================================================
   INDESORE GROUP — light system
   ------------------------------------------------------------
   Two colours carry the whole site, both taken from Indesore's
   own hero globe: the indigo of the denim, and the kraft of the
   jute continents. Everything else is paper and ink.
   The eight-thread logo is the single place colour is allowed
   to run free — the way a crocodile is the only green on a
   white Lacoste page.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paper & ink — the neutrals */
  --paper:    #F7F5F1;   /* raw cotton */
  --paper-2:  #F1EDE6;   /* panel */
  --paper-3:  #E8E2D8;   /* pressed */
  /* All three clear 4.5:1 on paper, tint and pressed — the small uppercase
     labels this system leans on are the easiest thing to under-contrast. */
  --ink:      #14181C;   /* body copy, near-black not black */
  --ink-2:    #4A545E;   /* secondary copy      — 7.1:1 on paper */
  --ink-3:    #5A626A;   /* labels, captions    — 5.7:1 on paper */

  /* PRIMARY — denim indigo, from the globe's ocean */
  --denim:    #0E3A5E;
  --denim-2:  #17527F;   /* lighter tint, same hue */
  --denim-3:  #DDE5EC;   /* wash */

  /* SECONDARY — kraft, from the globe's continents.
     Deepened from the raw #B0813F so it holds as label text (5.4:1). */
  --kraft:    #845E22;
  --kraft-2:  #F0E7D7;   /* wash */

  /* The eight threads. Used only in the wordmark. */
  --t1: #400830;  --t2: #983038;  --t3: #F06838;  --t4: #E0C818;
  --t5: #98C840;  --t6: #40A8C0;  --t7: #38A0B8;  --t8: #006898;

  /* Type — two families, both chosen for legibility over character */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --rail:  clamp(24px, 5vw, 88px);
  --sec:   clamp(80px, 11vh, 152px);
  --maxw:  1520px;

  --line:   rgba(20, 24, 28, .13);
  --line-2: rgba(20, 24, 28, .07);

  --ease:    cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(15px, .3vw + 14.2px, 16.5px);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--denim); color: var(--paper); }

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

/* ---------- Page transition ----------
   Opacity only — a transform here would make `position: fixed`
   children resolve against the body box, not the viewport. */
body { animation: page-in .5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { opacity: 0; transition: opacity .28s var(--ease); animation: none; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.021em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.028em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.3rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.45rem); line-height: 1.16; letter-spacing: -.014em; font-weight: 600; }

.lede {
  font-size: clamp(1rem, 1.05vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 52ch;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* Eyebrow: letterspaced caps with a short kraft rule.
   No coloured dots — the label is the label. */
.eyebrow {
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .85em;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--kraft);
  flex: none;
}
.eyebrow.no-rule::before { display: none; }

/* Data figures: tabular so columns of numbers line up */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 4. Live wordmark ----------
   Real text, not the PNG: crisp at any size, and the globe
   genuinely occupies the O. */
.wm {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .28em;
  line-height: 1;
  font-size: var(--wm-size, 1rem);
  white-space: nowrap;
}
.wm i { font-style: normal; }
.wm i:nth-child(1) { color: var(--t1); }
.wm i:nth-child(2) { color: var(--t2); }
.wm i:nth-child(3) { color: var(--t3); }
.wm i:nth-child(4) { color: #C4AC10; }   /* gold darkened to hold on paper */
.wm i:nth-child(5) { color: #7DAB2C; }   /* lime darkened to hold on paper */
.wm i:nth-child(7) { color: var(--t7); }
.wm i:nth-child(8) { color: var(--t8); }
.wm-o {
  width: .95em; height: .95em;
  margin-right: .28em;
  border-radius: 50%;
  flex: none;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 33% 28%, #3E9CB8 0%, #1E6E96 40%, #0E3A5E 100%);
}
.wm-o::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(ellipse 34% 20% at 22% 34%, #C9A46B 0 62%, transparent 64%),
    radial-gradient(ellipse 22% 30% at 56% 60%, #C9A46B 0 62%, transparent 64%),
    radial-gradient(ellipse 16% 13% at 82% 30%, #C9A46B 0 62%, transparent 64%);
  opacity: .95;
  animation: wm-spin 16s linear infinite;
}
@keyframes wm-spin {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 200% 0, 200% 0, 200% 0; }
}

/* ---------- 5. Shell ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--rail);
}
.section { padding-block: var(--sec); position: relative; }

/* A half-tone of the paper. Gives the page rhythm without introducing
   a third colour. */
.tint {
  background: var(--paper-2);
  --paper: #F1EDE6;
  --paper-2: #E9E4DA;
}

/* The one inverted surface. Used sparingly, the way a single
   block of colour breaks up a white apparel page.
   `.band` is the CTA flavour of the same surface, so it inherits the
   whole token flip — otherwise outline buttons come out denim-on-denim. */
.deep, .band {
  background: var(--denim);
  color: var(--paper);
  --ink: #F7F5F1;
  --ink-2: #B9C9D6;
  --ink-3: #94ABBD;                /* 4.9:1 on denim */
  --kraft: #C9A166;                /* lifted: the deep kraft dies on denim */
  --line: rgba(247, 245, 241, .17);
  --line-2: rgba(247, 245, 241, .09);
  /* --paper deliberately stays light here: it is the contrasting colour
     these surfaces draw their type and buttons in, not their background. */
}
.deep .lede, .band .lede { color: #C3D2DE; }

/* ---------- 6. Selvedge rail ----------
   The finished edge of the cloth, doubling as scroll progress. */
.selvedge {
  position: fixed;
  left: 0; top: 0;
  width: 2px; height: 100vh;
  z-index: 60;
  background: rgba(20, 24, 28, .08);
  pointer-events: none;
}
.selvedge__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: var(--denim);
}

/* ---------- 7. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--rail);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
}
.nav.is-stuck {
  background: rgba(247, 245, 241, .88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav__brand { display: flex; align-items: center; --wm-size: clamp(.88rem, 1.05vw, 1.02rem); }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); }
.nav__link {
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 0;
  position: relative;
  transition: color .28s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1.5px;
  background: var(--denim);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--denim); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.nav__cta { display: flex; align-items: center; gap: 14px; }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 12px; width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .38s var(--ease), opacity .25s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(26px, 5vh, 48px);
  padding: 96px var(--rail) 36px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .66s var(--ease);
  pointer-events: none;
  overflow-y: auto;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a {
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.24;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), color .25s;
}
.drawer.is-open .drawer__links a { opacity: 1; transform: none; }
.drawer__links a span {
  font-family: var(--body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--ink-3);
}
.drawer__links a:hover { color: var(--denim); }
.drawer__links a:nth-child(1) { transition-delay: .08s; }
.drawer__links a:nth-child(2) { transition-delay: .13s; }
.drawer__links a:nth-child(3) { transition-delay: .18s; }
.drawer__links a:nth-child(4) { transition-delay: .23s; }
.drawer__links a:nth-child(5) { transition-delay: .28s; }
.drawer__links a:nth-child(6) { transition-delay: .33s; }

.drawer__foot {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease) .4s, transform .55s var(--ease) .4s;
}
.drawer.is-open .drawer__foot { opacity: 1; transform: none; }
.drawer__thread {
  position: absolute; top: -1px; left: 0;
  height: 2px; width: 64px;
  background: var(--kraft);
}
.drawer__l {
  font-size: .62rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.drawer__v { font-size: .92rem; color: var(--ink); }
.drawer__v a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.drawer__v a:hover { color: var(--denim); }

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1.5px solid var(--denim);
  color: var(--denim);
  background: transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--denim);
  transform: translateY(101%);
  transition: transform .42s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid {
  background: var(--denim);
  color: var(--paper);
}
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: var(--paper); }

.deep .btn, .band .btn { border-color: var(--paper); color: var(--paper); }
.deep .btn::before, .band .btn::before { background: var(--paper); }
.deep .btn:hover, .band .btn:hover { color: var(--denim); }
.deep .btn--solid, .band .btn--solid { background: var(--paper); color: var(--denim); }
.deep .btn--solid::before, .band .btn--solid::before { background: var(--kraft); }
.deep .btn--solid:hover, .band .btn--solid:hover { color: var(--denim); }

/* Text link with a rule that draws in */
.tlink {
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  color: var(--denim);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--denim);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink svg { transition: transform .4s var(--ease); }
.tlink:hover svg { transform: translateX(5px); }
.deep .tlink, .band .tlink { color: var(--paper); }
.deep .tlink::after, .band .tlink::after { background: var(--kraft); }

/* ---------- 9. Running-stitch rule ----------
   A stitch joins two panels of cloth; so does a section rule.
   It sews itself as it scrolls into view. */
.stitch { display: block; width: 100%; height: 11px; overflow: visible; }
.stitch path {
  fill: none;
  stroke: var(--kraft);
  stroke-width: 1.5;
  stroke-dasharray: 12 8;
  stroke-dashoffset: var(--dash, 0);
  opacity: .55;
}

/* ---------- 10. Reveal primitives ---------- */
[data-reveal] { will-change: transform, opacity; }
.w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.w-in   { display: inline-block; will-change: transform; }

/* ---------- 11. Footer ---------- */
.foot {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 68px);
  padding-block: clamp(52px, 6.5vw, 88px);
}
.foot__h {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.foot__list { list-style: none; display: grid; gap: 10px; }
.foot__list a {
  font-size: .885rem;
  color: var(--ink-2);
  transition: color .25s, padding-left .3s var(--ease);
  display: inline-block;
}
.foot__list a:hover { color: var(--denim); padding-left: 6px; }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.foot__socials { display: flex; gap: 9px; }
.foot__socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.foot__socials a:hover { background: var(--denim); color: var(--paper); border-color: var(--denim); }

/* Wordmark at full width, drawn as SVG with a forced textLength
   so it fits its container exactly at every viewport. */
.foot__mark {
  display: block;
  width: 100%;
  height: auto;
  opacity: .1;
  user-select: none;
  margin-bottom: 8px;
}

/* Newsletter */
.sub {
  display: flex;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .3s;
}
.sub:focus-within { border-color: var(--denim); }
.sub input {
  flex: 1; min-width: 0;
  background: none; border: 0;
  padding: 13px 15px;
  font-size: .875rem;
  outline: none;
}
.sub input::placeholder { color: var(--ink-3); }
.sub button {
  padding: 0 18px;
  background: var(--denim);
  color: var(--paper);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  flex: none;
  transition: background .3s var(--ease);
}
.sub button:hover { background: var(--ink); }

/* ---------- 12. Utility ---------- */
.flexy { display: flex; align-items: center; gap: var(--g, 14px); flex-wrap: wrap; }
.only-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -60px; left: var(--rail);
  z-index: 100; background: var(--denim); color: var(--paper);
  padding: 11px 18px; font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: top .25s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1160px) { .nav__cta .btn { display: none; } }
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .burger { display: block; }
}
@media (max-width: 620px) {
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .foot__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 14. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
