/* Shakhanin Studio — styles
   Direction (Dec 2026): the site follows the LinkedIn cover. Cream gradient ground, serif capitals with
   letter-spacing for the name and the first screen, a neutral grotesk for reading text, one amber accent
   for links, buttons and rules. Motif: the rising 0→1 curve (idea → research → pilots → first revenue → PMF).
   No dark blocks, no blue. */

:root {
  --paper-top: #fdfcf8;
  --paper-bottom: #f5f1e7;
  --paper-field: #fffdf9;
  --ink: #15202b;
  --text: #2c3640;
  --label: #8a7a5a;
  --accent: #b4862e;
  --accent-text: #8a6420;
  --accent-soft: rgba(180, 134, 46, 0.09);
  --line: rgba(180, 134, 46, 0.28);
  --line-strong: rgba(180, 134, 46, 0.55);

  --serif: "EB Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --track: 0.25em;
  --track-small: 0.24em;
}

html { scroll-behavior: smooth; background: var(--paper-bottom); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--paper-top) 0%, var(--paper-bottom) 100%);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--ink); }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.18em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--ink); text-decoration-color: var(--accent); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Serif caps with letter-spacing: the cover's own voice. Used for the name, the first screen and section titles. */
.caps {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track);
}

/* The thin amber rule under a heading, as on the cover */
.rule-after::after {
  content: ""; display: block;
  width: 140px; height: 1px; background: var(--accent); opacity: 0.7;
  margin-top: 0.9rem;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  padding: 0.6rem 0.9rem; background: var(--ink); color: var(--paper-top);
  font-size: 0.95rem; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Placeholders to fill before launch. Search the HTML for class="todo". */
mark.todo {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-bottom: 1px dashed var(--accent);
  padding: 0 0.15em;
  font-style: normal;
}
.todo-box {
  border: 1px dashed var(--line-strong);
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--label); font-size: 0.9rem; text-align: center;
  padding: 1rem;
}

/* ---- Header ---- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.2rem; padding-bottom: 1.2rem;
  flex-wrap: wrap;
}
.logotype {
  font-family: var(--serif); font-weight: 500; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logotype span { color: var(--accent-text); }

.nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent-text); }
.nav .nav-cta {
  color: var(--ink); border: 1px solid var(--accent); padding: 0.55em 1em; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--ink); }

.menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--accent); color: var(--ink);
  font: 600 0.9rem/1 var(--sans);
  padding: 0.7em 1em; cursor: pointer;
}

/* ---- Buttons and links ---- */
.btn {
  display: inline-block;
  font: 600 0.95rem/1 var(--sans);
  color: var(--ink); background: var(--accent);
  border: 1px solid var(--accent); padding: 0.95em 1.5em;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-top); }

.textlink { font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); }
.textlink:hover { color: var(--accent-text); }

/* ---- Hero ---- */
.hero .wrap { padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }

.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--track);
  font-size: clamp(1.45rem, 3.1vw, 2.6rem);
  line-height: 1.55;
  max-width: 34ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }

.tagline {
  margin: 1.5rem 0 0;
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  font-variant-caps: all-small-caps; letter-spacing: var(--track-small);
  color: var(--accent-text);
}
.tagline .sep { margin: 0 0.6em; opacity: 0.6; }

.hero-sub {
  margin: 1.5rem 0 0;
  font-size: 1.25rem; line-height: 1.5;
  color: var(--text);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

/* The 0→1 curve: idea → research → pilots → first revenue → PMF. Draws itself once on load. */
.curve { margin: clamp(2rem, 5vh, 3.5rem) 0 0; }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve-path {
  fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.55;
  /* The path is about 1710 user units long; the dash starts fully offset and is drawn in. */
  stroke-dasharray: 1760; stroke-dashoffset: 1760;
  animation: drawpath 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s forwards;
}
.curve-nodes circle {
  fill: var(--paper-top); stroke: var(--accent); stroke-width: 2;
  opacity: 0; animation: appear 0.4s ease-out 1.4s forwards;
}
.curve-labels text {
  font-family: var(--sans); font-size: 21px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  fill: var(--label);
  opacity: 0; animation: appear 0.6s ease-out 1.6s forwards;
}
@keyframes drawpath { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .curve-path { animation: none; stroke-dashoffset: 0; }
  .curve-nodes circle, .curve-labels text { animation: none; opacity: 1; }
}
.stages { display: none; }

.hero-note { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--label); max-width: 64ch; }

/* ---- Sections: caps title in the margin, content on the right ---- */
.section { border-top: 1px solid var(--line-strong); }
.section .wrap {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
.section-side h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 500; font-size: 0.85rem; line-height: 1.6;
  text-transform: uppercase; letter-spacing: var(--track-small);
  color: var(--label);
  position: sticky; top: 1.5rem;
}
.section-body { min-width: 0; }

