@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #0e1015;
  --text: #f4f6f9;
  --muted: #98a2b1;
  --muted2: #737d8d;
  --surface: rgba(235, 240, 248, .07);
  --surface2: rgba(235, 240, 248, .12);
  --line: rgba(235, 240, 248, .17);
  --line2: rgba(235, 240, 248, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.2, 1.15, .35, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -8%, rgba(235, 240, 248, .09), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

::selection {
  background: rgba(255, 255, 255, .18);
}

/* Background & Ambient */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.bg-orb {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .1;
}

.orb-a {
  top: -15rem;
  left: 10%;
  background: #e7edf6;
}

.orb-b {
  right: -16rem;
  bottom: -12rem;
  background: #aeb9c9;
}

#ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .25;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, .98);
  transition: opacity .8s var(--ease), visibility .8s var(--ease), backdrop-filter .8s var(--ease);
}

.loading-screen.ready {
  cursor: pointer;
}

.loading-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(22px);
  pointer-events: none;
}

.loading-inner {
  width: min(24rem, calc(100vw - 3rem));
  text-align: center;
  pointer-events: none;
}

.loading-mark {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -.075em;
}

.loading-mark span, .hero h1 span {
  color: var(--muted);
}

.loading-track {
  width: 100%;
  height: 1px;
  margin: 2rem 0 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.loading-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--text);
  animation: loadLine 1.6s var(--ease) forwards;
}

@keyframes loadLine {
  to { width: 100%; }
}

.loading-inner p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.loading-screen.ready #enter-button {
  opacity: 1;
  transform: translateY(0);
}

#enter-button {
  margin-top: 2.2rem;
  border: 1px solid var(--line2);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--surface2);
  opacity: 0;
  transform: translateY(8px);
  cursor: pointer;
  color: var(--text);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: opacity .5s var(--ease), transform .5s var(--spring), background .3s var(--ease), border-color .3s var(--ease);
}

#enter-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text);
}

#enter-button span {
  font-size: .82rem;
}

#enter-button b {
  margin-left: .45rem;
  color: var(--muted);
  font-weight: 400;
}

/* Fixed Navbar (Fluid Dynamic Island) */
.chrome {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  pointer-events: none;
}

.chrome-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 8.2rem;
  height: 3rem;
  padding: 0 .75rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(22, 24, 30, .75);
  box-shadow: 0 15px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  pointer-events: auto;
  overflow: hidden;
  /* Smooth fluid spring transition */
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.4s ease, 
              box-shadow 0.4s ease;
}

.chrome-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 40%, transparent 70%, rgba(255, 255, 255, .04));
  opacity: .7;
  pointer-events: none;
}

/* Expanded State (Home Page) */
.chrome:hover .chrome-pill,
.chrome:focus-within .chrome-pill,
.chrome.is-open .chrome-pill {
  width: min(44rem, calc(100vw - 2rem));
  height: 3.35rem;
  background: rgba(28, 30, 37, .82);
  box-shadow: 0 20px 65px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .09);
}

/* Compact Expanded State (Contact Page - stays small since it only has 'Back Home') */
.chrome.chrome-compact:hover .chrome-pill,
.chrome.chrome-compact:focus-within .chrome-pill,
.chrome.chrome-compact.is-open .chrome-pill {
  width: min(16.5rem, calc(100vw - 2rem));
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand::after {
  content: ".";
  color: var(--muted);
  display: inline;
}

/* Staggered smooth fade-in for internal links so they don't pop awkwardly */
.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease 0.08s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.chrome:hover .nav-links,
.chrome:focus-within .nav-links,
.chrome.is-open .nav-links {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-links a {
  padding: .35rem .75rem;
  color: var(--muted);
  font-size: .7rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
}

.chrome-action {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  transition: color 0.25s ease, background 0.25s ease, transform 0.35s cubic-bezier(0.2, 1.15, 0.35, 1);
}

.chrome-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px) rotate(4deg);
}

/* Sections & Layout */
.section {
  width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(7.5rem, 15vw, 12rem) 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, 3fr) minmax(8rem, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.hero-label, .hero-side {
  color: var(--muted);
  font-size: .72rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  justify-self: end;
  text-align: right;
}

.hero-side strong {
  color: var(--text);
  font-weight: 500;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: .82;
  letter-spacing: -.095em;
  font-weight: 600;
}

.hero-sub {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  transition: transform .35s var(--spring), background .3s var(--ease), border-color .3s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line2);
}

.button-solid {
  background: var(--text);
  border-color: var(--text);
  color: #0b0c0f;
}

