:root {
  --rust: #B12D04;
  --rust-deep: #8A2203;
  --ink: #111111;
  --ink-soft: #555550;
  --line: #E8E5DE;
  --cream: #FAF8F4;
  --white: #FFFFFF;

  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .field-box--link { cursor: none; }
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 1.5px solid var(--rust);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  mix-blend-mode: normal;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.is-active {
  width: 44px; height: 44px;
  background: rgba(177,45,4,0.08);
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 20px -16px rgba(0,0,0,0.15); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__brand { font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: 0.02em; }
.topbar__tag { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; margin: 0; }
.btn-outline {
  border: 1px solid var(--ink);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
}
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0) scale(0.97); }

.btn-solid {
  display: block;
  text-align: center;
  background: var(--rust);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  border-radius: 6px;
  margin-top: 14px;
  transition: background 0.25s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.btn-solid:hover { background: var(--rust-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(177,45,4,0.5); }
.btn-solid:active { transform: translateY(0) scale(0.98); }

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 130px var(--gutter) 0;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  overflow: hidden;
}
.hero__headline .reveal-line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.8s ease;
}
.hero__headline.is-visible .reveal-line:nth-child(1) { transition-delay: 0.05s; }
.hero__headline.is-visible .reveal-line:nth-child(2) { transition-delay: 0.18s; }
.hero__headline.is-visible .reveal-line:nth-child(3) { transition-delay: 0.31s; }
.hero__headline.is-visible .reveal-line { transform: translateY(0); opacity: 1; }

.hero__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.hero__banner.is-visible { opacity: 1; transform: translateY(0); }
.hero__banner img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.16,1,0.3,1);
}
.hero__banner:hover img { transform: scale(1.0); }
.hero__banner-card {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--rust);
  padding: 18px 22px;
  min-width: 170px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.hero__banner:hover .hero__banner-card { transform: translateY(-6px); }
.hero__banner-card .num { display: block; font-family: var(--font-display); font-size: 32px; color: var(--white); line-height: 1; }
.hero__banner-card .lbl { display: block; font-size: 11px; color: #f3d3c6; margin-top: 6px; line-height: 1.4; }

.block { max-width: var(--container); margin: 0 auto; padding: 100px var(--gutter); }
.block--soft { 
  background: var(--cream); 
  max-width: none; 
  width: 100vw; 
  position: relative; 
  left: 50%; 
  right: 50%; 
  margin-left: -50vw; 
  margin-right: -50vw; 
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 0.9s ease; }
.reveal-fade.is-visible { opacity: 1; }

.block__head { margin-bottom: 44px; }
.block__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  letter-spacing: -0.01em;
}
.block__sub { font-size: 15px; color: var(--ink-soft); margin: 8px 0 0; }

.about__grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.about__photo { margin: 0; overflow: hidden; }
.about__photo img { width: 100%; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.about__photo:hover img { transform: scale(1.05); }
.about__copy p { font-size: 15.5px; color: #333; margin: 0 0 16px; max-width: 620px; }

.facts-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts-cell { padding: 20px 16px; border-right: 1px solid var(--line); transition: background 0.25s ease; }
.facts-cell:last-child { border-right: none; }
.facts-cell:hover { background: var(--cream); }
.facts-label { display: block; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.facts-value { display: block; font-size: 14.5px; font-weight: 600; margin-top: 6px; }

.tools { margin-top: 48px; }
.tools__label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 20px; }
.tools__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tools__group-title { display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.tools__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 12px 6px 8px;
  font-size: 12.5px; color: #333;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.pill:hover { border-color: var(--rust); background: var(--cream); transform: translateY(-2px); }
.pill svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--rust); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-tile { background: var(--cream); padding: 36px; transition: background 0.3s ease, transform 0.3s ease; }
.skill-tile:hover { background: var(--white); transform: translateY(-2px); }
.skill-tile__no { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--rust); }
.skill-tile h3 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 12px 0 8px; }
.skill-tile p { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 340px; }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 56px; }
.stat-cell { display: flex; flex-direction: column; }
.num { font-family: var(--font-display); font-size: clamp(30px,4vw,42px); color: var(--rust); line-height: 1; }
.lbl { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.4; }

