:root {
  color-scheme: dark;
  --ink: #10110f;
  --ink-soft: #161814;
  --surface: #1b1d19;
  --surface-strong: #20231e;
  --text: #f3efe6;
  --muted: #aaa99f;
  --gold: #d6a84b;
  --gold-light: #edca77;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(214, 168, 75, 0.38);
  --shell: min(1180px, calc(100% - 48px));
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  opacity: 0.42;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold-light);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(16, 17, 15, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  clip-path: circle(43% at 50% 48%);
}

.site-nav { display: flex; gap: clamp(18px, 2.1vw, 32px); align-items: center; }
.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 180ms ease;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 150px 0 36px;
  align-content: center;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  top: -14%;
  right: -12%;
  width: min(65vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 75, 0.14), rgba(214, 168, 75, 0.025) 48%, transparent 70%);
  filter: blur(4px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.8rem, 6.8vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(237, 202, 119, 0.75); }

.hero-tagline {
  margin: 34px 0 12px;
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}

.hero-description { max-width: 580px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.button-primary { background: var(--gold); color: #15130e; }
.button-primary:hover { background: var(--gold-light); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,0.025); }
.button-secondary:hover { border-color: var(--line-strong); }

.hero-composition { position: relative; min-height: 500px; }
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 260px;
  height: 260px;
  object-fit: contain;
  clip-path: circle(43% at 50% 48%);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.4));
  transform: translate(-50%, -50%);
}

