/* ==========================================================================
   Koru 1923 · Meydan Ofis — teaser site
   Palette: ink / gold / warm off-white. Type: Cormorant Garamond + Manrope.
   ========================================================================== */
:root {
  --ink: #0B0C0F;
  --ink-2: #111318;
  --ink-3: #171A20;
  --gold: #D7B56D;
  --gold-2: #E9D29A;
  --gold-3: #A98A46;
  --cream: #F3EFE6;
  --muted: #A29D93;
  --muted-2: #6E6A63;
  --line: rgba(215, 181, 109, 0.22);
  --line-soft: rgba(243, 239, 230, 0.08);
  --danger: #E3877A;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(215, 181, 109, .35); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 100; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { left: 8px; }

/* film grain — subtle texture, sits above everything but is click-through */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); }
}

/* ---------- typography ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.005em;
  margin: 0 0 20px; color: var(--cream);
}
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; margin: 0 0 14px; line-height: 1.15; }
.lede { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--muted); max-width: 60ch; margin: 0; font-weight: 300; }
.muted { color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(215,181,109,.4); cursor: pointer; }
.link:hover { text-decoration-color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  --pad: 16px 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); min-height: 52px;
  border-radius: 2px; border: 1px solid transparent;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 10px 30px -12px rgba(215,181,109,.55); }
.btn--primary:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(215,181,109,.06); }
.btn--sm { --pad: 10px 18px; min-height: 40px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: rgba(11,12,15,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px var(--gutter); border-color: var(--line-soft); }
.topbar__brand img { width: 128px; height: auto; opacity: .92; }
.topbar__nav { display: flex; align-items: center; gap: 26px; }
.topbar__nav > a:not(.btn) { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.topbar__nav > a:not(.btn):hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: calc(72px + 6vh) var(--gutter) 90px; text-align: center; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; left: 50%; bottom: -35vh; width: 120vw; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(215,181,109,.16) 0%, rgba(215,181,109,.05) 35%, transparent 65%);
  filter: blur(10px);
}
.hero__parcel {
  position: absolute; left: 50%; top: 50%; width: min(120vmin, 1100px); height: min(120vmin, 1100px);
  transform: translate(-50%, -50%); opacity: .085;
}
.hero__parcel path {
  fill: none; stroke: var(--gold); stroke-width: .28; vector-effect: non-scaling-stroke;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 6s var(--ease) .3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lines span {
  position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--line-soft) 30%, var(--line-soft) 70%, transparent);
}
.hero__lines span:nth-child(1) { left: 12%; } .hero__lines span:nth-child(2) { display: none; } .hero__lines span:nth-child(3) { left: 88%; }

.hero__inner { max-width: 820px; margin-inline: auto; }
.hero__logo { margin: 0 auto 32px; width: clamp(200px, 26vw, 300px); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 14px 40px rgba(215,181,109,.22)); }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 3.05rem); line-height: 1.14; letter-spacing: -.005em;
  margin: 0 auto 18px; max-width: 26ch; color: var(--cream);
}
.hero__sub { margin: 0 auto 40px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); font-weight: 300; letter-spacing: .18em; text-transform: uppercase; }
.hero__logo + .sr-only + .hero__sub { margin-top: 6px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 1px; height: 56px; opacity: .7; }
.scroll-cue__line { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- location ---------- */
.location { padding: clamp(72px, 11vw, 130px) 0 0; border-top: 1px solid var(--line-soft); }
.location__head { margin-bottom: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; }
.location__head .eyebrow { grid-column: 1; }
.location__head .h2 { grid-column: 1; margin-bottom: 0; }
.location__head .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.location__head .facts { grid-column: 1 / -1; margin-top: 18px; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.facts li { position: relative; padding-left: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }

.map-wrap {
  position: relative; height: clamp(440px, 72vh, 760px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2); overflow: hidden;
}
#map, #map.mapboxgl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .mapboxgl-ctrl-logo, .map .mapboxgl-ctrl-attrib { opacity: .55; }
.map .mapboxgl-ctrl-attrib a { color: #bbb; }
.map .mapboxgl-canvas { outline: none; }
.map-wrap::after {
  /* vignette so the dark map blends with the page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(11,12,15,.55) 100%);
}

/* fallback (shown when no Mapbox token / load error) */
.map__fallback { position: absolute; inset: 0; display: none; place-items: center; background: radial-gradient(ellipse at 50% 60%, #171a21 0%, var(--ink-2) 70%); }
.map__fallback.is-visible { display: grid; }
.map__fallback-parcel { position: absolute; left: 50%; top: 50%; width: min(70vh, 80vw); height: min(70vh, 80vw); transform: translate(-50%, -50%); opacity: .55; }
.map__fallback-parcel path { fill: rgba(215,181,109,.08); stroke: var(--gold); stroke-width: .5; vector-effect: non-scaling-stroke; }
.map__fallback-text { position: relative; text-align: center; padding: 20px; }
.map__fallback-text img { margin: 0 auto 16px; width: 110px; filter: drop-shadow(0 10px 30px rgba(215,181,109,.25)); }
.map__fallback-text p { margin: 4px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

.map__badge {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 2;
  background: rgba(11,12,15,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); padding: 16px 20px; max-width: min(320px, calc(100% - 2 * var(--gutter)));
}
.map__badge-title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; margin-bottom: 4px; }
.map__badge-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map__badge-link { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.map__badge-link:hover { color: var(--gold-2); }

/* mapbox markers */
.k-marker { position: relative; width: 0; height: 0; }
.k-marker__stem { position: absolute; left: -0.5px; bottom: 0; width: 1px; height: 64px; background: linear-gradient(to top, transparent, var(--gold)); }
.k-marker__plate {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%);
  width: 92px; height: 92px; padding: 12px; background: rgba(11,12,15,.9); border: 1px solid var(--gold);
  display: grid; place-items: center; box-shadow: 0 20px 50px -20px rgba(215,181,109,.6), 0 0 0 1px rgba(215,181,109,.1);
  animation: floaty 4.5s ease-in-out infinite;
}
.k-marker__plate img { width: 100%; height: auto; }
.k-marker__pulse { position: absolute; left: 50%; bottom: 0; width: 18px; height: 18px; margin-left: -9px; margin-bottom: -9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(215,181,109,.55); animation: pulse 2.4s ease-out infinite; }
.k-marker__pulse::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(215,181,109,.5); animation: ring 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215,181,109,.5); } 70% { box-shadow: 0 0 0 26px rgba(215,181,109,0); } 100% { box-shadow: 0 0 0 0 rgba(215,181,109,0); } }
@keyframes ring { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

.m-marker { position: relative; width: 30px; height: 30px; }
.m-marker__badge { width: 30px; height: 30px; border-radius: 6px; background: var(--ink); border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: 0; box-shadow: 0 6px 20px -8px rgba(0,0,0,.8); }
.m-marker__label { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); background: rgba(11,12,15,.75); padding: 4px 8px; border: 1px solid var(--line-soft); white-space: nowrap; }

/* ---------- lead form ---------- */
.lead { padding: clamp(72px, 11vw, 130px) 0; }
.lead__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.lead__copy { position: sticky; top: 110px; }
.lead__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.lead__list li { position: relative; padding-left: 26px; color: var(--cream); font-size: 15px; }
.lead__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--gold); }

