:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --panel: #0d0d0d;
  --panel-2: #111111;
  --text: #f3f3f3;
  --muted: #909090;
  --muted-2: #666666;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #C65D2E;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(198, 93, 46, 0.045), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.68);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  border-color: var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark .trajectory {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.brand-mark .descent {
  fill: none;
  stroke: rgba(255,255,255,0.42);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 2.5 3.5;
}

.brand-mark .apogee-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px rgba(198,93,46,0.42));
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
}

.hero {
  min-height: 100vh;
  padding-top: 160px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 90px;
  align-items: end;
}

.kicker {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 950px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.3rem, 8.7vw, 9rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.078em;
}

.hero h1 span {
  color: #6f6f6f;
}

.hero-copy {
  max-width: 430px;
  padding-bottom: 10px;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  padding: 0 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #090909;
  background: var(--accent);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-visual {
  position: absolute;
  right: -40px;
  top: 18%;
  width: 420px;
  height: 420px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-visual .ring {
  position: absolute;
  inset: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-visual .ring:nth-child(1) {
  width: 100%;
  height: 100%;
}

.hero-visual .ring:nth-child(2) {
  width: 72%;
  height: 72%;
}

.hero-visual .ring:nth-child(3) {
  width: 42%;
  height: 42%;
}

.hero-visual .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(198, 93, 46, 0.5);
  transform: translate(-50%, -50%);
}

.hero-meta {
  margin-top: 100px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 500;
}

.portfolio-hero {
  min-height: 72vh;
  padding: 180px 0 110px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  right: -15%;
  top: 5%;
  border: 1px solid rgba(198, 93, 46, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(198, 93, 46, 0.025), 0 0 0 144px rgba(198, 93, 46, 0.014);
  pointer-events: none;
}

.portfolio-hero-inner {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.3rem, 9vw, 9.5rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.078em;
}

.portfolio-hero h1 span {
  color: #6f6f6f;
}

.portfolio-intro {
  max-width: 570px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.section {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 58px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
    var(--panel);
  position: relative;
  overflow: hidden;
  /* clip (not hidden) so focusing the link can't scroll the card's contents behind the decorative orbit */
  overflow: clip;
  transition: border-color 220ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
}

.project-card.featured {
  min-height: 640px;
  gap: 56px;
}

.featured-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.steps li > span {
  padding-top: 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

.steps h4 {
  margin: 0 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.project-link:hover {
  color: var(--accent);
}

.concepts-head {
  margin-top: 96px;
  margin-bottom: 0;
}

.concept {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.concepts-head + .concepts .concept:first-child {
  margin-top: 28px;
}

.concept:last-child {
  border-bottom: 1px solid var(--line);
}

.concept h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.concept .project-kicker {
  margin-bottom: 8px;
  color: var(--muted-2);
}

.concept > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.concept-status {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-top,
.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-index,
.project-status {
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 93, 46, 0.55);
}

.project-content {
  position: relative;
  z-index: 2;
}

.project-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.project-description {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.project-orbit {
  position: absolute;
  width: 470px;
  height: 470px;
  right: -170px;
  bottom: -170px;
  border: 1px solid rgba(198,93,46,0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(198,93,46,0.018),
    0 0 0 110px rgba(198,93,46,0.012);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 120px;
}

.about-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.068em;
}

.about-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.about-copy p {
  margin: 0 0 24px;
}

.principles {
  margin-top: 90px;
}

.principle {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle span {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.principle h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-panel {
  min-height: 560px;
  padding: clamp(32px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, rgba(198, 93, 46, 0.08), transparent 22rem),
    var(--panel);
}

.contact-panel h2 {
  max-width: 980px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.1rem, 6.5vw, 7rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.072em;
}

.contact-sub {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-link {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
}

.contact-link:hover {
  color: var(--text);
}

.footer {
  padding: 30px 0 46px;
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Above-the-fold content animates in on load, without waiting for scroll observers. */
.hero-in {
  animation: hero-in 520ms ease both;
}

.hero-copy.hero-in {
  animation-delay: 90ms;
}

.hero-meta.hero-in {
  animation-delay: 180ms;
}

.portfolio-intro.hero-in {
  animation-delay: 120ms;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .featured-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-card.featured {
    min-height: 0;
  }

  .concept {
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
  }

  .concept > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .principle {
    grid-template-columns: 50px 1fr;
  }

  .principle p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 30px), var(--max));
  }

  .brand {
    gap: 9px;
    white-space: nowrap;
  }

  .brand-mark {
    width: 32px;
    height: 19px;
  }

  .nav {
    gap: 11px;
    font-size: 0.76rem;
  }

  .nav-cta {
    padding: 8px 12px;
  }

  .hero {
    padding-top: 125px;
  }

  .portfolio-hero {
    min-height: 58vh;
    padding: 150px 0 80px;
  }

  .portfolio-hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.5rem);
  }

  .portfolio-hero::after {
    width: 95vw;
    right: -55%;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.5rem);
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section {
    padding: 96px 0;
  }

  .project-card,
  .project-card.featured {
    padding: 24px;
    gap: 40px;
  }

  .project-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .principle {
    grid-template-columns: 34px 1fr;
    gap: 15px;
  }

  .contact-panel {
    min-height: 540px;
  }

  .contact-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    gap: 14px;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.8rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* Homepage stays readable without JavaScript or scroll animation support. */
.home-page .reveal { opacity: 1; transform: none; }
.home-page .hero-in { animation: none; }

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  background: var(--bg);
  animation: intro-exit 4500ms linear both;
}

.intro-stage { width: 100%; text-align: center; }
.intro-mark { width: clamp(132px, 22vw, 176px); height: auto; overflow: visible; }
.intro-curve {
  stroke: var(--text);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: intro-draw 1000ms cubic-bezier(.22,.61,.36,1) 80ms both;
}
.intro-descent {
  stroke: rgba(255,255,255,.42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: intro-reveal 360ms ease 1140ms both;
}
.intro-point {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: intro-point 400ms cubic-bezier(.16,1,.3,1) 1080ms both;
}
.intro-name {
  margin: 24px 0 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -.045em;
  animation: intro-reveal 440ms ease 1480ms both;
}
.intro-line {
  margin: 15px 0 0;
  color: #b1b1b1;
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 1.5;
  animation: intro-reveal 420ms ease 2130ms both;
}
.intro-skip {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #c2c2c2;
  background: var(--bg);
  font-size: 13px;
}
.intro-skip:hover { color: var(--text); border-color: var(--muted); }
.intro-skip:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }

@keyframes intro-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes intro-point {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes intro-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes intro-exit {
  0%, 91% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; }
}