.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 340px; height: 340px; }
.orbit-two { width: 470px; height: 470px; border-style: dashed; opacity: 0.6; }
.hero-foot {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  display: flex;
  justify-content: flex-end;
  color: #77796f;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-foot a { color: var(--muted); }

.reveal { animation: rise-in 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero-composition.reveal { animation-delay: 120ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.section {
  position: relative;
  padding: clamp(94px, 12vw, 156px) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 760px; }
.section-heading.centered { margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-index {
  margin: 0 0 22px;
  color: var(--gold-light);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.6rem, 5.4vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
h2 em { color: var(--gold-light); font-family: Georgia, serif; font-weight: 400; }

.section-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
}
.section-intro { margin: 0 0 8px; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}
.about-copy { padding-top: 54px; }
.about-copy p { color: var(--muted); }
.about-copy .lead-copy { margin-top: 12px; color: var(--text); font-size: clamp(1.24rem, 2.1vw, 1.7rem); line-height: 1.55; }
.about-copy p + p { margin-top: 22px; }
.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-projects { background: #131411; }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.034), rgba(255,255,255,0.012));
  box-shadow: 0 18px 60px rgba(0,0,0,0.16);
  flex-direction: column;
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, background-color 240ms ease;
}
.project-card:first-child { grid-column: span 8; }
.project-card:nth-child(n + 3) { grid-column: span 3; min-height: 370px; }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-5px); }
.project-card::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, var(--card-glow), transparent 70%);
  opacity: 0.18;
}
.project-card-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.project-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0,0,0,0.18);
  place-items: center;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
}
.status {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-live { border-color: rgba(179, 211, 151, 0.28); color: #c7dda9; }
.project-card-body { margin-top: auto; padding-top: 72px; }
.project-meta { margin: 0 0 10px; color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-size: clamp(1.48rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.project-description { min-height: 50px; margin: 12px 0 24px; color: var(--muted); }
.project-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
}
.project-action:hover { color: var(--gold-light); }

.section-apps { overflow: hidden; }
.section-apps::before {
  position: absolute;
  right: -20%;
  bottom: -50%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(214,168,75,0.07), transparent 68%);
}
.featured-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  min-height: 510px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured-copy { display: flex; padding: clamp(34px, 6vw, 74px); flex-direction: column; justify-content: center; }
.featured-copy .status { align-self: flex-start; }
.featured-copy h3 { margin: 24px 0 12px; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.featured-copy p { max-width: 480px; margin: 0 0 30px; color: var(--muted); }
.featured-copy .button { align-self: flex-start; }
.tool-preview {
  position: relative;
  display: grid;
  min-height: 420px;
  padding: 40px;
  background: #121310;
  place-items: center;
  overflow: hidden;
}
.tool-preview::before {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(214,168,75,0.2);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 100px rgba(214,168,75,0.08);
}
.tool-dial {
  position: relative;
  display: grid;
  width: min(310px, 75vw);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: conic-gradient(from 30deg, #2c281f, #161713 28%, #2a251c 50%, #171814 74%, #2c281f);
  box-shadow: inset 0 0 0 18px rgba(16,17,15,0.56), 0 24px 80px rgba(0,0,0,0.4);
  place-items: center;
}
.tool-dial::before { position: absolute; top: -14px; width: 0; height: 0; border-right: 10px solid transparent; border-bottom: 20px solid var(--gold-light); border-left: 10px solid transparent; content: ""; }
.tool-dial strong { display: block; color: var(--gold-light); font-family: Georgia, serif; font-size: 3rem; font-weight: 400; }
.tool-dial span { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }

.section-creative { background: #131411; }
.creative-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.creative-card {
  position: relative;
  display: flex;
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  flex-direction: column;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}
.creative-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.creative-visual { position: absolute; inset: 0; background: var(--creative-gradient); opacity: 0.72; transition: transform 500ms ease, opacity 300ms ease; }
.creative-card:hover .creative-visual { opacity: 0.9; transform: scale(1.04); }
.creative-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to top, rgba(15,16,14,0.96), rgba(15,16,14,0.12) 72%); }
.creative-card-content { position: relative; z-index: 1; margin-top: auto; }
.creative-card .card-number { color: var(--gold-light); font-size: 0.7rem; letter-spacing: 0.12em; }
.creative-card h3 { margin: 7px 0 2px; font-size: 1.4rem; font-weight: 500; }
.creative-card p { margin: 0; color: var(--muted); font-size: 0.83rem; }

.section-contact { padding-bottom: clamp(100px, 13vw, 170px); }
.contact-panel {
  padding: clamp(38px, 8vw, 94px);
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: radial-gradient(circle at 92% 12%, rgba(214,168,75,0.11), transparent 36%), var(--surface);
  text-align: center;
}
.contact-panel h2 { max-width: 840px; margin-inline: auto; }
.contact-panel > p:not(.section-index) { max-width: 560px; margin: 24px auto 14px; color: var(--muted); }
.contact-email {
  display: inline-block;
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 180ms ease, border-color 180ms ease;
}
.contact-email:hover { border-color: var(--gold-light); color: var(--text); }
.site-footer { padding: 58px 0 34px; border-top: 1px solid var(--line); background: #0d0e0c; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand { margin-bottom: 16px; }
.footer-grid p { margin: 0; color: #76786f; font-size: 0.78rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; }
.footer-nav a { color: var(--muted); font-size: 0.82rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-meta { display: grid; gap: 24px; text-align: right; }

.reveal-on-scroll { opacity: 1; transform: none; }

@media (max-width: 940px) {
  :root { --shell: min(100% - 36px, 760px); }
  .header-inner { min-height: 74px; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    place-content: center;
    gap: 6px;
  }
  .menu-toggle span { width: 18px; height: 1px; background: var(--text); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    padding: 110px 24px 50px;
    background: rgba(16, 17, 15, 0.98);
    align-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 10px; font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: clamp(1.5rem, 6vw, 2.4rem); text-align: center; }
  .site-nav a::after { display: none; }
  .hero { padding-top: 130px; align-content: start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 34px; }
  .hero-composition { min-height: 410px; }
  .orbit-two { width: min(88vw, 430px); height: min(88vw, 430px); }
  .orbit-one { width: min(65vw, 320px); height: min(65vw, 320px); }
  .hero-foot { position: static; margin-top: 16px; }
  .section-top, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-copy { max-width: 680px; padding-top: 0; }
  .project-card, .project-card:first-child, .project-card:nth-child(n + 3) { grid-column: span 6; }
  .featured-app { grid-template-columns: 1fr; }
  .tool-preview { min-height: 390px; }
  .creative-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; text-align: left; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); }
  .brand { font-size: 0.69rem; letter-spacing: 0.12em; }
  .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .hero { padding: 100px 0 20px; }
  .hero-grid { gap: 22px; }
  .hero-copy { padding-top: 14px; }
  h1 { font-size: clamp(3.15rem, 15.5vw, 4.4rem); }
  .hero-tagline { margin-top: 26px; }
  .hero-description { font-size: 1rem; }
  .hero-actions { margin-top: 28px; flex-direction: column; align-items: stretch; }
  .hero-composition { min-height: 280px; }
  .hero-logo { width: 176px; height: 176px; }
  .orbit-one { width: 216px; height: 216px; }
  .orbit-two { width: 278px; height: 278px; }
  .hero-foot { display: none; }
  .section { padding-block: 86px; }
  .section-heading.centered { text-align: left; }
  .section-top { margin-bottom: 38px; }
  .project-card, .project-card:first-child, .project-card:nth-child(n + 3) { grid-column: 1 / -1; min-height: 350px; }
  .project-card-body { padding-top: 54px; }
  .featured-app { border-radius: 26px; }
  .featured-copy { padding: 34px 26px 38px; }
  .featured-copy .button { align-self: stretch; }
  .tool-preview { min-height: 330px; padding: 26px; }
  .tool-preview::before { width: 320px; height: 320px; }
  .tool-dial { width: min(260px, 78vw); }
  .creative-grid { grid-template-columns: 1fr; }
  .creative-card { min-height: 270px; }
  .contact-panel { padding: 44px 24px; border-radius: 26px; }
  .contact-panel > p:not(.section-index) { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { max-width: 350px; }
  .footer-meta { grid-column: auto; display: grid; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
