/* ============================================================
   SEKIGO — modern rebuild
   Palette: black / white / greyscale / Teton Blue (Behr N490-4)
   ============================================================ */

:root {
  --teton:        #4f86c6;   /* Behr N490-4 Teton Blue */
  --teton-dark:   #3d6da3;
  --teton-tint:   #eaf1f9;
  --ink:          #0d0f11;   /* near-black */
  --char:         #16191d;   /* charcoal surface */
  --g900:         #1a1d21;
  --g700:         #3d434a;
  --g500:         #6b7280;
  --g300:         #c6cad0;
  --g150:         #eceef0;
  --g050:         #f6f7f8;
  --white:        #ffffff;

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(13,15,17,.06), 0 8px 24px rgba(13,15,17,.08);
  --shadow-2: 0 2px 4px rgba(13,15,17,.08), 0 16px 48px rgba(13,15,17,.14);
  --nav-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teton-dark); text-decoration: none; }
a:hover { color: var(--teton); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--flush-top { padding-top: 0; }
.section--tint  { background: var(--g050); }
.section--dark  { background: var(--ink); color: var(--g300); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teton-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--teton); }
.section--dark .eyebrow { color: var(--teton); }
.lede { font-size: 1.13rem; color: var(--g700); max-width: 62ch; }
.section--dark .lede { color: var(--g300); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--teton); color: #fff; }
.btn--primary:hover { background: var(--teton-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--dark { border-color: var(--g300); color: var(--ink); }
.btn--dark:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(13,15,17,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s var(--ease);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 500; letter-spacing: .02em;
  color: var(--g300);
  padding: 6px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--teton); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; padding: 11px 30px; min-width: 132px; font-size: .92rem; letter-spacing: .02em; }

/* projects dropdown */
.nav__drop { position: relative; }
.nav__drop-toggle { display: inline-flex; align-items: center; gap: 7px; }
.nav__drop-toggle svg { transition: transform .25s var(--ease); }
.nav__drop:hover .nav__drop-toggle svg,
.nav__drop:focus-within .nav__drop-toggle svg { transform: rotate(180deg); }
.nav__drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 216px; margin: 0; padding: 8px; list-style: none;
  background: rgba(16,19,23,.97);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__drop:hover .nav__drop-menu,
.nav__drop:focus-within .nav__drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* invisible hover bridge so the menu doesn't close in the gap */
.nav__drop-menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav__drop-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: .92rem; color: var(--g300);
  transition: background .2s, color .2s;
}
.nav__drop-menu a::after { display: none; }
.nav__drop-menu a:hover, .nav__drop-menu a.is-active { background: rgba(79,134,198,.16); color: #fff; }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .3s var(--ease); }
@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(13,15,17,.97); padding: 20px var(--gutter) 28px;
    transform: translateY(-130%); transition: transform .35s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 1.05rem; padding: 10px 0; }
  .nav__cta { margin: 10px 0 0; }
  /* dropdown becomes an inline sub-list on mobile */
  .nav__drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    background: none; border: 0; border-left: 2px solid rgba(255,255,255,.15);
    border-radius: 0; box-shadow: none; padding: 2px 0 6px 14px; margin: 2px 0 4px; min-width: 0;
  }
  .nav__drop-menu::before { display: none; }
  .nav__drop-toggle svg { display: none; }
  .nav__drop-menu a { font-size: .98rem; padding: 9px 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 0 clamp(64px, 10vw, 130px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,17,.55) 0%, rgba(13,15,17,.35) 40%, rgba(13,15,17,.88) 100%);
}
.hero__inner { position: relative; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--teton); }
.hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__brand { position: absolute; top: 0; right: 0; transform: translateY(-100%); opacity: 0; }

/* ---------- projects table ---------- */
.projects { list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
/* 3 cards per row on a 1080p screen (1920px) */
@media (max-width: 1024px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .projects { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--g150);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--teton); }

