/* ONENZERO STUDIO — theme, sections, then responsive refinements. */
:root {
  --bg:#10110f;
  --fg:#f4f5ef;
  --muted:#a4a79c;
  --lime:#d1fc73;
  --line:#32352d;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:25px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.5;
}

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

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:2px solid var(--lime);
  outline-offset:6px;
}

::selection {
  background:var(--lime);
  color:var(--bg);
}

.wrap {
  width:min(1320px,calc(100% - 112px));
  margin:auto;
}

.skip {
  position:absolute;
  top:-100px;
  background:var(--lime);
  color:#10110f;
  padding:10px;
  z-index:10;
}

.skip:focus {
  top:10px;
}

header {
  height:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.wordmark {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:750;
  font-size:16px;
  letter-spacing:.02em;
  line-height:1.1;
}

.studio-word {
  display:block;
  font-size:11px;
  letter-spacing:.43em;
  margin-top:5px;
}

.small-mark {
  font-size:48px;
  letter-spacing:-.11em;
  font-weight:400;
  line-height:1;
  padding-right:6px;
}

header nav {
  display:flex;
  gap:38px;
  font-size:14px;
}

header nav a {
  color:var(--muted);
}

header nav a:hover {
  color:var(--lime);
}

.nav-contact {
  font-size:14px;
  border:1px solid #55594c;
  border-radius:30px;
  padding:11px 19px;
}

.nav-contact span {
  margin-left:22px;
}

.eyebrow {
  font:12px/1.6 var(--mono);
  letter-spacing:.09em;
}

.hero-top {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  margin-top:36px;
}

.hero-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:6%;
  align-items:center;
  padding:54px 0 58px;
}

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

h1 {
  font-size:clamp(64px,7.5vw,110px);
  font-weight:500;
  letter-spacing:-.065em;
  line-height:.99;
}

em {
  font-family:Georgia,serif;
  font-weight:400;
}

h1 em {
  color:var(--lime);
}

.hero-heading>p {
  max-width:420px;
  color:var(--muted);
  line-height:1.7;
  margin:28px 0;
  font-size:17px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:35px;
  padding:17px 24px;
  border:0;
  border-radius:2px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s,transform .2s;
}

.lime {
  background:var(--lime);
  color:#10110f;
}

.button:hover {
  background:#e1ffa5;
  transform:translateY(-2px);
}

.identity {
  position:relative;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:22px;
  border:1px solid #424737;
  background-color:#181c12;
  background-image:linear-gradient(#cfff7010 1px,transparent 1px),linear-gradient(90deg,#cfff7010 1px,transparent 1px);
  background-size:32px 32px;
  overflow:hidden;
  min-height:390px;
}

.identity-coordinate,.identity-bottom {
  font:11px/1.5 var(--mono);
  color:var(--lime);
  letter-spacing:.04em;
}

.giant-mark {
  font-family:Arial,sans-serif;
  font-size:clamp(180px,25vw,340px);
  letter-spacing:-.12em;
  font-weight:400;
  line-height:1;
  text-align:center;
  transform:translateX(-.04em);
  color:var(--lime);
}

.identity-bottom {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  gap:12px;
}

.hero-bottom {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  padding:22px 0 30px;
  font:12px var(--mono);
  color:var(--muted);
}

.hero-bottom a span {
  margin-left:30px;
}

.ticker {
  display:flex;
  gap:34px;
  overflow:hidden;
  white-space:nowrap;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:20px 0;
  color:var(--lime);
  font-size:clamp(28px,4.2vw,60px);
  letter-spacing:-.035em;
  font-weight:700;
}

.ticker .outline {
  color:transparent;
  -webkit-text-stroke:1px #888f7a;
}

section.work,section.services,section.approach {
  padding-top:100px;
  padding-bottom:20px;
}

.section-heading {
  display:grid;
  grid-template-columns:1fr 1.65fr 1fr;
  gap:35px;
  margin-bottom:48px;
  align-items:start;
}

.section-heading>.eyebrow {
  color:var(--muted);
  padding-top:10px;
}

h2 {
  font-size:clamp(34px,3.8vw,54px);
  font-weight:400;
  letter-spacing:-.045em;
  line-height:1.1;
}

.section-heading>p {
  color:var(--muted);
  font-size:16px;
  align-self:end;
}

.project {
  border:1px solid var(--line);
  background:#181a15;
}

.project-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:30px 36px;
}

