:root {
  --green: #16301f;
  --green-2: #234a31;
  --leaf: #8fb486;
  --lime: #c9dc8a;
  --cream: #f4f1e8;
  --paper: #fbfaf6;
  --clay: #c8673c;
  --ink: #1a1f1b;
  --muted: #5d665f;
  --line: #e2ddd0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --leaf-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M30 10c22 18 22 46 0 64C8 56 8 28 30 10z'/%3E%3Cpath d='M30 14v58'/%3E%3Cpath d='M90 50c22 18 22 46 0 64-22-18-22-46 0-64z'/%3E%3Cpath d='M90 54v58'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: 1.02; margin: 0; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: var(--cream);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .4s var(--ease); }
.top.scrolled { background: rgba(251, 250, 246, .88); backdrop-filter: blur(14px); color: var(--green); box-shadow: 0 1px 0 var(--line); }
.top.scrolled .wrap { height: 62px; }
.logo { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; letter-spacing: .16em; text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; opacity: .8; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid currentColor; border-radius: 20px; padding: 3px 11px; opacity: .8; }
.tel { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Media slot (image with graceful fallback) ---------- */
.media {
  position: relative; overflow: hidden; margin: 0;
  background: var(--leaf-svg), linear-gradient(140deg, var(--green-2), var(--green));
}
.media[data-tone="clay"] { background: var(--leaf-svg), linear-gradient(140deg, #d98a5f, #8e4425); }
.media[data-tone="leaf"] { background: var(--leaf-svg), linear-gradient(140deg, #6f9a67, #2c5236); }
.media[data-tone="sand"] { background: var(--leaf-svg), linear-gradient(140deg, #cdb98f, #7d6a45); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--green); }
.hero .media { position: absolute; inset: 0; background: radial-gradient(circle at 78% 30%, rgba(143, 180, 134, .35), transparent 45%), radial-gradient(circle at 60% 90%, rgba(200, 103, 60, .22), transparent 40%), var(--green); }
.hero .media img { animation: kenburns 24s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 24, 15, .82) 0%, rgba(10, 24, 15, .35) 60%, rgba(10, 24, 15, .15)), linear-gradient(0deg, rgba(10, 24, 15, .7), transparent 45%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 110px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; color: var(--lime); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s ease-in-out infinite; }
.hero h1 { font-size: clamp(46px, 7vw, 100px); max-width: 12ch; letter-spacing: -.01em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
.hero h1 em { font-style: italic; color: var(--lime); }
.lead { font-size: 19px; max-width: 44ch; margin: 28px 0 38px; color: #dfe7da; opacity: 0; animation: fade 1s var(--ease) .9s forwards; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fade 1s var(--ease) 1.1s forwards; }
.scroll-hint { position: absolute; right: 24px; bottom: 36px; z-index: 2; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #cfd9ca; display: flex; align-items: center; gap: 12px; }
.scroll-hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--lime), transparent); animation: drip 2.2s ease-in-out infinite; }

/* floating leaves */
.leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.leaves svg { position: absolute; fill: var(--leaf); opacity: .22; animation: sway 9s ease-in-out infinite; transform-origin: 50% 100%; }
.leaves svg:nth-child(1) { width: 180px; right: 8%; top: 14%; animation-duration: 11s; }
.leaves svg:nth-child(2) { width: 110px; right: 26%; top: 58%; animation-delay: -3s; opacity: .16; }
.leaves svg:nth-child(3) { width: 70px; right: 4%; top: 64%; animation-delay: -6s; fill: var(--clay); opacity: .3; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 50px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid currentColor; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), transform .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: var(--green); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--lime); border-color: var(--lime); color: var(--green); }
.btn-main::before { background: #fff; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Marquee ---------- */
.marquee { background: var(--lime); color: var(--green); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0, 0, 0, .06); }
.marquee .track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: "Cormorant Garamond", serif; font-size: clamp(26px, 3vw, 40px); font-weight: 600; padding-right: 48px; white-space: nowrap; }
.marquee span::after { content: "✿"; font-size: .6em; margin-left: 48px; color: var(--clay); vertical-align: middle; }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
section[id] { scroll-margin-top: 62px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
h2 { font-size: clamp(40px, 5.6vw, 76px); color: var(--green); }
h2 em { font-style: italic; color: var(--clay); }
.intro { color: var(--muted); max-width: 46ch; margin: 0; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 18px; }
.tile { position: relative; border-radius: 26px; overflow: hidden; color: var(--cream); text-decoration: none; isolation: isolate; }
.tile .media { position: absolute; inset: 0; z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 24, 15, .78), rgba(10, 24, 15, 0) 62%); }
.tile .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.tile h3 { font-size: clamp(28px, 2.6vw, 38px); }
.tile p { margin: 8px 0 0; font-size: 15px; color: #dde5d8; max-width: 34ch; max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.tile .num { position: absolute; top: 22px; left: 26px; font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--lime); }
.tile:hover .media img { transform: scale(1.08); }
.tile:hover p { max-height: 120px; opacity: 1; }
.t1 { grid-column: span 2; grid-row: span 2; }
.t2 { grid-column: span 2; }
.t5 { grid-column: span 2; }

/* workshop banner */
.banner { position: relative; min-height: 78vh; display: flex; align-items: center; color: var(--cream); overflow: hidden; padding: 0; }
.banner .media { position: absolute; inset: -12% 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 24, 15, .85), rgba(10, 24, 15, .25)); }
.banner .wrap { position: relative; z-index: 2; }
.banner h2 { color: var(--cream); max-width: 12ch; }
.banner h2 em { color: var(--lime); }
.banner p { max-width: 44ch; font-size: 19px; color: #dfe7da; margin: 24px 0 36px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 32px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 32px; }
.step:last-child { border-right: 0; }
.step .n { font-family: "Cormorant Garamond", serif; font-size: 88px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--clay); display: block; margin-bottom: 18px; transition: color .5s var(--ease); }
.step:hover .n { color: var(--clay); }
.step h3 { font-size: 32px; color: var(--green); margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* contacts */
.contacts { background: var(--green); color: var(--cream); border-radius: 40px 40px 0 0; }
.contacts .grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: stretch; }
.contacts h2 { color: var(--cream); }
.contacts h2 em { color: var(--lime); }
.info dl { margin: 32px 0 0; }
.info dt { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--leaf); margin-top: 26px; }
.info dd { margin: 6px 0 0; font-size: 21px; font-weight: 600; }
.info dd a { text-decoration: none; }
.info dd a:hover { color: var(--lime); }
.info .actions { opacity: 1; animation: none; margin-top: 40px; }
.map { width: 100%; height: 100%; min-height: 460px; border: 0; border-radius: 26px; filter: saturate(.85); }

footer { background: var(--green); color: #a9b8a7; font-size: 14px; padding: 28px 0 32px; border-top: 1px solid rgba(255, 255, 255, .08); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* mobile CTA */
.dock { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tile.reveal .media img { transform: scale(1.18); }
.js .tile.reveal.in .media img { transform: scale(1); }
.js .tile.reveal.in:hover .media img { transform: scale(1.08); }

/* ---------- Keyframes ---------- */
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .tel { margin-left: auto; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .t1 { grid-column: span 2; grid-row: span 1; }
  .tile p { max-height: none; opacity: 1; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 32px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contacts .grid { grid-template-columns: 1fr; gap: 40px; }
  .map { min-height: 340px; }
  section { padding: 84px 0; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .top .tel { display: none; }
  .lang { margin-left: auto; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .t1, .t2, .t5 { grid-column: auto; }
  .tile p { display: none; }
  .hero .wrap { padding-bottom: 120px; }
  .leaves svg:nth-child(1) { width: 120px; top: 10%; }
  body { padding-bottom: 76px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; padding: 8px; border-radius: 40px; background: rgba(22, 48, 31, .92); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  .dock a { text-align: center; padding: 13px 0; border-radius: 30px; font-weight: 700; text-decoration: none; color: var(--cream); font-size: 15px; }
  .dock a:first-child { background: var(--lime); color: var(--green); }
}

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