/* ==========================================================================
   1. VARIABILI GLOBALI & RESET DI BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #070b14;
  --panel: #0d1422;
  --line: rgba(119, 170, 220, 0.18);
  --text: #eef5ff;
  --muted: #9aa9bd;
  --blue: #00baff;
  --orange: #ff7025;
  --green: #00d99a;
  --display: 'Orbitron', sans-serif;
  --body: 'Rajdhani', sans-serif;
  --header-offset: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 82px);
}

/* Mantiene le sezioni richiamate dal menu allineate sotto la barra fissa */
section[id] {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

/* ==========================================================================
   2. EFFETTI AMBIENTALI & HEADER FISSO
   ========================================================================== */

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .09;
  pointer-events: none;
  z-index: -1;
}

.ambient-blue {
  background: #007dff;
  top: 10%;
  left: -300px;
}

.ambient-orange {
  background: #ff5a16;
  right: -330px;
  top: 45%;
}

.site-header {
  height: 82px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wordmark {
  font: 800 25px var(--display);
  letter-spacing: -2px;
}

.wordmark span {
  color: #fff;
  text-shadow: 0 0 15px #00aaff;
}

.wordmark i {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--blue);
  margin-left: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 16px;
  font-weight: 700;
  color: #c5d1e1;
  transition: .25s;
}

.nav a:hover {
  color: var(--blue);
}

.nav .nav-contact {
  border: 1px solid var(--blue);
  padding: 9px 17px;
  color: #fff;
}

.lang-switch {
  border: 0;
  background: none;
  color: #8292a8;
  font: 700 14px var(--display);
  cursor: pointer;
}

.lang-switch span.active {
  color: var(--blue);
}

.lang-switch b {
  padding: 0 8px;
  color: #526177;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   3. SEZIONE HERO & ELEMENTI GRAFICI
   ========================================================================== */

.hero {
  min-height: calc(100vh - 82px);
  padding: 90px 8vw 100px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(40, 115, 180, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 115, 180, .06) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  font: 600 11px var(--display);
  letter-spacing: 2.2px;
  color: #8da3bd;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 24px 0;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
}

h1 em,
h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--blue);
  text-shadow: 0 0 22px rgba(0, 174, 255, .2);
}

.hero-lead,
.section-lead {
  color: #b4c1d2;
  font-size: 21px;
  line-height: 1.45;
  max-width: 570px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 15px 21px;
  font: 700 12px var(--display);
  letter-spacing: 1px;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  transition: .25s;
}

.button-primary {
  background: linear-gradient(100deg, #007dce, #00bfff);
  color: #04101c;
  box-shadow: 0 0 28px rgba(0, 174, 255, .2);
}

.button:hover {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

.button span {
  font-size: 19px;
}

.text-link {
  font-weight: 700;
  color: #cbd8e8;
}

.text-link span {
  color: var(--orange);
  padding-left: 8px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 65px;
}

.hero-tags span {
  font: 600 9px var(--display);
  letter-spacing: 1.2px;
  color: #8ca0b8;
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-logo-wrap {
  width: min(100%, 530px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, .6));
  animation: float 7s ease-in-out infinite;
}

.hero-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 174, 255, .3);
  border-radius: 50%;
  aspect-ratio: 1;
}

.orbit-one {
  width: 110%;
  transform: rotate(-20deg) scaleY(.62);
}

.orbit-two {
  width: 95%;
  border-color: rgba(255, 112, 37, .28);
  transform: rotate(35deg) scaleY(.72);
}

.hero-stamp {
  position: absolute;
  bottom: 0;
  right: -10px;
  display: flex;
  gap: 9px;
  align-items: center;
  font: 700 9px var(--display);
  letter-spacing: 1px;
  color: #a5b8ce;
}

.hero-stamp b {
  color: var(--orange);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #70849c;
  font: 600 9px var(--display);
  letter-spacing: 1.5px;
}

.scroll-cue span {
  height: 1px;
  width: 36px;
  background: var(--blue);
}

/* ==========================================================================
   4. SEZIONI DI CONTENUTO, SERVIZI, TECH, ABOUT & CONTATTI
   ========================================================================== */

.section-pad {
  /* padding: 105px 9vw; */
  padding: 55px 9vw 105px;
}

.section-kicker {
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 24px;
  text-align: left;
}