.project-heading .eyebrow {
  color:var(--muted);
  font-size:11px;
}

.project h3 {
  font-size:48px;
  letter-spacing:-.045em;
  margin-top:3px;
}

.project h3 span {
  display:none;
}

.round-link {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border:1px solid #606652;
  border-radius:50%;
  font-size:27px;
}

.round-link:hover {
  background:var(--lime);
  color:var(--bg);
}

.project-image {
  display:block;
  background:#d9f671;
  overflow:hidden;
}

.project-image img {
  width:100%;
  height:auto;
  display:block;
  transition:transform .5s;
}

.project-image:hover img {
  transform:scale(1.015);
}

.project-foot {
  padding:32px 36px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
}

.project-foot>p {
  font-size:24px;
  letter-spacing:-.025em;
}

.project-foot strong {
  font-weight:400;
  color:var(--lime);
}

.project-foot>div>p {
  font-size:16px;
  color:var(--muted);
  max-width:530px;
}

.tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.tags span {
  font:11px/1.5 var(--mono);
  border:1px solid #484d40;
  padding:6px 9px;
  color:#bec3b3;
}

.powered {
  padding:14px 36px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font:11px var(--mono);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.powered span {
  font-size:24px;
  color:var(--lime);
  letter-spacing:-.1em;
}

.services {
  margin-bottom:80px;
}

.service-list {
  border-top:1px solid var(--line);
}

details {
  border-bottom:1px solid var(--line);
}

summary {
  list-style:none;
  display:grid;
  grid-template-columns:90px 1fr 40px;
  align-items:center;
  padding:28px 0;
  cursor:pointer;
  gap:20px;
}

summary::-webkit-details-marker {
  display:none;
}

.service-number {
  font:14px var(--mono);
  color:var(--muted);
}

summary h3 {
  font-size:clamp(21px,2.5vw,32px);
  font-weight:400;
  letter-spacing:-.03em;
}

.expand {
  font-size:29px;
  color:var(--lime);
  font-weight:300;
  justify-self:end;
}

details[open] .expand {
  transform:rotate(45deg);
}

details[open] h3 {
  color:var(--lime);
}

.service-content {
  padding:0 60px 34px 110px;
  max-width:830px;
}

.service-content p {
  color:var(--muted);
  line-height:1.7;
}

.studio-section {
  background:var(--lime);
  color:var(--bg);
  padding:85px 0;
}

.studio-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
}

.studio-grid h2 {
  margin-top:38px;
  font-size:clamp(38px,4.5vw,66px);
}

.founder {
  display:flex;
  gap:15px;
  align-items:center;
  margin-top:40px;
}

.founder-avatar {
  border:1px solid #6b823b;
  border-radius:50%;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  font:14px var(--mono);
}

.founder strong {
  font-size:16px;
}

.founder div span {
  display:block;
  font-size:12px;
  margin-top:3px;
}

.studio-copy .large-copy {
  font-size:26px;
  line-height:1.4;
  letter-spacing:-.025em;
  margin-bottom:26px;
}

.studio-copy>p:not(.large-copy) {
  font-size:16px;
  margin-bottom:18px;
  color:#364022;
  line-height:1.75;
}

.text-link {
  display:inline-block;
  border-bottom:1px solid #10110f;
  margin-top:7px;
  padding-bottom:5px;
  font-size:14px;
}

.studio-section a:focus-visible {
  outline-color:#10110f;
}

.approach .section-heading {
  grid-template-columns:1fr 2.8fr;
}

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

.steps article {
  border-top:1px solid var(--line);
  padding-top:24px;
}

.step-num {
  font:12px var(--mono);
  color:var(--lime);
}

.steps h3 {
  font-size:22px;
  font-weight:400;
  letter-spacing:-.025em;
  margin:28px 0 14px;
}