.button-ghost {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.ticker-track {
  display: flex;
  width: 200vw;
  align-items: stretch;
  min-height: 3.8rem;
  animation: ticker 24s linear infinite;
  will-change: transform;
}

.ticker-set {
  width: 100vw;
  min-width: 100vw;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  padding: 0 1.4rem;
  flex: none;
}

.ticker-set span, .ticker-set i {
  justify-self: center;
}

.ticker-set span {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  white-space: nowrap;
}

.ticker-set i {
  color: var(--muted2);
  font-style: normal;
  font-size: .65rem;
}

@keyframes ticker {
  to { transform: translateX(-50vw); }
}

/* Section Headings & Cards */
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-head > div {
  display: flex;
  align-items: baseline;
  gap: .7rem;
}

.section-number {
  color: var(--muted2);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.055em;
  font-weight: 500;
}

.section-head p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
  text-align: right;
}

.project-card, .service-panel, .contact-card, .about-statement, .about-notes, .contact-form-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  padding-top: .8rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  transition: transform .6s var(--spring), border-color .35s var(--ease), background .35s var(--ease);
}

.project-card:hover {
  border-color: var(--line2);
  background: var(--surface2);
}

.project-meta, .project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.project-meta {
  padding: 1rem 1rem 0;
  color: var(--muted2);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-visual {
  position: relative;
  height: 18rem;
  margin: .8rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: #0d0f14;
}

.visual-amv {
  background: radial-gradient(circle at 70% 35%, rgba(255, 255, 255, .16), transparent 15rem), linear-gradient(135deg, #11141a, #08090c);
}

.visual-glow {
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: 15%;
  top: 18%;
  border-radius: 50%;
  background: rgba(220, 228, 240, .12);
  filter: blur(35px);
}

.visual-line {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, .35);
  transform-origin: left center;
}

.line-a {
  top: 43%;
  left: 10%;
  width: 78%;
  transform: rotate(-10deg);
}

.line-b {
  top: 60%;
  left: 18%;
  width: 65%;
  transform: rotate(13deg);
  opacity: .5;
}

.visual-word {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: rgba(255, 255, 255, .7);
  font-size: .62rem;
  letter-spacing: .25em;
}

.visual-brand {
  display: grid;
  place-items: center;
  background: #0a0c10;
}

.brand-mark {
  position: relative;
  z-index: 2;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.08em;
}

.brand-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}

.ring-a {
  width: 10rem;
  height: 10rem;
}

.ring-b {
  width: 15rem;
  height: 15rem;
  opacity: .55;
}

.visual-web {
  padding-top: 1.2rem;
  background: #0b0d11;
}

.browser-bar {
  display: flex;
  gap: .35rem;
  padding: 0 1rem;
}

.browser-bar i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.browser-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: .7rem;
  padding: 1.4rem;
}

.browser-content span {
  min-height: 5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .05);
}

.browser-content span:first-child {
  grid-row: span 2;
}

.project-foot {
  padding: .15rem 1rem 1rem;
}

.project-foot h3 {
  margin: 0;
  font-size: .92rem;
  font-weight: 500;
}

.project-foot span {
  color: var(--muted);
  font-size: .68rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: .8rem;
  margin-top: .8rem;
}

.about-statement, .about-notes {
  border-radius: 24px;
}

.about-statement {
  display: flex;
  align-items: end;
  min-height: 24rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.about-statement p {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.about-notes {
  padding: 1.2rem 1.4rem;
}

.note-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
}

.note-row:last-child {
  border: 0;
}

.note-row span {
  color: var(--muted);
}

.note-row strong {
  font-weight: 500;
  text-align: right;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .8rem;
}

.service-panel {
  position: relative;
  min-height: 23rem;
  padding: 1.4rem;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .6s var(--spring), border-color .35s var(--ease), background .35s var(--ease);
}

.service-panel:hover {
  background: var(--surface2);
  border-color: var(--line2);
}

.service-index {
  color: var(--muted2);
  font-size: .68rem;
}

.service-panel h3 {
  margin: 8rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.service-panel p {
  max-width: 17rem;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.65;
}

.service-arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: var(--muted);
  transition: transform .35s var(--spring);
}

.service-panel:hover .service-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* Contact & Elsewhere */
.contact-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: 28px;
}

.contact-card h2 {
  margin: .6rem 0 .8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 500;
}

.contact-card p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .88rem;
}

.elsewhere-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: .8rem;
}