.intro {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 6vw;
  background: linear-gradient(110deg, rgba(10, 26, 45, .75), rgba(7, 11, 20, .2));
}

.intro h2 {
  font-size: clamp(26px, 3.4vw, 45px);
  margin: 0 0 24px;
}

.intro-content p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
  font-size: 20px;
}

.discipline-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 8vw;
  align-items: center;
  margin-top: 65px;
}

.discipline-layout.reverse {
  grid-template-columns: .9fr 1.1fr;
}

.discipline-copy h2,
.projects h2,
.contact h2 {
  font-size: clamp(42px, 6vw, 72px);
  margin: 15px 0 20px;
}

.blue {
  color: var(--blue);
}

.orange {
  color: var(--orange);
}

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

.service-list article {
  display: grid;
  grid-template-columns: 35px 1fr 20px;
  gap: 15px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-list article>span {
  font: 600 11px var(--display);
  color: var(--blue);
}

.service-list h3,
.tech-card h3 {
  margin: 0;
  font: 700 18px var(--display);
}

.service-list p,
.tech-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.service-list article>b {
  color: var(--orange);
}

.discipline-art {
  position: relative;
}

.maker-section .art-frame {
  transform: translateY(-150px);
}

.maker-section .vertical-note {
  transform: translateY(-50px);
}

.art-frame {
  background: radial-gradient(circle, rgba(0, 146, 255, .15), transparent 67%);
  border: 1px solid rgba(0, 174, 255, .25);
  padding: 20px;
  clip-path: polygon(0 0, 95% 0, 100% 8%, 100% 100%, 5% 100%, 0 92%);
}

.art-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
}

.vertical-note {
  position: absolute;
  right: -35px;
  top: 50%;
  writing-mode: vertical-rl;
  font: 600 9px var(--display);
  letter-spacing: 2px;
  color: #617a96;
}

.code-section {
  background: linear-gradient(115deg, rgba(15, 20, 32, .9), rgba(9, 14, 24, .6));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.code-section .discipline-layout {
  grid-template-columns: 1.3fr .7fr; 
  gap: 4vw; /* prima era 5vw */
}

.code-section .discipline-art {
  max-width: none;
  width: 100%;
  justify-self: stretch;
}

.code-art {
  background: radial-gradient(circle, rgba(255, 102, 35, .12), transparent 68%);
  border-color: rgba(255, 112, 37, .28);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 38px;
}

.tech-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(13, 22, 37, .65);
  min-height: 145px;
  transition: .25s;
}

.tech-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.tech-symbol {
  display: block;
  font: 800 27px var(--display);
  color: #ffe05b;
  text-shadow: 0 0 16px rgba(255, 210, 0, .35);
  margin-bottom: 12px;
}

.tech-symbol.java {
  color: var(--orange);
}

.tech-symbol.web {
  color: var(--blue);
}

.tech-symbol.js {
  color: #f4d64e;
}

.tech-card h3 {
  font-size: 14px;
}

.tech-card p {
  font-size: 14px;
}

.projects {
  background: radial-gradient(ellipse at 80% 40%, rgba(0, 108, 180, .1), transparent 50%);
}

.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin: 55px 0 40px;
}

.projects-heading h2 {
  margin: 12px 0 0;
}

.projects-heading>p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 19px;
}

.project-placeholder {
  min-height: 260px;
  border: 1px dashed rgba(0, 174, 255, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 160, 255, .04), rgba(255, 100, 30, .035));
  position: relative;
}

.placeholder-cross {
  font-size: 35px;
  color: var(--blue);
  font-weight: 300;
}

.project-placeholder>span {
  font: 700 12px var(--display);
  letter-spacing: 2px;
  margin-top: 10px;
}

.project-placeholder p {
  color: var(--muted);
  margin: 8px;
}

.project-placeholder small {
  font: 600 9px var(--display);
  letter-spacing: 1px;
  color: #60768f;
}

/* .about {
  padding-top: 50px;
} */

.about-panel {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 7vw;
  align-items: center;
  margin-top: 55px;
  padding: 55px;
  background: linear-gradient(120deg, #101c2c, #0b111d);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.about-panel:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(0, 174, 255, .15);
  border-radius: 50%;
  right: -90px;
  bottom: -190px;
  box-shadow: 0 0 0 30px rgba(0, 174, 255, .025), 0 0 0 60px rgba(0, 174, 255, .02);
}

.about-mark {
  font: 800 clamp(75px, 12vw, 150px) var(--display);
  letter-spacing: -15px;
  color: #e9f4ff;
  text-shadow: 0 0 35px rgba(0, 174, 255, .35);
}

.about-mark span {
  display: block;
  font-size: 25px;
  letter-spacing: 9px;
  color: var(--blue);
  margin-left: 12px;
}

.about-panel h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 16px 0;
}