.steps p {
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.contact {
  margin-top:100px;
  padding:75px 0 90px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
}

.contact-intro>.eyebrow {
  color:var(--muted);
}

.contact h2 {
  font-size:clamp(50px,6vw,85px);
  margin:32px 0;
}

.contact h2 em {
  color:var(--lime);
}

.contact-intro>p {
  color:var(--muted);
  max-width:370px;
  line-height:1.75;
}

.contact-note {
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  max-width:345px;
  margin-top:32px;
}

form label {
  font-size:14px;
  display:block;
  margin-bottom:25px;
}

.optional {
  color:var(--muted);
  font-size:12px;
}

input,select,textarea {
  width:100%;
  display:block;
  background:transparent;
  border:0;
  border-bottom:1px solid #525747;
  border-radius:0;
  padding:12px 0;
  color:var(--fg);
  outline:none;
  font-size:16px;
  margin-top:5px;
}

select option {
  background:var(--bg);
}

input:focus,select:focus,textarea:focus {
  border-color:var(--lime);
  box-shadow:0 1px var(--lime);
}

input::placeholder,textarea::placeholder {
  color:#8c9180;
}

textarea {
  resize:vertical;
  min-height:105px;
}

.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}

.form-status {
  font-size:14px;
  color:var(--lime);
  margin-top:16px;
  min-height:22px;
}

footer {
  border-top:1px solid var(--line);
}

.footer-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:40px 0;
  gap:25px;
}

.footer-top p {
  font-size:14px;
  color:var(--muted);
}

.footer-top>a:last-child {
  font-size:14px;
}

.footer-bottom {
  padding:22px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  font:11px var(--mono);
  color:var(--muted);
}

@media(min-width:1600px) {
  .hero-grid {
    padding-top:75px;
    padding-bottom:75px;
  }
}

@media(max-width:1000px) {
  .wrap {
    width:calc(100% - 64px);
  }
  .hero-grid {
    gap:30px;
  }
  h1 {
    font-size:74px;
  }
  .identity {
    min-height:360px;
    padding:16px;
  }
  .hero-heading>p {
    font-size:16px;
  }
  .section-heading {
    grid-template-columns:1fr 2fr;
  }
  .section-heading>p {
    grid-column:2;
  }
  .studio-grid,.contact {
    gap:45px;
  }
  .project-foot {
    gap:30px;
  }
  .identity-bottom {
    font-size:9px;
  }
  .steps {
    gap:25px;
  }
}

@media(max-width:700px) {
  .wrap {
    width:calc(100% - 40px);
  }
  header {
    height:88px;
  }
  .wordmark {
    font-size:13px;
    gap:9px;
  }
  .studio-word {
    font-size:9px;
  }
  .small-mark {
    font-size:39px;
  }
  header nav {
    gap:18px;
  }
  header nav a {
    font-size:13px;
  }
  header nav a:last-child {
    display:none;
  }
  .nav-contact {
    display:none;
  }
  .hero-top {
    font-size:10px;
    gap:20px;
    margin-top:25px;
  }
  .hero-top span:last-child {
    text-align:right;
    max-width:120px;
  }
  .hero-grid {
    grid-template-columns:1fr;
    padding:42px 0 30px;
    gap:35px;
  }
  h1 {
    font-size:clamp(59px,13vw,85px);
  }
  .hero-heading>p {
    max-width:360px;
  }
  .identity {
    min-height:300px;
    aspect-ratio:1.4;
  }
  .giant-mark {
    font-size:clamp(190px,56vw,300px);
  }
  .identity-bottom {
    font-size:10px;
  }
  .hero-bottom {
    font-size:10px;
    gap:25px;
    line-height:1.6;
  }
  .hero-bottom a {
    max-width:145px;
    text-align:right;
  }
  .hero-bottom a span {
    margin-left:8px;
  }
  .ticker {
    font-size:30px;
    padding:16px 0;
    gap:24px;
  }
  section.work,section.services,section.approach {
    padding-top:65px;
  }
  .section-heading,.approach .section-heading {
    grid-template-columns:1fr;
    gap:20px;
    margin-bottom:28px;
  }
  .section-heading>p {
    grid-column:auto;
  }
  .section-heading h2 {
    font-size:39px;
  }
  .project-heading {
    padding:22px;
  }
  .project-heading .eyebrow {
    font-size:9px;
  }
  .project h3 {
    font-size:38px;
  }
  .round-link {
    width:44px;
    height:44px;
  }
  .project-foot {
    padding:24px;
    grid-template-columns:1fr;
    gap:20px;
  }
  .project-foot>p {
    font-size:23px;
  }
  .project-image {
    padding:0;
  }
  .powered {
    padding:14px 24px;
    font-size:9px;
  }
  .tags span {
    font-size:10px;
  }
  .services {
    margin-bottom:50px;
  }
  summary {
    grid-template-columns:28px 1fr 25px;
    gap:12px;
    padding:24px 0;
  }
  summary h3 {
    font-size:23px;
  }
  .service-content {
    padding:0 15px 28px 40px;
  }
  .service-content p {
    font-size:16px;
  }
  .studio-section {
    padding:55px 0;
  }
  .studio-grid {
    grid-template-columns:1fr;
    gap:40px;
  }
  .studio-grid h2 {
    margin-top:25px;
    font-size:48px;
  }
  .founder {
    margin-top:28px;
  }
  .studio-copy .large-copy {
    font-size:24px;
  }
  .steps {
    grid-template-columns:1fr;
    gap:30px;
  }
  .steps h3 {
    margin-top:20px;
  }
  .contact {
    margin-top:60px;
    grid-template-columns:1fr;
    gap:35px;
    padding:50px 0;
  }
  .contact h2 {
    font-size:64px;
  }
  .contact-note {
    max-width:100%;
  }
  .field-row {
    grid-template-columns:1fr;
    gap:0;
  }
  .footer-top {
    flex-wrap:wrap;
  }
  .footer-top p {
    font-size:12px;
  }
  .footer-top>a:last-child {
    font-size:13px;
  }
  .footer-bottom {
    font-size:9px;
    gap:20px;
  }
  .eyebrow {
    font-size:11px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }
}