/* thumbnail slideshow */
.slideshow {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g900);
}
.slideshow img.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.slideshow img.slide.is-active { opacity: 1; }
.slideshow__count {
  position: absolute; left: 14px; bottom: 12px; z-index: 3;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em;
  color: #fff; background: rgba(13,15,17,.6); backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px;
}
.slideshow__dots {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: flex; gap: 6px;
}
.slideshow__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.4); cursor: pointer; transition: .25s;
}
.slideshow__dots button.is-active { background: var(--teton); transform: scale(1.25); }
.project-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card__name { font-size: 1.35rem; margin: 0 0 6px; }
.project-card__name a { color: var(--ink); display: block; }
.project-card__name a:hover { color: var(--teton-dark); }
/* stretched link: whole card is clickable (dots/count sit above via z-index) */
.project-card__name a::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
}
.project-card__meta {
  font-size: .85rem; color: var(--g500); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.status {
  display: inline-block; font-family: var(--font-display);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.status--sold { background: var(--g150); color: var(--g700); }
.status--building { background: var(--teton-tint); color: var(--teton-dark); }
.project-card__link {
  margin-top: auto; font-family: var(--font-display); font-size: .9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; color: var(--teton-dark);
}
.project-card__link svg { transition: transform .25s var(--ease); }
.project-card:hover .project-card__link svg { transform: translateX(5px); }

/* ---------- about / values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--white); border: 1px solid var(--g150); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-1);
}
.section--dark .value-card { background: var(--char); border-color: rgba(255,255,255,.08); box-shadow: none; }
.value-card .num {
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  color: var(--teton); display: block; margin-bottom: 14px;
}
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--g500); font-size: .95rem; margin: 0; }
.section--dark .value-card p { color: var(--g300); }

.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }
.about-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.about-figure .slideshow { aspect-ratio: 3 / 2; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 30px 28px; background: var(--char);
}
.contact-card .label {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--g500); margin-bottom: 10px;
}
.contact-card a, .contact-card .value { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.contact-card a:hover { color: var(--teton); }
.contact-note { color: var(--g500); font-size: .92rem; margin-top: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--g500); padding: 56px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__logo img { height: 28px; }
.footer__tag { font-family: var(--font-display); font-size: .85rem; letter-spacing: .06em; color: var(--g300); }
.footer__copy { width: 100%; margin: 28px 0 0; font-size: .8rem; color: var(--g500); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- project detail pages ---------- */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 100px)) 0 clamp(48px, 6vw, 80px);
  background: var(--ink); color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 85% 20%, rgba(79,134,198,.22), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,17,.66) 0%, rgba(13,15,17,.82) 100%);
}
.page-hero .crumb { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teton); margin-bottom: 14px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--g300); max-width: 60ch; }

.gallery { margin: 0; }
.gallery__stage { position: relative; background: var(--ink); }
.gallery__stage .slideshow { aspect-ratio: 21 / 9; }
@media (max-width: 800px) { .gallery__stage .slideshow { aspect-ratio: 4 / 3; } }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(13,15,17,.55); backdrop-filter: blur(8px); color: #fff;
  transition: .25s var(--ease);
}
.gallery__arrow:hover { background: var(--teton); }
.gallery__arrow--prev { left: 18px; }
.gallery__arrow--next { right: 18px; }
.gallery__thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px var(--gutter);
  background: var(--ink); scrollbar-width: thin;
}
.gallery__thumbs button {
  flex: 0 0 auto; width: 92px; height: 60px; padding: 0; border: 2px solid transparent;
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--g900);
  opacity: .55; transition: .25s var(--ease);
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-active { border-color: var(--teton); opacity: 1; }
.gallery__thumbs button:hover { opacity: 1; }

/* document-style galleries (screenshots / sheets): fit inside, letterbox on dark */
.gallery--contain .slideshow img.slide { object-fit: contain; background: var(--g900); }
.gallery--contain .gallery__thumbs button img { object-fit: contain; background: var(--g900); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--g150); border: 1px solid var(--g150); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.specs > div { background: var(--white); padding: 20px 22px; }
.specs dt { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--g500); margin-bottom: 6px; }
.specs dd { margin: 0; font-weight: 500; }

.floorplan { margin-top: 44px; background: var(--white); border: 1px solid var(--g150); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1); }
.floorplan h3 { margin-bottom: 18px; }
.floorplan img { border: 1px solid var(--g150); border-radius: var(--radius-sm); }

.video-wrap { margin-top: 44px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.video-wrap iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slideshow img.slide { transition: opacity .4s; transform: none !important; }
}

/* ---------- misc ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 6px; }
::selection { background: var(--teton); color: #fff; }