.lede {
  margin: 0 0 2.5rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.3;
  color: var(--ink);
  max-width: 32ch;
  text-wrap: balance;
}
.lede.small { font-size: 1.6rem; margin-bottom: 1.75rem; }

/* ---- Services ---- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
}
.service h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.15; }
.service h3::after { content: ""; display: block; width: 140px; height: 1px; background: var(--accent); opacity: 0.7; margin-top: 0.7rem; }
.service-format { margin: 0.6rem 0 0; color: var(--label); font-size: 0.95rem; }
.service-what p { margin: 0 0 0.9rem; }
.service-what ul { list-style: none; margin: 0; padding: 0; color: var(--text); font-size: 0.95rem; }
.service-what li { position: relative; padding-left: 1.1rem; margin: 0.3rem 0; }
.service-what li::before {
  content: ""; position: absolute; left: 0; top: 0.8em;
  width: 0.5rem; height: 1px; background: var(--accent);
}
.service-out h4 { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.15rem; color: var(--accent-text); }
.service-out p { margin: 0; }

/* ---- Cases ---- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem 2.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.15; }
.case h3::after { content: ""; display: block; width: 140px; height: 1px; background: var(--accent); opacity: 0.7; margin-top: 0.7rem; }
.case-meta { margin: 0.6rem 0 0; color: var(--label); font-size: 0.95rem; line-height: 1.5; }

.case-body { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.case-body .wide { grid-column: 1 / -1; }
.case-body dt { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--label); margin-bottom: 0.3rem; }
.case-body dd { margin: 0; }
.case-body .result dd { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.35; color: var(--ink); }

.more-title { margin: 2.75rem 0 1rem; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.more-work { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.more-work li { position: relative; padding-left: 1.2rem; margin: 0 0 0.75rem; }
.more-work li::before {
  content: ""; position: absolute; left: 0; top: 0.8em;
  width: 0.55rem; height: 1px; background: var(--accent);
}
.more-work b { font-weight: 600; color: var(--ink); }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 64ch; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
.quote blockquote::before { content: ""; display: block; width: 140px; height: 1px; background: var(--accent); opacity: 0.7; margin-bottom: 1.25rem; }
.quote blockquote p { margin: 0; }
.quote figcaption {
  margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.1rem;
  font-size: 0.95rem; color: var(--label);
}
.quote .who { color: var(--ink); font-weight: 600; }
.shot { margin-top: 1.5rem; aspect-ratio: 16 / 9; width: 100%; }
img.shot { object-fit: cover; object-position: top left; border: 1px solid var(--line); background: #fff; }

/* ---- Founder ---- */
.founder {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.portrait { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.founder-text h3 { margin: 0 0 0.25rem; font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.15; }
.founder-text .where { margin: 0 0 1.4rem; color: var(--label); }
.founder-text p { margin: 0 0 1rem; max-width: 62ch; }
.ventures { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 62ch; }
.ventures li { position: relative; padding-left: 1.2rem; margin: 0 0 0.75rem; }
.ventures li::before {
  content: ""; position: absolute; left: 0; top: 0.8em;
  width: 0.55rem; height: 1px; background: var(--accent);
}
.ventures b { font-weight: 600; color: var(--ink); }
.founder-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; color: var(--label); font-size: 0.95rem; }
.founder-links a { font-weight: 500; }

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 5vw, 5rem); }

.contact-intro p { margin: 0; max-width: 46ch; }
.contact-intro .lede { margin-bottom: 1.25rem; }

.direct-list { display: grid; gap: 1rem; justify-items: start; }
.direct-list a:not(.btn) { font-weight: 500; }
.direct p { margin: 1.75rem 0 0; color: var(--label); font-size: 0.95rem; max-width: 36ch; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line-strong); }
.foot .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  font-size: 0.875rem; color: var(--label);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .section .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .section-side h2 { position: static; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .case { grid-template-columns: 1fr; gap: 1.25rem; }
  .founder { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .js .top:not(.open) .nav { display: none; }
  .nav {
    flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 1rem;
    padding: 0.75rem 0 0.25rem;
  }
  .nav a { font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 0.25rem; }

  /* The curve's labels are unreadable at phone width: keep the line, list the stages as text. */
  .curve-labels { display: none; }
  .stages {
    display: flex; flex-wrap: wrap; gap: 0.4rem 0;
    list-style: none; margin: 0.9rem 0 0; padding: 0;
    font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--label);
  }
  .stages li + li::before { content: "\2192"; margin: 0 0.6em; color: var(--accent); }
}

@media (max-width: 600px) {
  .hero h1 { letter-spacing: 0.18em; line-height: 1.5; }
  .tagline { font-size: 0.95rem; letter-spacing: 0.18em; }
  .tagline .sep { display: block; height: 0; overflow: hidden; }
  .case-body { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
}