.hero-logo {
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:365px;
  object-fit:contain;
  filter:invert(1);
  mix-blend-mode:screen;
  margin:auto;
}

@media(max-width:700px) {
  .hero-logo {
    max-height:290px;
  }
}

/* Compact BizOps showcase */
.project {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
}

.project-heading {
  grid-column:1;
  grid-row:1;
  padding:22px 28px 0;
}

.project h3 {
  font-size:34px;
}

.project-heading .round-link {
  width:40px;
  height:40px;
  font-size:22px;
}

.project-image {
  grid-column:2;
  grid-row:1 / 3;
  align-self:center;
  margin:22px 24px 22px 0;
  background:transparent;
  border:1px solid var(--line);
}

.project-foot {
  grid-column:1;
  grid-row:2;
  padding:16px 28px 24px;
  display:block;
}

.project-foot>p {
  font-size:19px;
  margin-bottom:12px;
}

.project-foot>div>p {
  font-size:14px;
  max-width:650px;
}

.project-foot .tags {
  margin-top:14px;
}

.powered {
  grid-column:1 / -1;
  padding:10px 28px;
}

footer {
  margin-top:0;
}

@media(max-width:700px) {
  .project {
    grid-template-columns:minmax(0,1fr);
  }
  .project-heading {
    padding:22px 22px 0;
  }
  .project-image {
    grid-column:1;
    grid-row:3;
    width:220px;
    max-width:calc(100% - 44px);
    margin:0 22px 22px;
    justify-self:start;
  }
  .project-foot {
    padding:16px 22px 22px;
  }
  .powered {
    grid-row:4;
    padding:10px 22px;
  }
  footer {
    margin-top:0;
  }
}

