@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap&font-display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0E0E10;
  --bg-soft: #16161A;
  --bg-card: #17171B;
  --text: #EDEBE7;
  --text-muted: #928E87;
  --text-dim: #6A665F;
  --accent: #D4B483;
  --accent-soft: #B8955A;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 5rem;
  --maxw: 1160px;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-style: italic; }
::selection { background: var(--accent); color: #0E0E10; }

/* ─── Grid backdrop ─── */
.grid-lines {
  position: fixed;
  inset: -80px;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.grid-lines::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, var(--bg) 80%);
}

/* ─── Layout helpers ─── */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem var(--gutter);
}
.section-head { margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#nav.scrolled {
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav-mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: border-color 0.3s, color 0.3s;
}
.nav-mark:hover { border-color: var(--accent); color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  transition: border-color 0.3s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-opt { transition: color 0.2s; }
.lang-opt.is-active { color: var(--accent); }
.lang-sep { color: var(--text-dim); }

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 5rem;
}
.hero > * { position: relative; z-index: 1; }
.hero-rays {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* On-load reveal for hero content */
.hero .eyebrow, .hero-title, .hero-lede, .hero-cta {
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title { animation-delay: 0.07s; }
.hero-lede  { animation-delay: 0.15s; }
.hero-cta   { animation-delay: 0.23s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(9px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero-title, .hero-lede, .hero-cta { animation: none; }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero-title em { color: var(--accent); }
.hero-lede {
  margin-top: 2rem;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary { background: var(--accent); color: #0E0E10; }
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ─── CREDO ─── */
.credo {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.credo-text {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem var(--gutter);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
.credo-text em { color: var(--accent); }

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 2.4rem 2.2rem 2.6rem;
  transition: background 0.3s;
}
.service:hover { background: var(--bg-card); }
.service-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0.8rem 0 0.7rem;
}
.service-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 42ch; }
.services-note {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-align: right;
}

/* ─── SELECTED WORK ─── */
.work-list { display: flex; flex-direction: column; gap: 4.5rem; }
.project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.8rem;
  align-items: center;
}
.project:nth-child(even) .project-media { order: 2; }
.project-media {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1280 / 768;
  background: var(--bg-soft);
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-media:hover img { transform: scale(1.03); }
.project-live {
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(6px);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-media:hover .project-live { opacity: 1; transform: translateY(0); }
.project-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.project-cat {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-year { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); }
.project-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.project-desc { color: var(--text-muted); font-size: 0.98rem; max-width: 46ch; }
.project-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none;
  margin-top: 1.4rem;
}
.project-tags li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

/* ─── MORE PROJECTS ─── */
.work-more {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.work-more-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.work-more-list { list-style: none; }
.work-more-list li { border-top: 1px solid var(--line-soft); }
.work-more-list li:first-child { border-top: none; }
.work-more-list a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.1rem 0.3rem;
  text-decoration: none;
  color: var(--text);
  transition: padding 0.3s, color 0.3s;
}
.work-more-list a:hover { padding-left: 1rem; color: var(--accent); }
.wm-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  min-width: 11rem;
  flex-shrink: 0;
}
.wm-desc { flex: 1; color: var(--text-muted); font-size: 0.92rem; }
.wm-arrow { color: var(--text-dim); transition: transform 0.3s, color 0.3s; }
.work-more-list a:hover .wm-arrow { transform: translate(3px, -3px); color: var(--accent); }
.work-more-cta { margin-top: 2rem; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}
.about-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.about-heading em { color: var(--accent); }
.about-body p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 1.02rem; }
.tools { margin-top: 2rem; }
.tools-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tools-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none;
  margin-top: 0.9rem;
}
.tools-list li {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
}

.edu { margin-top: 2rem; }
.edu-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.edu-list { list-style: none; }
.edu-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
}
.edu-item:first-child { border-top: none; padding-top: 0; }
.edu-degree { display: block; color: var(--text); font-size: 0.98rem; }
.edu-school {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* ─── TESTIMONIALS ─── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.review {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem 2.2rem 1.8rem;
}
.review p {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.review footer { display: flex; align-items: baseline; gap: 0.7rem; }
.review-name { font-size: 0.9rem; color: var(--text); }
.review-src { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); }

/* ─── CONTACT ─── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: 1rem 0 1.2rem;
}
.contact-heading em { color: var(--accent); }
.contact-note { color: var(--text-muted); max-width: 40ch; margin-bottom: 1.6rem; }
.link-back {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.link-back:hover { color: var(--accent); border-color: var(--accent); }
.contact-links { list-style: none; }
.contact-links li { border-top: 1px solid var(--line); }
.contact-links li:last-child { border-bottom: 1px solid var(--line); }
.contact-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0.4rem;
  text-decoration: none;
  color: var(--text);
  transition: padding 0.3s, color 0.3s;
}
.contact-links a:hover { padding-left: 1.1rem; color: var(--accent); }
.cl-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 6rem;
  flex-shrink: 0;
}
.cl-value { flex: 1; font-size: 0.98rem; }
.cl-arrow { color: var(--text-dim); transition: transform 0.3s; }
.contact-links a:hover .cl-arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* ─── WORLDWIDE / GLOBE ─── */
.worldwide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.worldwide-globe {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
#globe { position: absolute; inset: 0; touch-action: pan-y; }
.worldwide-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 1rem 0 1.2rem;
}
.worldwide-heading em { color: var(--accent); }
.worldwide-note { color: var(--text-muted); max-width: 44ch; font-size: 1.02rem; }

/* ─── Reveal animation ─── */
.js .fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  :root { --gutter: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 1.4rem; }
  .project:nth-child(even) .project-media { order: 0; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .project-live { opacity: 1; transform: none; }
  .worldwide-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .worldwide-globe { max-width: 340px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 7rem; }
  .cl-label { width: 4.5rem; }
  .work-more-list a { flex-direction: column; gap: 0.3rem; padding: 1rem 0.3rem; }
  .wm-name { min-width: 0; }
}
