/* Colors and type follow kay2ventures.com */
:root {
  --ink: #0b1118;
  --ink-2: #101820;
  --ink-3: #182330;
  --body: #243244;
  --muted: #667384;
  --line: #dfe5ea;
  --line-strong: #c8d0d8;
  --page: #fbfaf7;
  --card: #ffffff;
  --accent: #00b8b5;
  --accent-btn: #54d7d0;
  --accent-dark: #006b70;
  --accent-light: #8ee7df;
  --gold: #d6b25e;
  --on-dark: #fbfaf7;
  --on-dark-muted: rgba(251, 250, 247, .74);
  --radius: 8px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 64px);
  --serif: "Fraunces", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--body); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-btn); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(251, 250, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { height: 36px; width: auto; }
.top nav { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 520; padding: 7px 12px; border-radius: 6px; white-space: nowrap; }
.top nav a:hover { color: var(--ink); background: rgba(11,17,24,.05); }
.top nav .nav-cta { color: var(--ink); background: var(--accent-btn); margin-left: 6px; }
.top nav .nav-cta:hover { color: var(--ink); background: var(--accent-light); }
@media (max-width: 860px) { .top nav a:not(.nav-cta) { display: none; } }

/* Eyebrows and badges */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12.8px; font-weight: 620; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow.light { color: var(--accent-light); }
.eyebrow .num { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; vertical-align: middle; font: 620 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6b5317; background: rgba(214, 178, 94, .22); border: 1px solid rgba(214, 178, 94, .55); padding: 6px 9px; border-radius: 999px; position: relative; top: -.35em; margin-left: 6px; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%; background: radial-gradient(closest-side, rgba(0,184,181,.18), transparent); pointer-events: none; }
.hero h1 { color: var(--on-dark); font: 720 clamp(2.6rem, 6.4vw, 5rem)/1.02 var(--serif); letter-spacing: -.02em; max-width: 14ch; font-variation-settings: "SOFT" 30; }
.intro { max-width: 62ch; margin-top: 28px; color: var(--on-dark-muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; position: relative; z-index: 1; }
.index-card { background: var(--ink-2); padding: 22px 22px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: background .25s; }
.index-card:hover { background: var(--ink-3); }
.index-num { color: var(--gold); font-size: 13px; font-weight: 620; letter-spacing: .1em; }
.index-name { color: var(--on-dark); font: 620 1.35rem/1.2 var(--serif); }
.index-tag { color: var(--on-dark-muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 900px) { .index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .index { grid-template-columns: 1fr; } }

/* Project sections */
.projects { padding-top: clamp(24px, 4vw, 48px); }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head shot" "body shot"; column-gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.project.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "shot head" "shot body"; }
.project:last-child { border-bottom: 0; }
.project-head { grid-area: head; }
.project h2 { font: 720 clamp(2.1rem, 4vw, 3.05rem)/1.05 var(--serif); letter-spacing: -.015em; }
.tagline { font: 500 clamp(1.15rem, 1.8vw, 1.4rem)/1.35 var(--serif); color: var(--body); margin-top: 14px; }
.shot { grid-area: shot; margin: 0; position: sticky; top: 96px; }
.shot img { width: 100%; border-radius: var(--radius); box-shadow: 0 22px 70px rgba(11,17,24,.16), 0 0 0 1px rgba(11,17,24,.06); background: var(--card); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.project-body { grid-area: body; margin-top: 32px; display: grid; gap: 28px; }
.block h3 { font: 620 12.8px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.highlights li { position: relative; padding-left: 26px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.callout p { font: 500 1.12rem/1.45 var(--serif); color: var(--ink); }
.project-foot { display: grid; gap: 20px; padding-top: 4px; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-size: 13px; font-weight: 520; color: var(--body); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.button { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-btn); color: var(--ink); font: 620 15px/1 var(--sans); text-decoration: none; padding: 14px 20px; border-radius: 6px; border: 1px solid transparent; transition: background .2s, transform .2s; }
.button:hover { background: var(--accent-light); transform: translateY(-1px); }
.button.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button.ghost:hover { border-color: var(--ink); background: transparent; }
.button.big { font-size: 16px; padding: 16px 24px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .project, .project.flip { grid-template-columns: 1fr; grid-template-areas: "head" "shot" "body"; }
  .shot { position: static; margin-top: 28px; }
}

/* Contact */
.contact { background: var(--ink); color: var(--on-dark-muted); padding: clamp(64px, 9vw, 112px) 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.contact h2 { color: var(--on-dark); font: 720 clamp(1.9rem, 3.6vw, 2.8rem)/1.1 var(--serif); max-width: 20ch; margin-bottom: 16px; }
@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; align-items: start; } .button.big { width: 100%; justify-content: center; word-break: break-all; } }

.foot { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); color: var(--on-dark-muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.foot a { color: var(--on-dark-muted); }
