:root {
  color-scheme: dark;
  --ink: #07111c;
  --navy: #0b1b2b;
  --deep-navy: #10283a;
  --surface: rgba(185, 193, 200, 0.08);
  --surface-strong: rgba(185, 193, 200, 0.14);
  --paper: #f3e9d6;
  --muted: rgba(243, 233, 214, 0.74);
  --quiet: rgba(185, 193, 200, 0.66);
  --line: rgba(185, 193, 200, 0.22);
  --silver: #b9c1c8;
  --bright-silver: #d3d8dc;
  --shadow: rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --anchor-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(116deg, rgba(185, 193, 200, 0.13) 0%, rgba(185, 193, 200, 0) 31%),
    linear-gradient(156deg, rgba(211, 216, 220, 0.1) 0%, rgba(211, 216, 220, 0) 28%),
    linear-gradient(135deg, var(--navy) 0%, var(--deep-navy) 48%, #07111c 100%);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(243, 233, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 193, 200, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 17, 28, 0.72) 100%);
  content: "";
}

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

.cursor-orbit {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(211, 216, 220, 0.14) 42% 43%, transparent 43%),
    linear-gradient(180deg, transparent 0 48%, rgba(185, 193, 200, 0.11) 48% 49%, transparent 49%);
  filter: blur(2px);
  opacity: 0.62;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 220ms ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.72);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.site-header nav,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  padding-right: 12px;
  font-size: 0.94rem;
  font-weight: 760;
  white-space: nowrap;
}

.brand-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.36rem;
  min-width: 0;
}

.brand-harry {
  color: var(--paper);
}

.brand-gt {
  margin-top: 0.08em;
  color: var(--silver);
  font-size: 0.58em;
  font-weight: 860;
  letter-spacing: 0.02em;
}

.brand-mark {
  position: relative;
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding-left: 8px;
  border: 1px solid rgba(185, 193, 200, 0.42);
  border-radius: 8px;
  background: var(--navy);
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark-h {
  font-size: 1.48rem;
  line-height: 1;
}

.brand-mark-gt {
  position: absolute;
  top: 7px;
  right: 6px;
  color: var(--silver);
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-header nav {
  gap: 4px;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(185, 193, 200, 0.12);
  color: var(--paper);
  outline: 0;
}

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

#work,
#principles,
#contact {
  scroll-margin-top: var(--anchor-offset);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 82svh;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: 108px 34px;
}

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

h1 {
  display: flex;
  max-width: none;
  align-items: flex-start;
  gap: clamp(0.28rem, 1vw, 0.9rem);
  margin-bottom: 24px;
  font-size: clamp(5.2rem, 14vw, 12.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.76;
}

.hero-name-main {
  position: relative;
  color: var(--paper);
}

.hero-name-main::after {
  position: absolute;
  right: 0.04em;
  bottom: -0.14em;
  left: 0.02em;
  height: 0.035em;
  border-radius: 999px;
  background: var(--silver);
  content: "";
}

.hero-name-spec {
  margin-top: 0.08em;
  color: var(--silver);
  font-size: clamp(1.85rem, 4.8vw, 4.9rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.14rem, 2vw, 1.45rem);
  line-height: 1.55;
}

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

.button {
  min-height: 46px;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--paper);
  color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--bright-silver);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(185, 193, 200, 0.08);
  color: var(--paper);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(211, 216, 220, 0.6);
  background: rgba(185, 193, 200, 0.14);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: clamp(340px, 38vw, 540px);
  place-items: center;
  perspective: 1200px;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.hero-visual::before {
  inset: 8% 6% 11% 9%;
  border: 1px solid rgba(185, 193, 200, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(185, 193, 200, 0.11), rgba(185, 193, 200, 0.03)),
    linear-gradient(90deg, rgba(243, 233, 214, 0.06) 1px, transparent 1px);
  background-size: auto, 82px 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 28px 90px rgba(0, 0, 0, 0.4);
  transform: rotate(-6deg);
}

.hero-visual::after {
  top: 18%;
  right: 7%;
  width: 58%;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(211, 216, 220, 0.66), transparent);
  box-shadow:
    0 112px 0 rgba(185, 193, 200, 0.2),
    0 224px 0 rgba(243, 233, 214, 0.14);
  filter: none;
  opacity: 0.82;
  transform: rotate(-6deg);
  animation: slow-spin 18s linear infinite;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(92%, 520px);
  height: auto;
  filter: drop-shadow(0 34px 52px rgba(0, 0, 0, 0.42));
  transform: rotateX(8deg) rotateY(-14deg);
  animation: float 5.8s ease-in-out infinite;
}