/* Smaller controls with comfortable touch targets. */
.button {
  min-height: 44px;
  padding: 10px 18px;
  gap: 0;
  font-size: 14px;
  justify-content: center;
}
.nav-contact {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.project-heading .round-link {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 2px;
  font-size: 14px;
  white-space: nowrap;
}
.project-heading { gap: 16px; flex-wrap: wrap; }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Fluid sizing prevents long text and grid children forcing overflow. */
.hero-grid > *, .section-heading > *, .studio-grid > *,
.contact > *, .field-row > *, .project > *, .steps > * {
  min-width: 0;
}
img { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; }
.contact-note, .form-status, .tags span { overflow-wrap: anywhere; }
header nav a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 700px) {
  /* All navigation stays available on phones without a hidden menu. */
  header {
    height: auto;
    min-height: 88px;
    padding: 18px 0 10px;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  header nav {
    order: 3;
    flex: 0 0 100%;
    gap: 28px;
    justify-content: center;
  }
  header nav a:last-child { display: inline-flex; }
  header .nav-contact { display: inline-flex; font-size: 13px; padding: 8px 14px; }
  h1 { font-size: clamp(48px, 12vw, 78px); }
  .identity-coordinate { font-size: 10px; }
  .identity-bottom { font-size: 9px; flex-wrap: wrap; }
  .section-heading h2 { font-size: clamp(30px, 8vw, 39px); }
  .studio-grid h2 { font-size: clamp(36px, 10vw, 48px); }
  .contact h2 { font-size: clamp(44px, 13vw, 64px); }
  .hero-bottom { align-items: flex-start; }
  .project h3 { font-size: 30px; }
  .project-heading .round-link { font-size: 13px; padding: 8px 12px; }
  .service-content { padding-left: 40px; padding-right: 0; }
  summary { grid-template-columns: 24px minmax(0, 1fr) 22px; }
  summary h3 { font-size: clamp(19px, 5.5vw, 23px); }
  .footer-bottom { flex-wrap: wrap; line-height: 1.6; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero-top { flex-wrap: wrap; gap: 8px; }
  .hero-top span:last-child { text-align: left; max-width: none; }
  .hero-bottom { flex-wrap: wrap; gap: 12px; }
  .hero-bottom a { text-align: left; max-width: none; }
  .identity { min-height: 250px; }
  .identity-coordinate { font-size: 9px; }
  .project-heading { padding-left: 18px; padding-right: 18px; }
}

.ticker {
  display: block;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-left 25s linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 34px;
  min-width: 100vw;
  padding-right: 34px;
}

.ticker-group span {
  white-space: nowrap;
}

@keyframes ticker-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}
/* One shared duration keeps every animation in sync. */
.logo-animation {
  --logo-duration: 5s;

  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 460px;
  margin: auto;
  aspect-ratio: 1389 / 1132;
  overflow: hidden;
  border-radius: 4px;

  animation: logo-background var(--logo-duration) ease-in-out infinite;
}

.logo-switch {
  position: absolute;
  inset: 0;
  transform-origin: center;

  animation: logo-press-zoom var(--logo-duration) ease-in-out infinite;
}

.logo-switch img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

/* White logo over the dark background. */
.logo-original {
  mix-blend-mode: screen;
  animation: logo-original-fade var(--logo-duration) ease-in-out infinite;
}

/* Dark alternate logo over the lime background. */
.logo-alternate {
  opacity: 0;
  mix-blend-mode: multiply;
  animation: logo-alternate-fade var(--logo-duration) ease-in-out infinite;
}

/* A small ripple makes the press look like a click. */
.logo-click-ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border: 2px solid var(--lime, #d1fc73);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;

  animation: logo-click var(--logo-duration) ease-out infinite;
}

@keyframes logo-press-zoom {
  0%, 18% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.94);
  }
  42%, 70% {
    transform: scale(1.12);
  }
  88%, 100% {
    transform: scale(1);
  }
}

@keyframes logo-background {
  0%, 25%, 90%, 100% {
    background-color: transparent;
  }
  42%, 70% {
    background-color: var(--lime, #d1fc73);
  }
}

@keyframes logo-original-fade {
  0%, 25%, 90%, 100% {
    opacity: 1;
  }
  42%, 70% {
    opacity: 0;
  }
}

@keyframes logo-alternate-fade {
  0%, 25%, 90%, 100% {
    opacity: 0;
  }
  42%, 70% {
    opacity: 1;
  }
}

@keyframes logo-click {
  0%, 18% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  24% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.6);
  }
  40%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-animation,
  .logo-switch,
  .logo-switch img,
  .logo-click-ring {
    animation: none;
  }

  .logo-original {
    opacity: 1;
  }

  .logo-alternate,
  .logo-click-ring {
    display: none;
  }
}

.logo-animation {
  background: transparent;
  animation: none;
}

.logo-switch .logo-alternate {
  filter: brightness(0) saturate(100%)
          invert(91%) sepia(53%) saturate(518%)
          hue-rotate(26deg) brightness(103%) contrast(98%);
  mix-blend-mode: normal;
}

