/* Unified SVG controls, larger typography and animated overlays. */

.ui-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}
.btn .ui-icon,
.text-link .ui-icon {
  width: 23px;
  height: 23px;
}
.header-cta .ui-icon {
  width: 18px;
  height: 18px;
  margin-left: 5px;
}
.drawer-close,
.modal-close {
  display: grid;
  place-items: center;
}
.drawer-nav .ui-icon {
  width: 32px;
  height: 32px;
  align-self: center;
}
.browser-bar i,
.eyebrow::before,
.skill-pill span {
  display: none;
}
.browser-bar {
  height: 30px;
}
.browser-bar span {
  font-size: 11px;
  margin-left: 0;
}
.browser-mock img {
  height: calc(100% - 30px);
}
.hero-grid,
.geo-cross {
  display: none;
}
.studio-section::before {
  background: linear-gradient(125deg, #27aae10d, transparent 65%);
}
.hero-copy .eyebrow {
  font-size: 13px;
}
.hero-copy p {
  font-size: 17px;
  line-height: 1.8;
}
.hero-director-tag {
  font-size: 13px;
}
.hero-director-tag strong {
  font-size: 15px;
}
.hero-copy h1 {
  font-size: clamp(38px, 4vw, 56px);
}
.hero .container {
  min-height: 600px;
}
.service-bento {
  grid-template-rows: 270px 270px;
}
.faq summary::after {
  display: none;
}
.faq summary .ui-icon {
  color: var(--cyan);
  transition: transform 0.34s var(--ease);
}
.faq details[open] summary .ui-icon {
  transform: rotate(45deg);
}
.project-modal {
  border: 0;
  padding: 0;
  border-radius: 20px;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  color: var(--navy);
  background: white;
  overflow: auto;
  box-shadow: 0 30px 100px #00093c40;
}
.project-modal::backdrop {
  background: #00093c99;
  backdrop-filter: blur(8px);
}
.modal-panel {
  padding: 44px;
  position: relative;
}
.modal-panel h2 {
  font-size: 32px;
  padding-right: 20px;
}
.modal-intro {
  color: var(--muted);
  margin: 18px 0 28px;
  font-size: 16px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  transition:
    background 0.25s,
    transform 0.25s;
}
.modal-close:hover {
  background: var(--blue);
  transform: rotate(90deg);
}
body.modal-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .project-modal[open] {
    animation: modal-in 0.4s var(--ease) both;
  }
  .project-modal[open]::backdrop {
    animation: backdrop-in 0.35s ease both;
  }
  .project-modal.is-closing {
    animation: modal-out 0.24s ease both;
  }
  .project-modal.is-closing::backdrop {
    animation: backdrop-in 0.24s ease reverse both;
  }
  @keyframes modal-in {
    from {
      opacity: 0;
      transform: translateY(25px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes modal-out {
    to {
      opacity: 0;
      transform: translateY(14px) scale(0.98);
    }
  }
  @keyframes backdrop-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media (max-width: 800px) {
  .hero .container {
    min-height: 0;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .service-bento {
    grid-template-rows: auto;
  }
  .hero-copy .btn {
    font-size: 15px;
  }
}
@media (max-width: 540px) {
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .hero-copy .eyebrow {
    font-size: 12px;
  }
  .hero-director-tag {
    max-width: calc(100% - 24px);
    font-size: 12px;
  }
  .hero-director-tag strong {
    font-size: 14px;
  }
  .hero-portrait {
    width: calc(100% + 32px);
    margin-left: -16px;
  }
  .modal-panel {
    padding: 50px 20px 24px;
  }
  .modal-panel h2 {
    font-size: 27px;
    padding-right: 0;
  }
}

/* Landscape phones: the full navigation remains scrollable. */
.drawer {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-top,
.drawer-nav,
.drawer-bottom {
  flex-shrink: 0;
}

/* Focus, scrollbar, scroll locking and contact pulse. */
html {
  scrollbar-gutter: stable;
  scrollbar-color: #6975a5 #edf0f8;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #6975a5 #edf0f8;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #edf0f8;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f7941d, #8b6bba, #27aae1);
  border: 2px solid #edf0f8;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00093c;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.form-field input:focus,
.form-field textarea:focus,
.portfolio-search:focus {
  outline: none;
  border-color: #f7941d;
  box-shadow: 0 0 0 3px #f7941d18;
}
.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.contact-trigger {
  position: relative;
  isolation: isolate;
}
.contact-trigger::before,
.contact-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #f7941d90;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-trigger::before {
    animation: contact-pulse 3s ease-out infinite;
  }
  .contact-trigger::after {
    animation: contact-pulse 3s 1.5s ease-out infinite;
  }
  @keyframes contact-pulse {
    0% {
      opacity: 0.65;
      transform: scale(1);
    }
    80%,
    100% {
      opacity: 0;
      transform: scale(1.65);
    }
  }
}
/* Real WebGL decorations stay clear of the portrait and interactive controls. */
.sculpture {
  position: absolute;
  width: 125px;
  height: 125px;
  pointer-events: none;
  z-index: 2;
}
.sculpture canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.sculpture--ring {
  left: calc(50% - 70px);
  top: 24px;
}
.sculpture--knot {
  left: calc(50% - 70px);
  bottom: 24px;
  width: 100px;
  height: 100px;
}
.sculpture--cube {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .sculpture--ring {
    left: auto;
    right: 0;
    top: 15px;
    width: 70px;
    height: 70px;
    opacity: 0.65;
  }
  .sculpture--knot {
    display: none;
  }
  .hero-copy .eyebrow {
    padding-right: 70px;
  }
}

.sculpture:empty::before {
  content: '';
  display: block;
  width: 80%;
  height: 80%;
  margin: 10%;
  border-radius: 50%;
  background: conic-gradient(#27aae1, #956ac8, #f7941d, #27aae1);
  box-shadow:
    inset -12px -12px 20px #00093c30,
    inset 10px 10px 20px #ffffff80,
    0 12px 24px #00093c20;
}
/* Compact branding keeps the menu reachable on the narrowest screens. */
@media (max-width: 420px) {
  .site-header .brand-text small,
  .drawer-top .brand-text small {
    display: none;
  }
  .site-header .brand,
  .drawer-top .brand {
    gap: 10px;
    min-width: 0;
  }
  .header-inner {
    gap: 12px;
  }
  .header-actions,
  .menu-toggle,
  .drawer-close {
    flex-shrink: 0;
  }
  .drawer-nav a {
    font-size: 28px;
    gap: 12px;
  }
}

/* Alternating ambient geometry sits behind the section content. */
.has-sculpture {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.has-sculpture > .container {
  position: relative;
  z-index: 1;
}
.sculpture--ambient {
  width: 110px;
  height: 110px;
  top: 48%;
  z-index: 0;
  opacity: 0.9;
}
.sculpture--left {
  left: -30px;
}
.sculpture--right {
  right: -30px;
}
@media (min-width: 1500px) {
  .sculpture--left {
    left: 4%;
  }
  .sculpture--right {
    right: 4%;
  }
}
@media (max-width: 800px) {
  .sculpture--ambient {
    width: 65px;
    height: 65px;
    top: 12px;
    opacity: 0.32;
  }
  .sculpture--left {
    left: -18px;
  }
  .sculpture--right {
    right: -18px;
  }
}