.signal-panel {
  position: absolute;
  right: 0;
  bottom: 16%;
  z-index: 3;
  width: min(240px, 58vw);
  padding: 16px;
  border: 1px solid rgba(243, 233, 214, 0.2);
  border-radius: 8px;
  background: rgba(11, 27, 43, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.signal-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.signal-panel strong {
  display: block;
  color: var(--paper);
  font-size: 1.18rem;
  line-height: 1.2;
}

.work {
  position: relative;
  z-index: 1;
  padding-block: 26px 118px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-heading h2,
.contact h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 870;
  line-height: 0.96;
}

.section-heading p,
.contact p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

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

.focus-card {
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(243, 233, 214, 0.12), rgba(243, 233, 214, 0.045)),
    rgba(16, 40, 58, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.focus-card:hover {
  border-color: rgba(211, 216, 220, 0.48);
  background:
    linear-gradient(160deg, rgba(185, 193, 200, 0.14), rgba(243, 233, 214, 0.045)),
    rgba(16, 40, 58, 0.46);
  transform: translateY(-6px);
}

.card-index {
  display: block;
  margin-bottom: 70px;
  color: var(--silver);
  font-size: 0.8rem;
  font-weight: 860;
}

.focus-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.32rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.focus-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.principles {
  position: relative;
  z-index: 1;
  padding-block: 108px;
  background:
    linear-gradient(180deg, rgba(243, 233, 214, 0.06), rgba(243, 233, 214, 0.02)),
    rgba(11, 27, 43, 0.4);
}

.principles-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.principle-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

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

.principle-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--bright-silver);
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  font-weight: 830;
  line-height: 1.1;
}

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

.contact {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 54svh;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-block: 100px;
}

.contact h2 {
  max-width: 820px;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.9rem;
}

.footer-wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.34rem;
  color: var(--paper);
  font-weight: 830;
}

.footer-wordmark span:last-child {
  margin-top: 0.08em;
  color: var(--silver);
  font-size: 0.58em;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

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

@keyframes slow-spin {
  0%,
  100% {
    opacity: 0.54;
    transform: rotate(-6deg) translateX(-8px);
  }

  50% {
    opacity: 0.9;
    transform: rotate(-6deg) translateX(10px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotateX(8deg) rotateY(-14deg) translateY(0);
  }

  50% {
    transform: rotateX(8deg) rotateY(-14deg) translateY(-12px);
  }
}

@media (max-width: 860px) {
  .cursor-orbit {
    display: none;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .brand {
    padding-right: 6px;
  }

  .brand-text {
    display: none;
  }

  .site-header nav a {
    min-height: 44px;
    padding: 10px 9px;
    font-size: 0.8rem;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 92px 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(5rem, 25vw, 8.7rem);
  }

  .hero-name-spec {
    font-size: clamp(1.5rem, 9vw, 3.2rem);
  }

  .hero-visual {
    min-height: 360px;
  }

  .signal-panel {
    right: 4%;
    bottom: 8%;
  }

  .focus-grid,
  .principles-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: 238px;
  }

  .card-index {
    margin-bottom: 42px;
  }

  .principles {
    padding-block: 76px;
  }

  .contact {
    min-height: auto;
    padding-block: 82px;
  }

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

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

@media (max-width: 470px) {
  .site-header nav {
    gap: 0;
  }

  .site-header nav a {
    padding-inline: 7px;
  }

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

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 230px;
  }

  .hero-visual img {
    width: 60%;
  }

  .work {
    padding-block: 10px 96px;
  }

  .signal-panel {
    width: 176px;
  }
}

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