/* Keep both containers dark/transparent. */
.identity {
  animation: none;
  color: inherit;
  background-color: #181c12;
  background-image:
    linear-gradient(#cfff7010 1px, transparent 1px),
    linear-gradient(90deg, #cfff7010 1px, transparent 1px);
}

.logo-animation {
  background: transparent;
  animation: none;
}

@keyframes logo-original-fade {
  0%, 10%, 96%, 100% { opacity: 1; }
  24%, 86% { opacity: 0; }
}

@keyframes logo-alternate-fade {
  0%, 10%, 96%, 100% { opacity: 0; }
  24%, 86% { opacity: 1; }
}

/* Hold the zoom while the green logo is visible. */
@keyframes logo-press-zoom {
  0%, 10% { transform: scale(1); }
  17% { transform: scale(0.94); }
  30%, 86% { transform: scale(1.12); }
  96%, 100% { transform: scale(1); }
}

/* Keep the click ripple aligned with the colour change. */
@keyframes logo-click {
  0%, 10% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  17% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.6);
  }
  30%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}

/* =========================================
   RESPONSIVE LAYOUT FIX
   ========================================= */

/* Allow both desktop columns to shrink properly. */
.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* Keep the logo panel within its parent.
   Remove the aspect ratio that forced extra width. */
.identity {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: auto;
}

/* Scale the animation without shrinking its height
   inside the flex container. */
.logo-animation {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  max-width: 460px;
}

/* Prevent text and form elements from widening grids. */
.hero-heading,
.studio-copy,
.contact-intro,
form,
form label {
  min-width: 0;
}

.hero-top,
.hero-bottom,
.identity-bottom,
.powered {
  flex-wrap: wrap;
}

.hero-top {
  gap: 12px 20px;
}

h1,
h2,
h3,
.identity-coordinate,
.tags span {
  overflow-wrap: anywhere;
}

.ticker {
  max-width: 100%;
}

/* Tablet layout */
@media (min-width: 701px) and (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .identity {
    max-width: 540px;
    justify-self: center;
    min-height: 0;
    gap: 16px;
  }

  .studio-grid,
  .contact,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone layout */
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .identity {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    padding: 14px;
    gap: 14px;
    align-self: start;
  }

  .logo-animation {
    margin: 0 auto;
    max-width: 100%;
    aspect-ratio: 1389 / 1132;
  }

  .identity-bottom {
    gap: 8px 12px;
  }

  .hero-top span:last-child {
    max-width: none;
  }

  .section-heading,
  .approach .section-heading,
  .studio-grid,
  .contact,
  .field-row,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  header nav {
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .project-image {
    width: min(220px, calc(100% - 44px));
    max-width: calc(100% - 44px);
  }

  .powered {
    gap: 12px;
    line-height: 1.6;
  }

  .footer-top {
    flex-wrap: wrap;
  }

  .hero-heading > p {
    margin: 22px 0;
  }
}

/* Compact first screen on phones only. */
@media (max-width: 700px) {
  header {
    min-height: 0;
    padding: 10px 0 6px;
    gap: 4px 12px;
  }

  header nav {
    gap: 4px 24px;
  }

  .hero-top {
    margin-top: 14px;
    gap: 6px 12px;
  }

  .hero-grid {
    padding: 18px 0 14px;
    gap: 16px;
  }

  .hero-heading h1 {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.02;
  }

  .hero-heading > p {
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.45;
  }

  /* Keep the whole grid visible with a smaller logo inside. */
  .identity {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    padding: 10px 12px;
    gap: 8px;
  }

  .identity .logo-animation {
    flex: none;
    height: 120px;
    height: clamp(100px, 18svh, 150px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 1389 / 1132;
    margin: 0 auto;
  }

  .identity-coordinate,
  .identity-bottom {
    font-size: 10px;
    line-height: 1.4;
  }

  .identity-bottom {
    gap: 4px 10px;
  }

  .hero-bottom {
    padding: 12px 0;
    gap: 8px 16px;
  }
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.footer-bottom > span:last-child {
  text-align: right;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.footer-socials svg {
  width: 17px;
  height: 17px;
}

.footer-socials a:hover {
  color: var(--lime);
  border-color: var(--lime);
  background-color: #1b2114;
}

@media (max-width: 700px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer-bottom > span:last-child {
    text-align: center;
  }
}

.nav-contact {
  border-radius: 2px;
  border: 1px solid var(--fg);
}

.nav-contact:hover {
  border-color: var(--lime);
  color: var(--lime);
}