:root {
  --bg: #0b0b0a;
  --surface: #141412;
  --surface-2: #1b1b18;
  --line: #262521;
  --text: #ede9e1;
  --muted: #8a857c;
  --accent: #ff5a1f;
  --accent-ink: #120a06;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 24px;
  --r-md: 16px;
  --max: 1440px;
  --pad: clamp(12px, 2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 em, h2 em { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--text); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* NAV */
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 12px var(--pad) 0; }
.nav {
  max-width: var(--max); margin: 0 auto; height: 64px; padding: 0 12px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(20, 20, 18, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
}
.nav__id { display: flex; align-items: center; gap: 12px; }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--muted); flex: none; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav__name { font-weight: 500; font-size: 14px; line-height: 1.2; }
.nav__name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }

/* SPLIT */
.split { max-width: var(--max); margin: 0 auto; padding: var(--pad); display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: var(--pad); align-items: start; }
.profile { position: sticky; top: 92px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 108px); overflow: auto; scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
.panel > * { flex-shrink: 0; }
.status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
.profile__title { font-size: clamp(40px, 3.6vw, 56px); line-height: .98; }
.profile__intro { margin: 0; color: var(--muted); }
.profile__cta { display: grid; gap: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stats div { padding: 16px 18px; }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: 34px; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.quote { margin: 0; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); }
.quote blockquote { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; line-height: 1; }
.quote figcaption { font-size: 13px; }
.quote figcaption span { display: block; color: var(--muted); font-size: 12px; }

/* WORK */
.work__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 18px; }
.work__head h2 { font-size: 40px; }
.work__head sup { font-family: var(--sans); font-size: 13px; color: var(--muted); vertical-align: top; position: relative; top: 6px; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.pill-link span { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.pill-link:hover { border-color: var(--text); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; transition: border-color .3s; }
.project:hover { border-color: #3a3833; }
.project__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 808 / 632; background: var(--surface-2); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.project:hover .project__img img { transform: scale(1.03); }
.project__info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 8px 8px 10px; }
.project__info h3 { margin: 0; font-family: var(--sans); font-weight: 400; letter-spacing: 0; font-size: 14px; color: var(--muted); }
.project__info strong { color: var(--text); font-weight: 500; margin-right: 6px; }
.arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.project:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* INDUSTRIES */
.industries { max-width: var(--max); margin: clamp(80px, 9vw, 140px) auto 0; padding: 0 calc(var(--pad) + 4px); text-align: center; }
.industries { max-width: none; padding: 0; }
.marquee { margin: 28px 0 0;overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.industries__list { display: flex; flex: none; font-family: var(--serif); font-size: clamp(40px, 6vw, 96px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.industries__list span { transition: color .3s; }
.industries__list span:hover { color: var(--accent); font-style: italic; }
.industries__list i { font-style: normal; color: var(--accent); margin: 0 .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- MOTION ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* headline line mask */
.js .split-lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-lines .line > span { display: inline-block; max-width: 100%;transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .split-lines.in .line > span { transform: none; }

/* project image curtain */
.js .project .project__img { clip-path: inset(100% 0 0 0 round var(--r-md)); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); transition-delay: calc(var(--d, 0s) + .1s); }
.js .project.in .project__img { clip-path: inset(0 0 0 0 round var(--r-md)); }
.js .project .project__img img { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0s) + .1s); }
.js .project.in .project__img img { transform: scale(1); }
.js .project.in:hover .project__img img { transform: scale(1.04); transition-delay: 0s; transition-duration: 1s; }

/* nav enter */
.js .nav { transform: translateY(-120%); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1) .1s, opacity .8s .1s; }
.js.loaded .nav { transform: none; opacity: 1; }

/* status dot pulse */
.dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,90,31,0); } }

/* buttons: fill sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); border-radius: inherit; transform: translateY(101%); transition: transform .5s cubic-bezier(.7,0,.2,1); }
.btn:hover::before { transform: none; }
.btn--accent:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.pill-link span, .arrow { transition: transform .4s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, border-color .25s; }
.pill-link:hover span { transform: rotate(45deg); }
.project:hover .arrow { transform: rotate(45deg); }

/* FAQ answer */
.faq details[open] p { animation: faqIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
.faq summary::after { transition: background .3s, border-color .3s, color .3s, transform .4s; }
.faq details[open] summary::after { transform: rotate(180deg); }

/* custom cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 500; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cursor.on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .split-lines .line > span, .js .nav { opacity: 1; transform: none; }
  .js .project .project__img { clip-path: none; }
  .js .project .project__img img { transform: none; }
}

/* SECTIONS */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 10vw, 160px) calc(var(--pad) + 4px) 0; }
.section__head { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: var(--pad); margin-bottom: 40px; align-items: end; }
.section__head h2 { font-size: clamp(40px, 5vw, 76px); line-height: .98; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.card__no { font-size: 13px; color: var(--accent); }
.card h3 { font-size: 34px; line-height: 1; margin-top: auto; }
.card p { margin: 0; color: var(--muted); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 28px 24px 0 0; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process span { font-size: 13px; color: var(--accent); }
.process h3 { font-size: 34px; margin: 40px 0 10px; }
.process p { margin: 0; color: var(--muted); }

.faq__list { border-top: 1px solid var(--line); margin-left: calc(min(420px, 30%) + var(--pad)); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.6vw, 22px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.faq details[open] summary::after { content: "–"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* CONTACT */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 10vw, 160px) var(--pad) var(--pad); }
.contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 72px); }
.contact__title { font-size: clamp(52px, 8.4vw, 136px); line-height: .9; letter-spacing: -0.03em; margin: 28px 0 40px; max-width: 12ch; }
.contact__mail { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 48px); border-bottom: 1px solid var(--line); padding-bottom: 6px; overflow-wrap: anywhere; transition: border-color .25s; }
.contact__mail:hover { border-color: var(--accent); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* FOOTER */
.footer { max-width: var(--max); margin: 0 auto; padding: 24px calc(var(--pad) + 4px) 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .services { grid-template-columns: 1fr 1fr; }
  .card { min-height: 280px; }
}
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .profile { position: static; }
  .panel { max-height: none; }
  .section__head { grid-template-columns: 1fr; }
  .faq__list { margin-left: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .nav__links, .nav__name small { display: none; }
  .grid, .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 24px 0 0; border-left: 0; }
  .process li + li { border-top: 1px solid var(--line); }
  .process h3 { margin-top: 16px; }
  .work__head h2 { font-size: 32px; }
  .section__head h2 { font-size: 36px; }
  .panel { padding: 22px; }
}
