/* YINDOR homepage, direction A (redesign 2026-09-23). Load AFTER css/style.css.
   Only index.html loads this file, so consultancy.html and the Dusk pages
   keep their look. Grid tracks use minmax(0, 1fr) and nothing long carries
   white-space: nowrap: see CLAUDE.md on the 2026-09-02 tablet overflow. */

body.home {
  --gutter: 80px;
  --hatch: #F4F2EE;
  --hatch-line: #E2DFDA;
  --soot-line: #3A3833;
  --orange-bright: #E4551B;
  --orange-ink: #B8471A;
  --orange-on-dark: #F4733A;
}
@media (max-width: 1100px) { body.home { --gutter: 48px; } }
@media (max-width: 700px) { body.home { --gutter: 16px; } }

.home .m {
  font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.home .d { font-weight: 900; letter-spacing: -.025em; }
.home .wpt {
  display: flex; align-items: center; gap: 10px;
  font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite);
}
.home .wpt::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--soot); flex-shrink: 0;
}
.home .dark .wpt { color: var(--muted-dark); }
.home .dark .wpt::before { background: var(--concrete); }
.home .wpt.accent::before { background: var(--orange-bright); }
.home .h2 { font-size: clamp(34px, 4.5vw, 64px); line-height: 1.02; max-width: 1000px; }

.home .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--soot); color: var(--soot); background: transparent;
}
.home .btn.solid { background: var(--soot); color: var(--concrete); }
.home .btn.light { background: var(--concrete); color: var(--soot); border-color: var(--concrete); }
.home a:hover { opacity: 1; color: var(--orange-ink); }
.home .btn:hover { opacity: .85; color: inherit; }
.home .btn.solid:hover { color: var(--concrete); }
.home .btn.light:hover { color: var(--soot); }
.home a:focus-visible, .home button:focus-visible {
  outline: 3px solid var(--orange-bright); outline-offset: 3px;
}

/* ---------- Header ---------- */
.home .site-header { height: 84px; padding: 0 var(--gutter); border-bottom: 1px solid var(--border); gap: 24px; }
.home .wordmark { font-size: 30px; }
.home .wordmark .dot { color: var(--orange-bright); }
.home .site-nav { font-size: 16px; }
.home .site-nav a:hover { color: var(--orange-ink); }
.home .coords { font-size: 12px; color: var(--graphite); }
@media (max-width: 1100px) { .home .coords { display: none; } }

