:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #5f6b7a;
  --paper: #f5faf8;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.86);
  --glass-dark: rgba(12, 18, 32, 0.82);
  --line: rgba(16, 24, 40, 0.12);
  --line-strong: rgba(16, 24, 40, 0.2);
  --accent: #17c89b;
  --accent-strong: #0f8f73;
  --accent-soft: rgba(23, 200, 155, 0.16);
  --black: #07111f;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --glass-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(115deg, rgba(23, 200, 155, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(31, 117, 254, 0.11), transparent 38%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::selection {
  background: var(--accent);
  color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand,
.site-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--black), #12312a);
  color: #caffef;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.site-nav a {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 0.9rem 1.1rem;
  border-left: 1px solid var(--line);
  font-weight: 950;
}

.site-nav a:first-child {
  border-left: 0;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 2.5rem;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker span {
  max-width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}

.hero-copy,
.showcase,
.project-case,
.project-content,
.project-visual {
  min-width: 0;
}

.hero-copy,
.showcase,
.method-grid article,
.about-card,
.contact-section,
.project-case {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.3rem;
  font-size: clamp(3.25rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
  line-height: 1.08;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero-actions,
.project-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0;
  margin: 2rem 0 0;
}

.proof-strip div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.proof-strip dt {
  color: var(--black);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.proof-strip dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 950;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button-dark {
  background: linear-gradient(135deg, var(--black), #12312a);
  color: #ffffff;
}

.button-light {
  background: rgba(23, 200, 155, 0.18);
  color: var(--accent-strong);
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.showcase {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--glass-dark);
  color: #ffffff;
  overflow: hidden;
}

.showcase-topbar,
.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 950;
}

.status-pill {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(23, 200, 155, 0.2);
  color: #bfffea;
}

.showcase-screen {
  display: grid;
  min-height: 360px;
  padding: 1rem;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(23, 200, 155, 0.12), transparent 44%),
    rgba(7, 17, 31, 0.92);
}

.showcase-screen img {
  width: 100%;
  max-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.showcase-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
}

.showcase-meta h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.showcase-meta a {
  color: #bfffea;
  font-weight: 950;
}

.label {
  margin-bottom: 0.15rem;
  color: #a6ada8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.switch-button {
  min-height: 58px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.switch-button:last-child {
  border-right: 0;
}

.switch-button.is-active,
.switch-button:hover {
  background: rgba(23, 200, 155, 0.2);
  color: #bfffea;
}

.marquee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px);
}

.marquee span {
  padding: 1rem;
  border-left: 1px solid var(--line);
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 950;
  text-align: center;
}

.marquee span:first-child {
  border-left: 0;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: 1.5rem;
}

.project-case {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 520px;
  overflow: hidden;
}

.project-case:nth-child(even) .project-visual {
  order: 2;
}

.project-visual {
  display: grid;
  align-items: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(23, 200, 155, 0.12), transparent 44%),
    var(--black);
}

.project-case:nth-child(even) .project-visual {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.project-visual img {
  width: 100%;
  max-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.project-index {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.project-content h3 {
  max-width: 580px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: 0;
}

.project-content p {
  color: var(--muted);
  font-size: 1.02rem;
}

.project-role {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.9rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(23, 200, 155, 0.22);
  border-radius: 8px;
  background: rgba(23, 200, 155, 0.08);
}

.project-role strong,
.project-proof h4,
.project-stack h4 {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-role span {
  color: var(--ink);
  font-weight: 850;
}

.project-facts {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 1.5rem;
  list-style: none;
}

.project-facts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.project-facts strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-proof {
  margin-bottom: 1.25rem;
}

.project-proof h4,
.project-stack h4 {
  margin: 0 0 0.65rem;
}

.project-proof ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-proof li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.project-proof li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.project-stack {
  margin: auto 0 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(23, 200, 155, 0.28);
  border-radius: 999px;
  background: rgba(23, 200, 155, 0.14);
  color: #0b6f5a;
  font-size: 0.82rem;
  font-weight: 950;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.method-grid article {
  padding: 1.25rem;
  background: var(--panel);
}

.method-grid span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 4rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--black), #12312a);
  color: #bfffea;
  font-weight: 950;
}

.method-grid p,
.about-copy,
.contact-section p {
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.about-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(23, 200, 155, 0.2), rgba(255, 255, 255, 0.74));
}

.about-copy {
  padding: 1rem 0;
  font-size: 1.08rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  padding: clamp(1.25rem, 5vw, 2.25rem);
  background: var(--panel-strong);
}

.contact-section h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-panel {
  align-content: center;
  align-items: center;
}

.text-link {
  padding: 0.75rem 0;
  border-bottom: 2px solid rgba(23, 200, 155, 0.35);
  font-weight: 950;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-weight: 950;
}

.site-footer a {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .site-header,
  .hero-kicker,
  .hero-layout,
  .section-heading,
  .project-case,
  .method-grid,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-case:nth-child(even) .project-visual,
  .project-visual {
    order: initial;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .marquee {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-panel {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .brand,
  .site-nav,
  .hero-copy,
  .showcase,
  .project-case,
  .method-grid article,
  .about-card,
  .contact-section {
    box-shadow: var(--glass-shadow);
  }

  .site-nav a {
    padding: 0.8rem 0.5rem;
  }

  .hero-kicker {
    display: grid;
  }

  .hero {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12.6vw, 3.12rem);
    line-height: 0.95;
  }

  .showcase-screen {
    min-height: 240px;
  }

  .marquee {
    grid-template-columns: 1fr;
  }

  .marquee span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .marquee span:first-child {
    border-top: 0;
  }

  .project-facts li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .proof-strip,
  .project-role {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