.about-panel p:last-child {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 19px;
}

.contact {
  background: linear-gradient(120deg, rgba(0, 130, 220, .09), rgba(255, 90, 25, .06));
  border-top: 1px solid var(--line);
  text-align: center;
  min-height: calc(100vh - var(--header-offset) - 80px);
}

.contact-inner {
  max-width: 760px;
  margin: 65px auto 0;
}

.contact .eyebrow {
  justify-content: center;
}

.contact h2 {
  font-size: clamp(48px, 8vw, 90px);
}

.contact-inner>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto 30px;
}

.contact-hint {
  display: block;
  color: #667b94;
  font-size: 13px;
  margin-top: 18px;
}

footer {
  padding: 28px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

footer p,
footer .back-top {
  font: 600 9px var(--display);
  letter-spacing: 1px;
  color: #71849b;
}

footer .back-top:hover {
  color: var(--blue);
}

/* ==========================================================================
   5. GALLERIA PROGETTI A SCORRIMENTO ORIZZONTALE
   ========================================================================== */

.gallery-shell {
  margin-top: 30px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gallery-toolbar>p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.gallery-controls {
  display: flex;
  gap: 9px;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 174, 255, .45);
  background: #0d1929;
  color: #dff5ff;
  font-size: 22px;
  cursor: pointer;
  transition: .2s;
}

.gallery-arrow:hover {
  background: #007dce;
  color: #06101c;
  box-shadow: 0 0 18px rgba(0, 174, 255, .25);
}

.project-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 31%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 3px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: #087db7 #101a29;
}

.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #101c2d, #0a111d);
  scroll-snap-align: start;
  transition: transform .25s, border-color .25s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 174, 255, .55);
}

.project-card:focus-within {
  outline: 1px solid var(--blue);
  outline-offset: 4px;
}

.project-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.project-image {
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #0b1727;
  background-image: linear-gradient(rgba(0, 174, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 174, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.project-image:before,
.project-image:after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  opacity: .25;
  transform: rotate(-25deg);
}

.project-image:before {
  width: 170px;
  height: 110px;
}

.project-image:after {
  width: 125px;
  height: 80px;
  transform: rotate(25deg);
}

.project-image span {
  font: 800 48px var(--display);
  letter-spacing: -3px;
  color: #d9f4ff;
  text-shadow: 0 0 22px currentColor;
  z-index: 1;
}

.project-image b {
  position: absolute;
  right: 14px;
  top: 12px;
  font: 600 11px var(--display);
  color: #9eb3c9;
}

.project-image-3d {
  color: var(--blue);
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 174, 255, .23), transparent 60%), linear-gradient(rgba(0, 174, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 174, 255, .06) 1px, transparent 1px);
}

.project-image-cnc {
  color: var(--orange);
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 112, 37, .2), transparent 60%);
}

.project-image-laser {
  color: var(--green);
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 217, 154, .2), transparent 60%);
}

.project-image-electronics {
  color: #ad8cff;
  background-image: radial-gradient(circle at 50% 50%, rgba(173, 140, 255, .2), transparent 60%);
}

.project-image-code {
  color: var(--blue);
}

.project-image-web {
  color: #ffb52e;
}

.project-meta {
  padding: 18px;
}

.project-meta>span {
  font: 600 9px var(--display);
  letter-spacing: 1.5px;
  color: var(--blue);
}

.project-meta h3 {
  font: 700 16px var(--display);
  margin: 12px 0 7px;
}

.project-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.gallery-note {
  font-size: 14px;
  color: #6f849e;
  margin-top: 12px;
}

/* ==========================================================================
   6. FINESTRA MODALE DETTAGLI PROGETTO
   ========================================================================== */

.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.project-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, .89);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #0c1421;
  border: 1px solid rgba(0, 174, 255, .4);
  box-shadow: 0 25px 90px rgba(0, 0, 0, .7);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #101c2b;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.modal-gallery {
  padding: 28px;
  background: #080f1b;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.modal-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border: 1px solid var(--line);
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.modal-thumbnails button {
  border: 1px solid var(--line);
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: .65;
}