/* ---------- Hero ---------- */
.h-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center;
  padding: 96px var(--gutter);
}
.h-hero-text { display: flex; flex-direction: column; gap: 32px; }
.h-hero h1 { font-size: clamp(44px, 6.7vw, 96px); line-height: .98; }
.h-hero .lead { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; color: var(--body); max-width: 720px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.h-route { width: 100%; height: auto; display: block; }
.h-route text { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.h-route a:hover circle { fill: var(--orange-bright); }
.h-route-small { display: none; width: 100%; height: auto; }
@media (max-width: 900px) {
  .h-hero { grid-template-columns: minmax(0, 1fr); padding: 48px var(--gutter) 40px; }
  .h-route { display: none; }
  .h-route-small { display: block; }
}
@media (max-width: 700px) {
  .h-hero-text { gap: 22px; }
  .h-actions { flex-direction: column; }
  .h-actions .btn { width: 100%; }
}

/* ---------- Proof strip ---------- */
.h-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 48px;
  padding: 22px var(--gutter); background: var(--soot); color: var(--muted-dark); font-size: 12px;
}
.h-proof b { color: var(--concrete); font-weight: 500; }
.h-proof .end { margin-left: auto; color: var(--orange-on-dark); }
@media (max-width: 700px) {
  .h-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 11px; }
  .h-proof .end { margin-left: 0; grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.h-section { padding: 112px var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.h-section.rule { border-bottom: 1px solid var(--border); }
.h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.h-head p { font-size: 18px; line-height: 1.5; color: var(--body); max-width: 380px; }
@media (max-width: 900px) { .h-head { flex-direction: column; align-items: flex-start; gap: 16px; } }
@media (max-width: 700px) { .h-section { padding: 56px var(--gutter); gap: 20px; } }

.dark { background: var(--soot); color: var(--concrete); }

/* Hairline cells */
.h-cells {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.h-cells.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dark .h-cells { background: var(--soot-line); border-color: var(--soot-line); }
.h-cell { background: var(--concrete); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dark .h-cell { background: var(--soot); }
.h-cell h3 { font-size: 24px; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; }
.h-cell p { font-size: 17px; line-height: 1.5; color: var(--body); }
.dark .h-cell p { color: var(--muted-dark); }
.h-cell .num { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--orange-ink); }
.h-cell .m { font-size: 13px; }
@media (max-width: 1280px) { .h-cells.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .h-cells { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .h-cells.four { grid-template-columns: minmax(0, 1fr); }
  .h-cell { padding: 24px 20px; gap: 10px; }
  .h-cell h3 { font-size: 20px; }
  .h-cell p { font-size: 16px; }
}

/* ---------- Product stage ---------- */
.stage {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; margin-top: 24px;
}
.stage-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.ch { border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.chb {
  display: flex; gap: 16px; align-items: baseline; width: 100%; min-height: 44px; padding: 16px 0 12px;
  text-align: left; background: transparent; border: 0; cursor: pointer; color: var(--graphite); font: inherit;
}
.chb .n { font-size: 13px; width: 28px; flex-shrink: 0; }
.chb .name { font-weight: 900; font-size: 24px; letter-spacing: -.02em; text-transform: uppercase; flex-grow: 1; }
.chb .state { font-size: 11px; text-align: right; }
.ch.on .chb { color: var(--soot); }
.ch.on .chb .n, .ch.on .chb .state { color: var(--orange-ink); }
.ch-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px 44px; }
.ch-body .line { font-size: 20px; font-weight: 600; line-height: 1.25; }
.ch-body p { font-size: 16px; line-height: 1.5; color: var(--body); }
.ch-body a { font-size: 12px; color: var(--orange-ink); align-self: flex-start; min-height: 24px; }
.ch-bar { height: 3px; background: var(--border); margin-bottom: -1px; display: none; }
.ch-bar span { display: block; height: 3px; width: 0; background: var(--orange-bright); }
.js .ch-body { display: none; }
.js .ch.on .ch-body { display: flex; animation: h-fade .5s ease-out both; }
.js .ch.on .ch-bar { display: block; }
.stage-ctl { display: flex; align-items: center; gap: 14px; padding-top: 18px; }
.stage-ctl[hidden] { display: none; }
.tbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; cursor: pointer;
  font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--soot); background: transparent; color: var(--soot);
}
.stage-ctl .status { font-size: 11px; color: var(--graphite); }

.stage-view { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage-count { font-size: 11px; color: var(--graphite); align-self: flex-end; }
.stage-box {
  position: relative; min-height: 640px; border: 1px solid var(--border); background: var(--hatch);
  overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.stage-box .big {
  position: absolute; right: 20px; bottom: -44px; font-size: 280px; line-height: 1; color: var(--hatch-line);
  font-weight: 900; letter-spacing: -.025em; pointer-events: none; user-select: none;
}
.frame { position: relative; margin: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.js .frame { display: none; }
.js .frame.on { display: flex; animation: h-fade .5s ease-out both; }
.frame figcaption { font-size: 11px; color: var(--graphite); text-align: center; }
/* Try it: the widget replaces the capture and its caption while open. */
.frame.trying > :not(.try-box):not(.try-btn) { display: none; }
.try-box { width: 100%; max-width: 620px; border: 2px solid var(--soot); background: #fff; padding: 20px; font-size: 14px; }
.try-box[hidden], .try-btn[hidden] { display: none; }
.browser { width: 100%; max-width: 720px; background: #fff; border: 2px solid var(--soot); }
.browser .bar {
  height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border-bottom: 2px solid var(--soot); background: var(--concrete);
}
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--soot); flex-shrink: 0; }
.browser .bar .url {
  margin-left: 12px; font: 500 12px var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.browser img, .browser video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.phone {
  width: 280px; max-width: 70%; border: 2px solid var(--soot); border-radius: 34px; background: #fff; padding: 10px;
}
.phone video, .phone img { display: block; width: 100%; height: auto; border-radius: 24px; aspect-ratio: 390 / 844; object-fit: cover; }
.mac { width: 100%; max-width: 620px; }
.mac img { display: block; width: 100%; height: auto; border: 2px solid var(--soot); }

@keyframes h-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .stage { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; } }

/* Phone and small tablet: six numbered tabs over one product. */
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 0; }
  .js .stage-list {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 6px; border-bottom: 0;
  }
  .js .ch { display: contents; }
  .js .chb { grid-row: 1; padding: 8px 0 6px; min-height: 44px; }
  .js .chb .name, .js .chb .state { display: none; }
  .js .ch-bar { display: block; grid-row: 2; margin: 0; }
  .js .ch-body { grid-row: 3; grid-column: 1 / -1; padding: 18px 0 0; }
  .js .ch:nth-child(1) .chb, .js .ch:nth-child(1) .ch-bar { grid-column: 1; }
  .js .ch:nth-child(2) .chb, .js .ch:nth-child(2) .ch-bar { grid-column: 2; }
  .js .ch:nth-child(3) .chb, .js .ch:nth-child(3) .ch-bar { grid-column: 3; }
  .js .ch:nth-child(4) .chb, .js .ch:nth-child(4) .ch-bar { grid-column: 4; }
  .js .ch:nth-child(5) .chb, .js .ch:nth-child(5) .ch-bar { grid-column: 5; }
  .js .ch:nth-child(6) .chb, .js .ch:nth-child(6) .ch-bar { grid-column: 6; }
  .js .ch.done .ch-bar span { width: 100%; background: var(--soot); }
  .js .ch-body .kicker { display: block; }
  .stage-box { min-height: 0; padding: 20px 12px; }
  .stage-box .big { display: none; }
  .stage-count { display: none; }
}
.ch-body .kicker { display: none; font-size: 11px; color: var(--orange-ink); }

/* ---------- The end: contact, place and legal in one block ---------- */
.h-end { display: flex; flex-direction: column; }
.h-end-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 56px; align-items: center;
  padding: 112px var(--gutter) 80px;
}
.h-end-text { display: flex; flex-direction: column; gap: 28px; }
.h-end-text h2 { font-size: clamp(44px, 6.7vw, 96px); line-height: .98; }
.h-end .btn.ghost { color: var(--concrete); border-color: var(--concrete); }
.h-end .btn.ghost:hover { color: var(--concrete); }
.h-end-place { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--soot-line); max-width: 620px; }
.h-end-place h3 { font-size: 28px; letter-spacing: -.02em; }
.h-end-place p { font-size: 17px; line-height: 1.55; color: var(--muted-dark); }
.h-end-map { width: 100%; height: auto; display: block; }
.h-end-map text { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.h-end-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 24px var(--gutter); border-top: 1px solid var(--soot-line); font-size: 12px; color: var(--muted-dark);
}
@media (max-width: 1100px) { .h-end-main { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 700px) {
  .h-end-main { padding: 56px var(--gutter) 40px; }
  .h-end-text { gap: 20px; }
  .h-end-place h3 { font-size: 22px; }
  .h-end-place p { font-size: 16px; }
  .h-end-bar { font-size: 11px; }
}

/* ---------- Motion ---------- */
.route-dash { stroke-dasharray: 10 10; animation: h-run 1.6s linear infinite; }
@keyframes h-run { to { stroke-dashoffset: -40; } }
.pulse { animation: h-pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes h-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .route-dash, .pulse, .js .ch.on .ch-body, .js .frame.on { animation: none !important; }
  .pulse { display: none; }
}