.case { padding: 56px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: none; padding-top: 0; }
.case__tag { font-size: 12px; color: var(--rust); font-weight: 700; letter-spacing: 0.02em; }
.case__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(22px,2.6vw,30px); margin: 10px 0 16px; max-width: 780px; }
.case__text { font-size: 15px; color: #333; max-width: 760px; margin: 0 0 32px; }
.case__sub-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 36px 0 16px; }
.case__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--rust);
  margin: 0 0 28px; padding-bottom: 2px;
  border-bottom: 1px solid var(--rust);
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.case__link:hover { gap: 10px; }

.strip { display: flex; align-items: flex-end; gap: 14px; }
.strip__item {
  flex: 1; margin: 0; min-width: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.strip__item img, .strip__item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.strip__item.h-sm { height: 200px; }
.strip__item.h-md { height: 280px; }
.strip__item.h-lg { height: 360px; }
.strip__item.h-scroll { height: 480px; }
.strip--email { align-items: stretch; }
.strip__item:hover { transform: translateY(-8px); box-shadow: 0 24px 40px -20px rgba(0,0,0,0.35); z-index: 2; }
.strip__item figcaption {
  font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 10px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.strip__item:hover figcaption { opacity: 1; transform: translateY(0); }

.strip--phone .strip__item.h-md { height: 420px; }
.strip--phone .strip__item.h-lg { height: 520px; }
.strip--phone .strip__item.h-sm { height: 380px; }
.strip--phone .strip__item { border-radius: 4px; overflow: hidden; }

.closer { max-width: var(--container); margin: 0 auto; padding: 100px var(--gutter); }
.closer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.closer__text h2 { font-family: var(--font-display); font-size: clamp(32px,4.5vw,52px); margin: 0 0 16px; }
.closer__text p { font-size: 16px; color: var(--ink-soft); max-width: 340px; margin: 0; }
.closer__box label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 6px; }
.field-box {
  display: block; border: 1px solid #ccc; padding: 13px 16px; font-size: 14px;
  margin-bottom: 20px; border-radius: 4px; transition: border-color 0.25s ease, background 0.25s ease;
}
.field-box--link:hover { border-color: var(--rust); background: var(--cream); color: var(--rust); }
.field-box--muted { background: #EBEBEB; border-color: #EBEBEB; color: #333; }
.field-box--input {
  width: 100%; font-family: var(--font-body); background: var(--white);
  outline: none;
}
.field-box--input:focus { border-color: var(--rust); }
.field-box--textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.closer__status { font-size: 13px; margin: 12px 0 0; min-height: 18px; }
.closer__status.is-success { color: #2f7a3d; }
.closer__status.is-error { color: var(--rust); }
.closer__fallback { font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 0; }
.closer__fallback a { color: var(--rust); text-decoration: underline; }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; }

.footer {
  background: var(--rust);
  color: var(--white);
  padding: 40px var(--gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer__col p { margin: 0 0 4px; font-size: 13px; color: #f3d3c6; }
.footer__brand { font-weight: 700; color: var(--white) !important; font-size: 14px; }
.footer__label { color: var(--white) !important; font-weight: 600; }
.footer__col--center { text-align: center; }
.footer__col--right { text-align: right; }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero__banner { aspect-ratio: 4/5; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 200px; }
  .facts-row { grid-template-columns: repeat(2,1fr); }
  .facts-cell:nth-child(2) { border-right: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .tools__grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .closer__grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar__tag { display: none; }
  .strip { flex-wrap: wrap; }
  .strip__item { flex: 1 1 calc(50% - 7px); }
  .strip__item.h-sm, .strip__item.h-md, .strip__item.h-lg { height: 220px; }
  .footer { flex-direction: column; text-align: left; }
  .footer__col--center, .footer__col--right { text-align: left; }
}

@media (max-width: 560px) {
  .strip__item { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-fade, .hero__headline .reveal-line, .hero__banner { transition: none !important; opacity: 1 !important; transform: none !important; }
}