.modal-thumbnails button.active,
.modal-thumbnails button:hover {
  opacity: 1;
  border-color: var(--blue);
}

.modal-thumbnails img {
  display: block;
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}

.modal-content {
  padding: 55px 38px 35px;
}

.modal-content h2 {
  font-size: clamp(25px, 3vw, 38px);
  margin: 14px 0 18px;
  overflow-wrap: anywhere;
}

.modal-content>p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

.modal-content h3 {
  font: 700 10px var(--display);
  letter-spacing: 1.5px;
  margin: 30px 0 12px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags span {
  border: 1px solid rgba(0, 174, 255, .3);
  padding: 7px 10px;
  color: #b9d9ef;
  font-size: 13px;
}

.modal-content .modal-hint {
  font-size: 12px !important;
  color: #71849b !important;
  margin-top: 28px;
}

/* ==========================================================================
   7. ANIMAZIONI & RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(-25px);
  }
  50% {
    transform: translateY(-37px);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 5vw;
  }
  .nav {
    gap: 15px;
  }
  .nav a {
    font-size: 14px;
  }
  .hero {
    padding: 70px 6vw 90px;
    grid-template-columns: 1fr 1fr;
  }
  .section-pad {
    /* padding: 80px 7vw; */
    padding: 45px 7vw 80px;
  }
  .discipline-layout {
    gap: 5vw;
  }
  .about-panel {
    padding: 35px;
    gap: 4vw;
  }
  .project-gallery {
    grid-auto-columns: 46%;
  }
}

@media (max-width: 850px) {
  .modal-panel {
    grid-template-columns: 1fr 1fr;
  }
  .modal-content {
    padding: 52px 24px 25px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-offset: 70px;
  }
  .site-header {
    height: 70px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    order: 3;
  }
  .menu-toggle span {
    width: 23px;
    height: 2px;
    background: #dceaff;
  }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 22px 7vw 28px;
    background: #0a111e;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .nav.open {
    display: flex;
  }
  .nav .nav-contact {
    text-align: center;
  }
  .lang-switch {
    margin-left: auto;
    margin-right: 15px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 70px 7vw 90px;
    min-height: auto;
  }
  .hero-copy {
    order: 1;
  }
  .hero-visual {
    order: 2;
    margin: 40px auto 0;
    width: min(100%, 420px);
  }
  h1 {
    font-size: clamp(43px, 12vw, 65px);
  }
  .hero-tags {
    margin-top: 35px;
  }
  .scroll-cue {
    left: 7vw;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .discipline-layout,
  .discipline-layout.reverse {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .discipline-layout.reverse .discipline-art {
    order: 2;
  }
  .discipline-layout.reverse .discipline-copy {
    order: 1;
  }
  .discipline-art {
    max-width: 480px;
    margin: auto;
    width: 100%;
  }
  .vertical-note {
    right: -20px;
  }
  .projects-heading {
    display: block;
  }
  .projects-heading>p {
    margin-top: 25px;
  }
  .about-panel {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 25px;
  }
  .about-mark {
    font-size: 100px;
  }
  .about-mark span {
    font-size: 18px;
  }
  .contact-inner {
    margin-top: 45px;
  }
  footer {
    gap: 15px;
    flex-wrap: wrap;
  }
  footer p {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .project-modal {
    padding: 3vh 3vw;
  }
  .modal-panel {
    display: block;
    max-height: 94vh;
  }
  .modal-gallery {
    padding: 16px;
  }
  .modal-content {
    padding: 24px;
  }
  .modal-main-image {
    aspect-ratio: 1.5;
  }
  .modal-close {
    right: 9px;
    top: 9px;
  }
}

@media (max-width: 600px) {
  .gallery-toolbar {
    align-items: flex-start;
  }
  .project-gallery {
    grid-auto-columns: 82%;
  }
  .project-image {
    height: 175px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .tech-grid {
    gap: 8px;
  }
  .tech-card {
    padding: 14px;
    min-height: 135px;
  }
  .section-pad {
    /* padding: 65px 6vw; */
    padding: 38px 6vw 65px;
  }
  .about-panel {
    padding: 23px;
  }
  .hero-stamp {
    right: 0;
    font-size: 7px;
  }
}
