/* =========================================================
   NTCO.BIZ — minimal portfolio
   Palette: pure black / pure white
   ========================================================= */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #767676;
  --line: #e6e6e6;
  --card: #fafafa;
  --invert-fg: #ffffff;
  --invert-bg: #0a0a0a;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f4f4f4;
  --muted: #8f8f8f;
  --line: #232323;
  --card: #111111;
  --invert-fg: #0a0a0a;
  --invert-bg: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(72px, 11vw, 140px);
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 20ch;
}

.lead {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  max-width: 46ch;
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: filter .4s var(--ease);
}
[data-theme="dark"] .brand__logo { filter: invert(1); }
.brand__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
}
.brand__name span { color: var(--muted); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--muted);
  transition: color .25s var(--ease);
  padding-block: 6px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a:hover::after, .nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-btn svg { width: 16px; height: 16px; }

.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: 76px;
  padding-bottom: clamp(56px, 9vw, 96px);
  overflow: hidden;
}
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.hero__meta span:last-child { letter-spacing: .06em; text-transform: none; }

.hero h1 {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(3.1rem, 10.4vw, 9.4rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.hero h1 em {
  font-style: normal;
  color: var(--muted);
}
.hero h1 .dot { color: var(--muted); }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-top: clamp(32px, 5vw, 56px);
}
.hero__text {
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
}
.hero__text strong { color: var(--fg); font-weight: 500; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--fg); }

/* ticker */
.ticker {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about__body p { color: var(--muted); margin-bottom: 18px; max-width: 48ch; }
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: var(--fg); font-weight: 500; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 80px);
}
.fact {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; padding-right: 0; }
.fact:not(:first-child) { padding-left: 24px; }
.fact__num {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fact__label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- branches ---------- */
.section--branches { background: var(--bg); }
.branches__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.branch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color .45s var(--ease), color .45s var(--ease);
  overflow: hidden;
}
.branch:hover { background: var(--fg); color: var(--bg); }
.branch:hover .branch__desc,
.branch:hover .branch__index { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.branch__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.branch__index {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  transition: color .45s var(--ease);
}
.branch__arrow {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .35;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.branch__arrow svg { width: 13px; height: 13px; }
.branch:hover .branch__arrow { opacity: 1; transform: rotate(45deg); }

.branch__name {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.branch__desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 34ch;
  transition: color .45s var(--ease);
}
.branch--wide { grid-column: span 2; min-height: 180px; }
.branch--wide .branch__name { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ---------- path / timeline ---------- */
.path__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.timeline {
  border-top: 1px solid var(--line);
}
.tl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.tl__year {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  padding-top: 3px;
}
.tl__text { font-size: 15px; }
.tl__text small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact__big {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 16ch;
}
.contact__big a {
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.contact__big a:hover { border-color: var(--fg); }

.contact__list { border-top: 1px solid var(--line); }
.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact__row span:first-child {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__row a { transition: opacity .25s var(--ease); }
.contact__row a:hover { opacity: .55; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.footer__brand img {
  width: 24px; height: 24px; object-fit: contain;
}
[data-theme="dark"] .footer__brand img { filter: invert(1); }
.footer__brand b { font-weight: 600; letter-spacing: .1em; font-size: 12px; }
.footer__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about__grid, .path__grid, .contact { grid-template-columns: 1fr; }
  .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .branches { grid-template-columns: 1fr; }
  .branch--wide { grid-column: span 1; }
}

@media (max-width: 720px) {
  .header__inner { height: 64px; }
  .hero { padding-top: 64px; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    width: 100%;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--fg);
  }
  .nav a::after { display: none; }
  .burger { display: grid; }

  .facts { grid-template-columns: 1fr; }
  .fact, .fact:not(:first-child) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }
  .fact:last-child { border-bottom: 0; }
  .fact__label { margin-top: 0; }

  .hero h1 { letter-spacing: -0.045em; }
  .tl { grid-template-columns: 62px 1fr; }
}

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