:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #111312;
  --muted: #5d625f;
  --line: rgba(17, 19, 18, 0.1);
  --accent: #2f8f6f;
  --mind-a: #3fa883;
  --mind-b: #1f6f55;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f0e;
    --surface: #171918;
    --ink: #f1f2ef;
    --muted: #9ba19d;
    --line: rgba(241, 242, 239, 0.1);
    --accent: #6cc9a3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 18px; height: 18px; border-radius: 6px; background: var(--ink); position: relative; }
.mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
nav { display: flex; align-items: center; gap: 6px; }
nav a { text-decoration: none; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color 0.2s; }
nav a:hover { color: var(--ink); }
nav .nav-cta { color: var(--ink); border: 1px solid var(--line); }
nav .nav-cta:hover { background: var(--surface); }

/* Hero */
.hero { padding-top: clamp(72px, 14vw, 168px); padding-bottom: clamp(72px, 10vw, 128px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 14px; color: var(--muted); letter-spacing: 0.01em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
h1 {
  margin: 0; text-wrap: balance;
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 0.98; font-weight: 500; letter-spacing: -0.045em;
}
h1 em { letter-spacing: -0.02em; }
.lede { margin: 32px 0 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.86; }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); }
h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

/* Project */
.project {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
}
.project-visual {
  position: relative; min-height: 440px;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.22), transparent 55%),
    linear-gradient(160deg, var(--mind-a), var(--mind-b));
  overflow: hidden;
}
.project-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.phone {
  position: relative; width: 200px; height: 200px; border-radius: 48px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
  transition: transform 0.6s var(--ease);
}
.project:hover .phone { transform: translateY(-6px); }
.phone img { width: 132px; height: 132px; border-radius: 30px; image-rendering: pixelated; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.project-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.project-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.project-meta span + span::before { content: "·"; margin-right: 14px; opacity: 0.6; }
.project h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; }
.project-body p { color: var(--muted); margin: 16px 0 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.project-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: auto; padding-top: 32px; }
.link-arrow { text-decoration: none; font-weight: 500; font-size: 15px; }
.link-arrow span { display: inline-block; transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.upcoming { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.placeholder {
  position: relative; overflow: hidden;
  padding: 32px; border-radius: 28px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  min-height: 220px;
}
.placeholder h3 { font-size: 24px; }
.placeholder p { color: var(--muted); margin: 10px 0 0; max-width: 28em; }
.shimmer {
  position: absolute; left: 32px; right: 32px; bottom: 32px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--accent) 45%, transparent) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 32px 32px 32px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.num { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); margin-bottom: 18px; }
.service h3 { font-size: 22px; }
.service p { color: var(--muted); margin: 10px 0 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about-body p { margin: 0 0 20px; color: var(--muted); max-width: 36em; }
.about-body .big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }

/* Contact */
.contact { padding-bottom: clamp(80px, 12vw, 160px); }
.contact .eyebrow { margin-bottom: 20px; }
.contact-title { font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; max-width: 18ch; text-wrap: balance; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.02em; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Reveal: plain fade + small rise, no bounce */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.06s; }
.hero .reveal:nth-child(3) { transition-delay: 0.12s; }
.hero .reveal:nth-child(4) { transition-delay: 0.18s; }
.hero .reveal:nth-child(5) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shimmer { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project-visual { min-height: 300px; }
  .upcoming, .services, .about { grid-template-columns: 1fr; }
  .about { gap: 20px; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  nav a:not(.nav-cta) { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .placeholder { padding: 24px; }
  .shimmer { left: 24px; right: 24px; bottom: 24px; }
}

.contact-more { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 16px; }
.contact-more a { text-decoration: none; }
.contact-more a:hover { color: var(--ink); }

.hero-sub { margin: 14px 0 0; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; color: var(--muted); }