.elsewhere-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  transition: transform .35s var(--spring), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.elsewhere-link:hover {
  color: var(--text);
  border-color: var(--line2);
  background: var(--surface2);
  transform: translateY(-3px);
}

.elsewhere-link b {
  font-weight: 400;
}

/* Perfectly Centered Contact Page Layout */
.contact-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  text-align: center;
}

.contact-page-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 38rem;
  margin-top: 2.5rem;
  gap: 2rem;
}

.contact-intro {
  max-width: 100%;
  text-align: center;
}

.contact-intro h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: -.08em;
}

.contact-intro > p {
  margin: 1.2rem auto 0;
  max-width: 30rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}

.contact-form-wrap {
  border-radius: 24px;
  padding: 2rem;
  width: 100%;
  text-align: left;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: .55rem;
}

label > span {
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  outline: 0;
  padding: .9rem 1rem;
  resize: vertical;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

input:focus, textarea:focus {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .03);
}

textarea {
  min-height: 10rem;
}

.form-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
}

.form-status {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.form-status.success {
  color: #dfe8df;
}

.form-status.error {
  color: #e6d1d1;
}

/* Footer */
.footer {
  width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted2);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Reveal Animations */
.reveal, .reveal-soft, .reveal-hero {
  --depth-blur: 0px;
  --depth-opacity: 1;
  --depth-y: 0px;
  transform: translate3d(0, var(--depth-y), 0);
  filter: blur(var(--depth-blur));
  opacity: var(--depth-opacity);
  transition: opacity .9s var(--ease), transform 1s var(--spring), filter .8s var(--ease);
}

.reveal:not(.is-visible), .reveal-soft:not(.is-visible), .reveal-hero:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.reveal-hero:not(.is-visible) {
  transform: translate3d(0, 30px, 0) scale(.99);
}

/* Modals & Windows */
.window-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.window-layer.is-open {
  pointer-events: auto;
}

.window-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, .46);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.window-layer.is-open .window-backdrop {
  opacity: 1;
}

.project-window {
  position: relative;
  width: min(38rem, calc(100vw - 2rem));
  border: 1px solid var(--line2);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(16, 17, 21, .84);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  transform: translateY(25px) scale(.95);
  transition: opacity .5s var(--ease), transform .6s var(--spring);
  display: none;
}

.project-window.is-open {
  display: block;
  opacity: 1;
  transform: none;
}

.window-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 .75rem;
  border-bottom: 1px solid var(--line);
  font-size: .65rem;
  color: var(--muted);
}

.window-topbar > span {
  justify-self: center;
}

.window-dots {
  display: flex;
  gap: .35rem;
}

.window-dots i {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.window-close {
  justify-self: end;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.window-close:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.window-body {
  padding: 2rem;
}

.window-kicker {
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.window-body h3 {
  margin: .6rem 0 1rem;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  letter-spacing: -.075em;
  line-height: .9;
  font-weight: 500;
}

.window-body p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; text-align: left; margin-top: 2rem; }
  .work-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .ticker-set { padding: 0 .65rem; }
  .ticker-set span { font-size: .58rem; }
  .ticker-set i { font-size: .54rem; }
  .chrome { top: .65rem; width: calc(100vw - 1rem); }
  .chrome-pill { width: 7rem; height: 2.8rem; }
  .chrome:hover .chrome-pill, .chrome:focus-within .chrome-pill, .chrome.is-open .chrome-pill { width: calc(100vw - 1rem); height: 3.2rem; }
  .chrome.chrome-compact:hover .chrome-pill, .chrome.chrome-compact:focus-within .chrome-pill, .chrome.chrome-compact.is-open .chrome-pill { width: calc(100vw - 1rem); }
  .section { width: calc(100vw - 1.2rem); padding: 6.5rem 0; }
  .hero { padding-top: 7rem; }
  .hero h1 { font-size: clamp(4.5rem, 25vw, 7.5rem); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head p { text-align: left; }
  .work-grid, .services-grid, .elsewhere-grid { grid-template-columns: 1fr; }
  .project-visual { height: 15rem; }
  .about-statement { min-height: 19rem; }
  .service-panel { min-height: 18rem; }
  .service-panel h3 { margin-top: 5rem; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .form-bottom .button { width: 100%; }
  .footer { width: calc(100vw - 1.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Top Glass / Edge Fade */
body::before {
  content: "";
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 8.5rem;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(14, 16, 21, .92) 0%,
    rgba(14, 16, 21, .72) 28%,
    rgba(14, 16, 21, .30) 58%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
}