:root {
  --bg: #f2f5f4;
  --ink: #111716;
  --muted: #536260;
  --surface: #ffffff;
  --surface-soft: #e8efed;
  --line: rgba(17, 23, 22, 0.12);
  --line-strong: rgba(17, 23, 22, 0.22);
  --green: #0b6b53;
  --green-deep: #073c32;
  --copper: #b46c35;
  --copper-soft: #f3e9dc;
  --wine: #7b2f2a;
  --blue: #2f6f9f;
  --red: #a84335;
  --shadow: 0 20px 55px rgba(14, 28, 25, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body.nav-open {
  overflow: hidden;
}

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

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

section {
  scroll-margin-top: 92px;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  color: #f8fbfa;
  background: rgba(10, 21, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(8, 15, 14, 0.2);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  color: rgba(248, 251, 250, 0.72);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(248, 251, 250, 0.74);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.language-switch a {
  display: inline-grid;
  min-width: 34px;
  min-height: 32px;
  place-items: center;
  color: rgba(248, 251, 250, 0.72);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 850;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a.is-current {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px 24px 72px;
  color: #ffffff;
  background: #101716;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  opacity: 0.72;
}

.hero-shot {
  position: absolute;
  width: 280px;
  height: 608px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-shot-one {
  right: 12%;
  top: 96px;
  transform: rotate(-6deg);
}

.hero-shot-two {
  right: 28%;
  bottom: -150px;
  transform: rotate(5deg);
}

.hero-shot-three {
  right: -4%;
  bottom: -70px;
  transform: rotate(8deg);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 14, 13, 0.94) 0%, rgba(8, 14, 13, 0.78) 44%, rgba(8, 14, 13, 0.42) 100%),
    linear-gradient(0deg, rgba(8, 14, 13, 0.92) 0%, rgba(8, 14, 13, 0.08) 45%, rgba(8, 14, 13, 0.52) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.project-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  color: #cbece0;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero h1 {
  max-width: 740px;
  margin: 22px 0 18px;
  font-size: 4.45rem;
  line-height: 1.01;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 0;
  color: rgba(248, 251, 250, 0.82);
  font-size: 1.14rem;
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #118164;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.hero .button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
}

.hero-signals {
  display: flex;
  max-width: 850px;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-signals span {
  padding: 9px 11px;
  color: rgba(248, 251, 250, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-size: 0.9rem;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 88px 0;
}

.section-compact {
  padding-top: 76px;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-start {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.contact-copy h2 {
  margin: 14px 0 14px;
  font-size: 2.55rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.contact-copy p,
.capability-list p,
.project-card p,
.featured-copy p,
.lens-grid p,
.timeline p,
.stats-grid span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-grid article,
.capability-list article,
.project-card,
.lens-grid article,
.timeline article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid article {
  min-height: 150px;
  padding: 22px;
}

.stats-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-deep);
  font-size: 1.68rem;
  line-height: 1;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.builder-section {
  padding-top: 28px;
}

.builder-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-panel .section-heading {
  margin-bottom: 0;
}

.builder-list {
  display: grid;
  gap: 12px;
}

.builder-list article {
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid rgba(11, 107, 83, 0.12);
  border-radius: 8px;
}

.builder-list h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.builder-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.capability-list article,
.lens-grid article,
.project-card {
  padding: 24px;
}

.capability-list h3,
.project-card h3,
.featured-copy h3,
.lens-grid h3,
.timeline h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.capability-list p,
.project-card p,
.lens-grid p,
.timeline p {
  margin: 0;
}

.portfolio-section {
  width: 100%;
  max-width: none;
  padding-right: 20px;
  padding-left: 20px;
  background: #ffffff;
}

.portfolio-section > .section-heading,
.portfolio-section > .featured-project,
.portfolio-section > .project-grid {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.featured-project {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #101716;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-copy {
  color: #ffffff;
}

.featured-copy p {
  color: rgba(248, 251, 250, 0.78);
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #d7efe6;
  font-size: 0.9rem;
  font-weight: 800;
}

.project-label img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.featured-copy h3 {
  font-size: 2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 9px;
  color: var(--green-deep);
  background: var(--surface-soft);
  border: 1px solid rgba(11, 107, 83, 0.12);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 750;
}

.featured-project .tag-list li {
  color: #d7efe6;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.device-gallery {
  display: grid;
  min-height: 430px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.device-gallery figure {
  height: 420px;
  margin: 0;
  overflow: hidden;
  background: #0a1110;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.device-gallery figure:nth-child(2) {
  height: 470px;
}

.device-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.project-type {
  margin-bottom: 16px;
  color: var(--blue);
  background: #ecf5f8;
  border-color: rgba(47, 111, 159, 0.14);
}

.architecture-section {
  padding-top: 96px;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lens-grid article:nth-child(1) {
  border-top: 4px solid var(--green);
}

.lens-grid article:nth-child(2) {
  border-top: 4px solid var(--blue);
}

.lens-grid article:nth-child(3) {
  border-top: 4px solid var(--copper);
}

.experience-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px;
}

.timeline time {
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 850;
}

.writing-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding-top: 28px;
}

.writing-copy {
  position: relative;
  padding: 30px;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid rgba(180, 108, 53, 0.24);
  border-radius: 8px;
}

.writing-copy::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 4px;
  background: var(--copper);
}

.writing-copy .section-kicker {
  color: var(--wine);
  background: var(--copper-soft);
  border-color: rgba(180, 108, 53, 0.24);
}

.writing-copy h2 {
  margin: 14px 0;
  color: #17110f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.writing-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.writing-line {
  margin-top: 18px;
  padding-top: 16px;
  color: var(--wine);
  border-top: 1px solid rgba(180, 108, 53, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

.writing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.writing-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbf4ec;
  border: 1px solid rgba(180, 108, 53, 0.2);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 850;
}

.writing-links a:hover,
.writing-links a:focus-visible {
  border-color: var(--copper);
  outline: none;
}

.writing-links span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #ffffff;
  background: var(--wine);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.writing-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}

.writing-notes span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  color: var(--wine);
  background: #fffdf9;
  border: 1px solid rgba(180, 108, 53, 0.24);
  border-radius: 8px;
  font-weight: 850;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
  padding: 44px;
  color: #ffffff;
  background: #111716;
  border-radius: 8px;
}

.contact-copy h2 {
  max-width: 780px;
  color: #ffffff;
}

.contact-copy p {
  max-width: 680px;
  color: rgba(248, 251, 250, 0.76);
}

.contact-section .section-kicker {
  color: #d7efe6;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 30px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(10, 21, 19, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav a {
    padding: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 80svh;
    padding-top: 120px;
  }

  .hero-shot {
    width: 230px;
    height: 500px;
  }

  .hero-shot-one {
    right: 2%;
  }

  .hero-shot-two {
    right: 20%;
  }

  .hero-shot-three {
    display: none;
  }

  .hero h1 {
    max-width: 600px;
    font-size: 3.2rem;
  }

  .stats-grid,
  .capability-list,
  .project-grid,
  .lens-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .builder-panel,
  .featured-project,
  .experience-section,
  .writing-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .writing-copy h2 {
    font-size: 2rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand-text {
    display: none;
  }

  .hero {
    min-height: 78svh;
    padding: 104px 18px 38px;
  }

  .hero-media {
    opacity: 0.48;
  }

  .hero-shot {
    width: 180px;
    height: 390px;
  }

  .hero-shot-one {
    right: -26px;
    top: 112px;
  }

  .hero-shot-two {
    right: 112px;
    bottom: -120px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 14, 13, 0.94) 0%, rgba(8, 14, 13, 0.78) 100%),
      linear-gradient(0deg, rgba(8, 14, 13, 0.92) 0%, rgba(8, 14, 13, 0.18) 100%);
  }

  .hero h1 {
    font-size: 2.32rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 26px;
    text-align: left;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .stats-grid,
  .capability-list,
  .project-grid,
  .lens-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .featured-project {
    padding: 18px;
  }

  .builder-panel {
    padding: 18px;
  }

  .device-gallery {
    min-height: 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-gallery figure,
  .device-gallery figure:nth-child(2) {
    height: 360px;
  }

  .device-gallery figure:nth-child(3) {
    display: none;
  }

  .writing-copy {
    padding: 22px;
  }

  .writing-links {
    flex-direction: column;
  }

  .writing-links a {
    justify-content: center;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-section {
    width: min(calc(100% - 28px), var(--max));
    padding: 28px 18px;
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--max));
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .brand-text strong {
    max-width: 170px;
  }

  .hero h1 {
    font-size: 2.18rem;
  }
}
