:root {
  --bg: #f5f0e8;
  --paper: #fffdfa;
  --panel: #fff9f1;
  --text: #1f1a16;
  --muted: #5f5247;
  --accent: #a06f2a;
  --accent-strong: #7a4f15;
  --line: #e2d4c2;
  --shadow: 0 20px 50px rgba(99, 74, 39, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f2eadf, #f8f2ea);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

main section {
  scroll-snap-align: start;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  z-index: 99;
  background: linear-gradient(90deg, #7a4f15, #b88545, #e6bc7a);
  box-shadow: 0 2px 14px rgba(160, 111, 42, 0.4);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #7a4f15;
  pointer-events: none;
  z-index: 120;
  transform: translate(-50%, -50%);
}

canvas#flowCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.3;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(122, 79, 21, 0.06) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  z-index: -2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(122, 79, 21, 0.2);
  background: rgba(252, 248, 241, 0.9);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Syne", Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: #493a2c;
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.hero {
  padding: 5.2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.3rem;
  align-items: stretch;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--accent-strong);
  margin: 0 0 0.9rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

h1 {
  font-family: "Syne", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

.hero h1 {
  background: linear-gradient(95deg, #5a3511 0%, #8b5b1f 40%, #d0a266 52%, #8b5b1f 65%, #5a3511 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-text-shine 7s linear infinite;
}

h2 {
  font-family: "Syne", Arial, sans-serif;
  font-size: clamp(1.55rem, 2.9vw, 2.65rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-copy {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(255, 247, 236, 0.8));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: hero-float 7s ease-in-out infinite;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  top: -70px;
  right: -50px;
  background: radial-gradient(circle, rgba(160, 111, 42, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.btn:hover::before {
  left: 170%;
}

.btn-strong {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 12px 24px rgba(122, 79, 21, 0.28);
}

.btn-soft {
  border: 1px solid var(--line);
  background: #fff;
  color: #3d2e20;
}

.hero-panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #faf4eb, #f4e7d5);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 111, 42, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-panel-label {
  font-weight: 700;
  color: #442f1a;
  margin-bottom: 1rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hero-panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.6rem;
  row-gap: 0.1rem;
  align-items: start;
  border: 1px solid #ddcab2;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  padding: 0.55rem 0.65rem 0.6rem;
  margin: 0;
  transform: translateX(0);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-panel li::before {
  content: attr(data-icon);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  background: linear-gradient(145deg, #f8ebdb, #efdbc2);
  border: 1px solid #dbc4a8;
}

.hero-panel li span {
  display: block;
  font-weight: 700;
  color: #422d19;
}

.hero-panel li small {
  grid-column: 2 / 3;
  display: block;
  color: #6b5847;
  font-size: 0.77rem;
  line-height: 1.4;
}

.hero-panel li:hover {
  transform: translateX(4px);
  border-color: #be9259;
  background: rgba(255, 255, 255, 0.88);
}

.hero-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-gallery figure {
  margin: 0;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(90, 68, 37, 0.15);
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.hero-gallery figure:hover img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f0e2cf;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  gap: 1.8rem;
  white-space: nowrap;
  padding: 0.85rem 0;
  animation: ticker-move 22s linear infinite;
  min-width: 200%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b4328;
}

.section {
  padding: 4.6rem 0;
}

.section-head {
  max-width: 70ch;
  margin-bottom: 1.4rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 10px 30px rgba(104, 79, 44, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c9a26c;
  box-shadow: 0 16px 34px rgba(104, 79, 44, 0.14);
}

.service-image {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.95rem;
  border: 1px solid #ead8c3;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card:hover .service-image {
  transform: translateY(-2px) scale(1.03);
  filter: contrast(1.04) saturate(1.08);
}

.section-story {
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.7), rgba(248, 239, 227, 0.7));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prose {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.visual-break {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.visual-break-inner {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(94, 70, 38, 0.16);
}

.visual-break-inner img {
  width: 100%;
  height: min(48vh, 420px);
  object-fit: cover;
  object-position: center 58%;
  transition: transform 0.8s ease;
}

.visual-break-media {
  animation: visual-drift 12s ease-in-out infinite;
  transform-origin: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-3px);
  border-color: #be9259;
}

.step::after {
  content: "";
  position: absolute;
  left: -30%;
  top: -70%;
  width: 70%;
  height: 230%;
  background: linear-gradient(110deg, transparent, rgba(184, 133, 69, 0.2), transparent);
  transform: rotate(20deg);
  transition: transform 0.7s ease;
}

.step:hover::after {
  transform: translateX(220%) rotate(20deg);
}

.step span {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}

.contact-box {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fcf7f0;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-grid a,
.contact-grid div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  min-height: 94px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-grid a:hover,
.contact-grid div:hover {
  transform: translateY(-3px);
  border-color: #c89f65;
}

.contact-grid a::before,
.contact-grid div::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(122, 79, 21, 0.25), rgba(226, 192, 140, 0.1)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.contact-grid a:hover::before,
.contact-grid div:hover::before {
  opacity: 1;
}

.contact-grid strong {
  color: #3f2c1a;
}

.contact-grid span {
  color: #635242;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 238, 0.92);
  padding: 1.35rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #6b5b4b;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.text-rise {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.7s ease;
  transition-delay: var(--text-delay, 0ms);
}

.text-rise.text-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.service-grid .service-card.in-view:nth-child(1),
.steps .step.in-view:nth-child(1),
.contact-grid .in-view:nth-child(1) {
  transition-delay: 0.04s;
}

.service-grid .service-card.in-view:nth-child(2),
.steps .step.in-view:nth-child(2),
.contact-grid .in-view:nth-child(2) {
  transition-delay: 0.12s;
}

.service-grid .service-card.in-view:nth-child(3),
.steps .step.in-view:nth-child(3),
.contact-grid .in-view:nth-child(3) {
  transition-delay: 0.2s;
}

.service-grid .service-card.in-view:nth-child(4),
.steps .step.in-view:nth-child(4) {
  transition-delay: 0.28s;
}

.parallax-media {
  will-change: transform;
}

@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes hero-text-shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes visual-drift {
  0%,
  100% {
    transform: scale(1.03) translateY(0);
  }
  50% {
    transform: scale(1.07) translateY(-6px);
  }
}

@media (max-width: 980px) {
  html {
    scroll-snap-type: none;
  }

  body {
    cursor: auto;
  }

  .cursor-dot {
    display: none;
  }

  .hero h1 {
    animation-duration: 9s;
  }

  .hero-grid,
  .hero-gallery,
  .service-grid,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .section {
    padding: 3.8rem 0;
  }

  .hero-copy,
  .hero-panel,
  .contact-box,
  .prose {
    padding: 1.3rem;
  }
}
