:root {
  color-scheme: dark;
  --ink: #090909;
  --ink-soft: #151515;
  --surface: #111111;
  --surface-raised: #17140e;
  --surface-section: #0c0c0c;
  --surface-alt: #10100f;
  --surface-deep: #0b0b0b;
  --text: #fff8e7;
  --text-strong: #fffdf7;
  --text-muted: #afaa9d;
  --text-subtle: #878276;
  --text-secondary: #bcb8ae;
  --line-neutral: #24221e;
  --hero-base: #080808;
  --hero-mid: #10100f;
  --hero-end: #19150e;
  --contact-panel: linear-gradient(120deg, #17140e, #10100f 68%);
  --panel-overlay: rgba(0, 0, 0, 0.12);
  --header-link: #d2cec4;
  --project-stage-start: #1a1914;
  --project-stage-end: #0d0d0c;
  --project-chip-bg: rgba(8, 8, 8, 0.68);
  --project-strip-bg: rgba(0, 0, 0, 0.2);
  --project-thumb-bg: #080808;
  --device-surface: #070707;
  --card-surface: #12110f;
  --control-surface: #080808;
  --line: rgba(244, 207, 121, 0.2);
  --gold: #f0c96e;
  --gold-light: #ffedb2;
  --gold-deep: #a77737;
  --accent-ink: #19140a;
  --cream: #fff8e7;
  --muted: #afaa9d;
  --white: #fffdf7;
  --theme-transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f7f5ef;
  --ink-soft: #efede5;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-section: #f1efe8;
  --surface-alt: #e9e6dc;
  --surface-deep: #f4f2ec;
  --text: #28271f;
  --text-strong: #171711;
  --text-muted: #68665d;
  --text-subtle: #77746a;
  --text-secondary: #5c5a51;
  --line-neutral: #d8d3c5;
  --hero-base: #f7f5ef;
  --hero-mid: #f1eee5;
  --hero-end: #e9e1ce;
  --contact-panel: linear-gradient(120deg, #fffdf8, #f1eee5 68%);
  --panel-overlay: rgba(255, 255, 255, 0.42);
  --header-link: #55534b;
  --project-stage-start: #fffdf8;
  --project-stage-end: #e9e6dc;
  --project-chip-bg: rgba(255, 253, 248, 0.86);
  --project-strip-bg: rgba(255, 255, 255, 0.65);
  --project-thumb-bg: #f5f2e9;
  --device-surface: #070707;
  --card-surface: #fffdf8;
  --control-surface: #f5f2e9;
  --line: rgba(120, 94, 42, 0.22);
  --gold: #d19f2b;
  --gold-light: #f0c96e;
  --gold-deep: #815914;
  --accent-ink: #19140a;
  --cream: #28271f;
  --muted: #68665d;
  --white: #171711;
}

:root[data-theme="light"] .project-chip,
:root[data-theme="light"] .visual-index {
  color: var(--text-strong);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
}

body,
.site-header,
.about,
.capabilities,
.work,
.contact,
.site-footer,
.website-card,
.website-card-copy,
.contact-panel,
.contact-side,
.theme-toggle {
  transition: var(--theme-transition);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--gold-light);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wrap {
  min-height: 104px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.theme-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: transparent;
  font: 600 11px var(--sans);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.theme-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.theme-toggle-icon {
  font-size: 16px;
  line-height: 1;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-dot {
  color: var(--gold);
}

.main-nav {
  display: flex;
  gap: 30px;
  color: var(--header-link);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a,
.back-top {
  transition: color 0.25s ease;
}

.main-nav a:hover,
.back-top:hover {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.nav-cta span {
  font-size: 17px;
  transition: transform 0.25s ease;
}

.nav-cta:hover span,
.text-link:hover span,
.email-link:hover span {
  transform: translate(3px, -3px);
}

.hero {
  position: relative;
  display: flex;
  min-height: 780px;
  overflow: hidden;
  align-items: center;
  background:
    radial-gradient(circle at 79% 51%, rgba(198, 142, 62, 0.22), transparent 26%),
    linear-gradient(118deg, var(--hero-base) 4%, var(--hero-mid) 54%, var(--hero-end) 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 83%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 44px;
  align-items: center;
  padding-top: 98px;
}

.eyebrow,
.section-label,
.project-type,
.tiny-label,
.social-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 23px;
  color: var(--gold);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(240, 201, 110, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: clamp(3.55rem, 7vw, 6.65rem);
}

h1 em,
h2 em {
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 35px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.hero-intro strong {
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button-gold {
  color: #19140a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 10px 32px rgba(210, 156, 65, 0.14);
}

.button-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(210, 156, 65, 0.28);
}

.button span {
  font-size: 20px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
}

.text-link span,
.email-link span {
  display: inline-block;
  font-size: 17px;
  transition: transform 0.25s ease;
}

.hero-art {
  position: relative;
  min-height: 450px;
}

.hero-art img {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 52%;
  width: min(90%, 405px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
  transform: translate(-50%, -50%);
}

.art-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 222, 139, 0.22),
    rgba(208, 150, 56, 0.05) 45%,
    transparent 71%
  );
  transform: translate(-50%, -50%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(244, 207, 121, 0.2);
  border-radius: 50%;
}

.orbit-one {
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  transform: rotate(-28deg);
}

.orbit-two {
  top: 19%;
  left: 19%;
  width: 63%;
  height: 63%;
  border-color: rgba(244, 207, 121, 0.13);
  transform: rotate(51deg);
}

.art-note {
  position: absolute;
  right: 0;
  bottom: 12%;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.75;
  letter-spacing: 0.09em;
  text-align: right;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 31px;
  left: 50%;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.scroll-line {
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section {
  padding: 125px 0;
}

.section-label {
  margin-bottom: 27px;
  color: var(--gold);
}

.about {
  background: var(--surface-section);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  gap: 12%;
  padding-bottom: 86px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
}

.about-copy {
  align-self: end;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy p {
  margin-bottom: 19px;
}

.about-copy .text-link {
  margin-top: 9px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  min-height: 218px;
  padding: 26px 29px 0 0;
  border-right: 1px solid var(--line);
}

.principle:not(:first-child) {
  padding-left: 29px;
}

.principle:last-child {
  border-right: 0;
}

.principle-number {
  display: block;
  margin-bottom: 45px;
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 11px;
}

.principle h3 {
  margin-bottom: 11px;
  font-size: 24px;
}

.principle p {
  max-width: 270px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.capabilities {
  border-top: 1px solid var(--line-neutral);
  border-bottom: 1px solid var(--line-neutral);
  background: var(--surface-alt);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 9%;
}

.capabilities h2 {
  font-size: clamp(2.7rem, 4.3vw, 4.2rem);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 45px 1.2fr 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-row > span {
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 11px;
}

.service-row h3 {
  margin: 0;
  font-size: 21px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Real projects work section */

.work {
  overflow: hidden;
  background: var(--surface-deep);
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.work-heading > p {
  max-width: 310px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
}

.work-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.work-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.work-arrow:hover,
.work-arrow:focus-visible {
  color: var(--accent-ink);
  background: var(--gold);
}

.work-arrow:active {
  transform: scale(0.94);
}

.work-counter {
  display: flex;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

#work-current {
  color: var(--gold);
}

.project-list {
  display: flex;
  gap: 80px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 30px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-list::-webkit-scrollbar {
  display: none;
}

.project {
  display: grid;
  flex: 0 0 calc(100% - 100px);
  grid-template-columns: minmax(0, 1.22fr) minmax(285px, 0.78fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  scroll-snap-align: start;
}

.project-visual {
  --project-accent: var(--gold);
  --project-rgb: 240, 201, 110;

  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(var(--project-rgb), 0.23);
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--project-rgb), 0.26), transparent 40%),
    linear-gradient(145deg, var(--project-stage-start), var(--project-stage-end) 78%);
}

.project-visual::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(var(--project-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--project-rgb), 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.project--tayarex .project-visual {
  --project-accent: #9acb12;
  --project-rgb: 154, 203, 18;
}

.project--studymon .project-visual {
  --project-accent: #31d6ca;
  --project-rgb: 49, 214, 202;
}

.project--mega .project-visual {
  --project-accent: #ffd400;
  --project-rgb: 255, 212, 0;
}

.project-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 405px;
  place-items: center;
  padding: 52px 40px 14px;
}

.project-stage::after {
  position: absolute;
  width: min(72%, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--project-rgb), 0.23);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg) scaleY(0.48);
}

.project-chip {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 7px 9px;
  color: var(--project-accent);
  border: 1px solid rgba(var(--project-rgb), 0.4);
  background: var(--project-chip-bg);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-device {
  position: relative;
  z-index: 1;
  width: min(68%, 278px);
  height: 342px;
  overflow: hidden;
  transform: rotate(-3deg);
}

.project-device::after {
  content: none;
}

.project--studymon .project-device {
  transform: rotate(2.5deg);
}

.project--mega .project-device {
  transform: rotate(-1.5deg);
}

.project-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.visual-index {
  position: absolute;
  right: 20px;
  bottom: 17px;
  z-index: 2;
  color: var(--project-accent);
  font-family: var(--mono);
  font-size: 11px;
}

.project-thumbnails {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 115px;
  padding: 15px 18px 18px;
  overflow-x: auto;
  border-top: 1px solid rgba(var(--project-rgb), 0.17);
  background: var(--project-strip-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--project-accent) transparent;
}

.project-thumb {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: var(--project-thumb-bg);
  cursor: pointer;
  opacity: 0.58;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-thumb:hover,
.project-thumb:focus-visible,
.project-thumb.is-active {
  border-color: var(--project-accent);
  box-shadow: 0 0 0 2px rgba(var(--project-rgb), 0.18);
  opacity: 1;
  outline: none;
  transform: translateY(-4px);
}

.project-info {
  position: relative;
  padding: 15px 0 26px;
}

.project-type {
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 10px;
}

.project-info h3 {
  margin-bottom: 19px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.project-summary {
  max-width: 385px;
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.project-stack {
  display: flex;
  max-width: 360px;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 55px 0 0;
  list-style: none;
}

.project-stack li {
  padding: 5px 8px;
  color: var(--text-secondary);
  border: 1px solid rgba(240, 201, 110, 0.18);
  font-family: var(--mono);
  font-size: 9px;
}

.project-arrow {
  position: absolute;
  right: 2px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 21px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.project-arrow:hover,
.project-arrow:focus-visible {
  color: var(--accent-ink);
  background: var(--gold);
  outline: none;
  transform: rotate(45deg);
}

.work-note {
  margin: 69px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.work-note a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(240, 201, 110, 0.6);
}

.website-work {
  margin-top: 116px;
  padding-top: 29px;
  border-top: 1px solid var(--line);
}

.website-work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.website-work-heading .section-label {
  margin: 0;
}

.website-work-heading p {
  max-width: 315px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.website-card {
  overflow: hidden;
  border: 1px solid rgba(240, 201, 110, 0.22);
  background: var(--card-surface);
}

.website-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--control-surface);
}

.website-preview::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
}

.website-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.website-card:hover .website-preview img {
  transform: scale(1.035);
}

.website-card-copy {
  min-height: 182px;
  padding: 26px 28px 29px;
  border-top: 1px solid rgba(240, 201, 110, 0.13);
}

.website-card-copy .project-type {
  margin-bottom: 11px;
}

.website-card-copy h3 {
  margin-bottom: 13px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.website-card-copy > p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact {
  padding-top: 92px;
  background: var(--surface-deep);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  border: 1px solid rgba(240, 201, 110, 0.3);
  background: var(--contact-panel);
}

.contact-copy {
  padding: 77px 7vw 77px 6.5vw;
}

.contact-copy h2 {
  margin-bottom: 23px;
}

.contact-copy > p {
  max-width: 405px;
  margin-bottom: 31px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.email-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 5px;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 700;
}

.contact-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px 5.8vw 55px 4.7vw;
  border-left: 1px solid rgba(240, 201, 110, 0.22);
  background: var(--panel-overlay);
}

.social-title {
  margin-bottom: 21px;
  color: var(--gold);
}

.social-grid {
  display: grid;
  gap: 9px;
}

.social-button {
  display: grid;
  grid-template-columns: 23px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 47px;
  padding: 0 14px;
  color: var(--text-secondary);
  border: 1px solid rgba(240, 201, 110, 0.16);
  font-size: 13px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.social-button svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.social-button b {
  color: var(--gold);
  font-size: 15px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.social-button:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(240, 201, 110, 0.08);
  transform: translateX(4px);
}

.social-button:hover b {
  transform: translate(2px, -2px);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line-neutral);
  background: var(--ink);
}

.site-footer .brand img {
  width: 29px;
  height: 29px;
}

.site-footer .brand {
  font-size: 15px;
}

.site-footer p,
.back-top {
  margin: 0;
  color: var(--text-subtle);
  font-family: var(--mono);
  font-size: 10px;
}

.back-top {
  color: var(--gold);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 34px, 620px);
  }

  .nav-wrap {
    min-height: 76px;
  }

  .main-nav {
    display: none;
  }

  .nav-cta {
    font-size: 12px;
  }

  .nav-actions {
    gap: 12px;
  }

  .theme-toggle {
    min-height: 36px;
    padding-inline: 9px;
  }

  .hero {
    min-height: auto;
    padding: 138px 0 95px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 0;
  }

  .hero-art {
    min-height: 300px;
    order: -1;
  }

  .hero-art img {
    width: min(85%, 320px);
  }

  .art-note {
    right: 4%;
    bottom: 4%;
  }

  .scroll-cue {
    display: none;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 5rem);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions {
    gap: 18px;
  }

  .button {
    min-height: 49px;
  }

  .section {
    padding: 83px 0;
  }

  .about-grid,
  .capabilities-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-grid {
    padding-bottom: 58px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:not(:first-child) {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle-number {
    margin-bottom: 22px;
  }

  .service-row {
    grid-template-columns: 29px 1fr;
    gap: 8px 12px;
  }

  .service-row p {
    grid-column: 2;
  }

  .service-row h3 {
    font-size: 19px;
  }

  .work-heading {
    display: block;
    margin-bottom: 40px;
  }

  .work-heading > p {
    margin-top: 20px;
  }

  .project-list {
    gap: 51px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .project-visual {
    min-height: 478px;
  }

  .project-stage {
    min-height: 370px;
    padding-inline: 25px;
  }

  .project-device {
    width: min(67%, 250px);
    height: 305px;
  }

  .project-info h3 {
    font-size: 2.25rem;
  }

  .project-arrow {
    right: 0;
  }

  .website-work {
    margin-top: 76px;
  }

  .website-work-heading {
    display: block;
  }

  .website-work-heading p {
    margin-top: 13px;
  }

  .website-grid {
    grid-template-columns: 1fr;
  }

  .website-card-copy {
    min-height: auto;
    padding: 22px 22px 25px;
  }

  .contact {
    padding-top: 50px;
  }

  .contact-copy,
  .contact-side {
    padding: 48px 27px;
  }

  .contact-side {
    border-top: 1px solid rgba(240, 201, 110, 0.22);
    border-left: 0;
  }

  .site-footer {
    padding: 23px 0;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 390px) {
  .nav-actions {
    gap: 8px;
  }

  .theme-toggle {
    gap: 4px;
    padding-inline: 7px;
  }

  .nav-cta {
    gap: 5px;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-device {
    width: min(72%, 230px);
    height: 290px;
  }

  .project-thumb {
    flex-basis: 50px;
    width: 50px;
    height: 70px;
  }
}

@media (max-width: 350px) {
  .theme-toggle-label {
    display: none;
  }
}