.form { position: relative; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.field label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field .req { color: var(--gold); }
.field .opt { text-transform: none; letter-spacing: .02em; color: var(--muted-2); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(243,239,230,.22);
  color: var(--cream); padding: 10px 0 12px; font-size: 17px; font-family: var(--font-body); font-weight: 400;
  border-radius: 0; transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(162,157,147,.55); }
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--cream); -webkit-box-shadow: 0 0 0 1000px var(--ink) inset; transition: background-color 5000s; }
.field.has-error input { border-bottom-color: var(--danger); }
.field__error { margin: 8px 0 0; min-height: 0; font-size: 12.5px; color: var(--danger); display: none; }
.field.has-error .field__error { display: block; }
.field__unit { position: relative; }
.field__unit span { position: absolute; right: 0; top: 10px; color: var(--muted); font-size: 15px; }
.field__unit input { padding-right: 36px; }
.hp { position: absolute; left: -9999px; top: 0; opacity: 0; height: 0; overflow: hidden; }

.field--check { margin-top: 34px; }
.field .check, .check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; font-weight: 400; margin: 0; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border: 1px solid rgba(243,239,230,.35); position: relative; transition: border-color .3s, background .3s; }
.check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.field--check.has-error .check__box { border-color: var(--danger); }

.form__actions { margin-top: 34px; }
.form__status { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.form__status.is-error { color: var(--danger); }
.form__success { text-align: center; padding: 40px 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(215,181,109,.06), transparent); }
.form__success-icon { width: 64px; height: 64px; margin: 0 auto 18px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form__success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .8s var(--ease) .2s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.form__success h3 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 10px; font-weight: 500; }
.form__success p { margin: 0; color: var(--muted); }
.form.is-done .form__grid, .form.is-done .field--check, .form.is-done .form__actions { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 54px 0 40px; background: linear-gradient(180deg, var(--ink), #08090B); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__label { display: block; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer__dev img { width: 170px; }
.footer__meta { text-align: right; font-size: 13px; color: var(--muted); }
.footer__meta p { margin: 0 0 6px; }
.footer__links { display: flex; gap: 18px; justify-content: flex-end; flex-wrap: wrap; }
.footer__links a, .footer__links .link { color: var(--muted); text-decoration: none; font-size: 12.5px; }
.footer__links a:hover, .footer__links .link:hover { color: var(--gold); }
.footer__copy { color: var(--muted-2); font-size: 12px; margin-top: 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.72); backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(680px, 100%); max-height: min(80vh, 760px); overflow: auto; background: var(--ink-2); border: 1px solid var(--line); padding: 36px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 8px; }
.modal__close:hover { color: var(--cream); }
.modal__body { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .location__head { display: block; }
  .location__head .h2 { margin-bottom: 20px; }
  .location__head .facts { margin-top: 30px; }
  .lead__grid { grid-template-columns: 1fr; }
  .lead__copy { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar { padding: 14px var(--gutter); }
  .topbar__brand img { width: 104px; }
  .topbar__nav { gap: 16px; }
  .topbar__nav > a:not(.btn) { display: none; }
  .hero { padding-top: calc(64px + 4vh); padding-bottom: 80px; min-height: 100svh; }
  .hero__logo { width: min(64vw, 260px); margin-bottom: 30px; }
  .hero__title { font-size: clamp(1.55rem, 7vw, 2rem); max-width: 22ch; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .map-wrap { height: clamp(380px, 68vh, 560px); }
  .map__badge { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 12px 14px; }
  .form__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
  .footer__links { justify-content: flex-start; }
  .modal__panel { padding: 26px 20px; }
}
@media (hover: none) { .btn--primary:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scroll-cue__line, .k-marker__plate, .k-marker__pulse, .hero__parcel path { animation: none !important; }
  .hero__parcel path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
