/*
 * Signal / optical finish. Load after style.css.
 * Deliberately scoped to the existing project, service, process and contact
 * components. The hero, orbit scene, canvas and horizon belong to app.js.
 * Surfaces use static directional reflections; no new perpetual animation.
 */

.projects.section,
.services.section,
.process.section,
.contact.section {
  --finish-edge: #65e7f4;
  --finish-silver: #d7f7ff;
  --finish-ink: #07121b;
  position: relative;
  isolation: isolate;
  min-inline-size: 0;
  padding-block: clamp(70px, 6.4vw, 100px);
  padding-inline: clamp(20px, 4.3vw, 64px);
}

.projects .section-intro,
.services .section-intro,
.process .section-intro {
  display: block;
  margin-block-end: clamp(35px, 3.4vw, 52px);
}

.projects .section-intro h2,
.services .section-intro h2,
.process .section-intro h2 {
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.08;
}

.projects .section-intro > p,
.services .section-intro > p,
.process .section-intro > p {
  max-inline-size: 790px;
  margin-block-start: 21px;
  font-size: clamp(17px, 1.55vw, 20px);
  color: #b5c6d4;
}

.projects .section-intro h2 span { color: #edf4f8; }
.services .section-intro h2 span,
.process .section-intro h2 span,
.contact-copy h2 span { color: #44deed; }

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(158deg, transparent 18%, #218ba50b 18.05%, transparent 18.2%),
    linear-gradient(22deg, transparent 64%, #50d5eb08 64.06%, transparent 64.2%),
    radial-gradient(ellipse at 17% 30%, #08566e12, transparent 47%),
    radial-gradient(ellipse at 84% 61%, #173f7414, transparent 44%);
}

.projects .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 55px 45px;
}

.projects .project { min-inline-size: 0; }
.projects .project:nth-child(even) { padding-block-start: 34px; }

/* The picture is recessed into a continuous silver/cyan edge. The narrow
 * left face and interior bevel remain inside its bounds, including on touch.
 */
.projects .project-visual {
  height: clamp(240px, 27vw, 342px);
  padding: 7px 8px 9px;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 6px;
  background:
    linear-gradient(132deg, #17232d, #02080e 27%, #112635 79%, #050e17) padding-box,
    linear-gradient(126deg,
      #e6faff 0%, #779fb1 4%, #0c293c 13%,
      #76d2e8 28%, #223946 45%, #5b849b 59%,
      #e1faff 72%, #3babc9 81%, #0c3045 88%, #aff6ff 100%) border-box;
  box-shadow:
    -4px 2px 0 #173d52,
    -5px 2px 0 #70d1e899,
    -7px 2px 10px #29daf33b,
    0 2px 1px #bdd9e52b,
    0 21px 31px -22px #000,
    0 35px 39px -30px #30c4e736,
    inset 0 1px 0 #efffff4d,
    inset 0 -1px 0 #56b9da73;
  transform: perspective(1400px) rotateY(-5deg) rotateX(3deg) rotateZ(-.45deg);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}

.projects .project:nth-child(even) .project-visual {
  transform: perspective(1400px) rotateY(5deg) rotateX(3deg) rotateZ(.45deg);
  box-shadow:
    4px 2px 0 #153b50,
    5px 2px 0 #77d6ee99,
    7px 2px 10px #29daf338,
    0 2px 1px #bdd9e52b,
    0 21px 31px -22px #000,
    0 35px 39px -30px #30c4e736,
    inset 0 1px 0 #efffff4d,
    inset 0 -1px 0 #56b9da73;
}

.projects .project-visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: 7px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #1ea4c394, #e4fcffc7 25%, #24739788 52%, #030d15);
  box-shadow: 1px 0 0 #3edbeb77;
}

.projects .project:nth-child(even) .project-visual::before {
  inset-inline: auto 0;
  background: linear-gradient(90deg, #030d15, #24739788 48%, #e4fcffc7 75%, #1ea4c394);
  box-shadow: -1px 0 0 #3edbeb77;
}

.projects .project-visual::after {
  inset: 7px 8px 9px;
  z-index: 1;
  border-radius: 2px;
  pointer-events: none;
  background:
    linear-gradient(118deg, #d8faff10, transparent 17%, transparent 67%, #cef6ff08 74%, transparent 79%),
    linear-gradient(180deg, #020c1026, transparent 16%, transparent 78%, #01081139);
  box-shadow:
    inset 0 1px 0 #a0e7f44d,
    inset 1px 0 0 #010912,
    inset 0 -1px 0 #0b222e,
    inset 0 0 18px #02091155;
  transition: opacity .35s;
}

.projects .project-visual > img { border-radius: 2px; }
.projects .game-visual > img { padding: 6px; }
.projects .game-visual .visual-grid { opacity: .35; }

.projects .visual-label {
  z-index: 3;
  inset-inline-start: 21px;
  inset-block-end: 18px;
  border-color: #65d9eb66;
  background: #07121bec;
  color: #d2f5fa;
  box-shadow: inset 0 1px 0 #c0f7ff18;
  letter-spacing: .11em;
}

.projects .lab-overlay {
  inset: 7px 8px 9px;
  z-index: 2;
  padding: 21px;
  background: linear-gradient(180deg, #020b1124, transparent 35%, #020c1270);
}

.projects .project-heading { margin-block-start: 24px; }
.projects .project-heading > span { color: #88b3c4; }
.projects .project-meta { margin-block: 8px 11px; color: #85dce7; }
.projects .project > p:not(.project-meta) { color: #b2c3d0; font-size: 16px; line-height: 1.58; }
.projects .project-links { border-color: #345567; padding-block: 17px; }
.projects .project-links a { color: #86ecf4; font-weight: 500; min-inline-size: 0; gap: 12px; }
.projects .project-links a:hover { color: #e0fcff; }
.projects .project-links summary { color: #cfdeea; }
.projects .project-links details p { color: #b4c8d6; line-height: 1.65; }
.projects .project-tools .project-links { flex-wrap: wrap; }

/* A continuous editorial timeline, with rows instead of miniature cards. */
.projects .history { margin-block-start: 76px; padding-block-start: 26px; border-color: #396079; }
.projects .history ol { position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.projects .history ol::before {
  content: "";
  position: absolute;
  inset: 33px 5px auto;
  block-size: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, #4ccde7, #628dcc 36%, #ac8feb 67%, #34dcea);
  box-shadow: 0 0 11px #3ecde934;
}
.projects .history li { min-inline-size: 0; }
.projects .history li::before {
  position: relative;
  z-index: 1;
  inline-size: 10px;
  block-size: 10px;
  border: 1px solid #a8f5ff;
  margin-block-end: 17px;
  background: radial-gradient(circle at 35% 28%, #bcf8ff, #2899be 48%, #051321 78%);
  box-shadow: 0 0 0 3px #2cb9d218, 0 0 17px #22c1e675;
}
.projects .history li:nth-child(3)::before,
.projects .history li:nth-child(4)::before {
  border-color: #c2b3f1;
  background: radial-gradient(circle at 35% 28%, #e0d7ff, #7568b7 48%, #101024 78%);
  box-shadow: 0 0 0 3px #9780ef18, 0 0 17px #8365df55;
}
.projects .history-note { color: #91abba; font-size: 13px; line-height: 1.7; }
.projects .tool-collection { margin-block-start: 47px; border-color: #467587; }
.projects .tool-collection summary { font-size: 20px; padding-block: 22px; }
.projects .tool-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects .tool-index a { min-inline-size: 0; border-color: #2b4658; }

/* An open service list: fine optical rails, material-rich existing glyphs. */
.services.section {
  border-color: #314959;
  background: radial-gradient(ellipse at 19% 49%, #07466512, transparent 52%);
}
.services .service-row {
  position: relative;
  grid-template-columns: 32px 118px minmax(0, 1fr);
  gap: 28px;
  padding-block: 33px;
  border-block-start: 0;
}
.services .service-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  block-size: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, #69e5f0, #397d99 28%, #294456 82%, #42b4cb);
  box-shadow: 0 0 10px #38cae31a;
}
.services .service-row > div:last-child { min-inline-size: 0; }
.services .service-number { color: #6fe6f0; font-size: 16px; margin-block-start: 9px; }
.services .service-row h3 { font-size: clamp(24px, 2.4vw, 30px); margin-block-end: 12px; line-height: 1.16; }
.services .service-row p { color: #b1c4d2; font-size: 17px; line-height: 1.6; max-inline-size: 750px; }
.services .service-row .service-example { color: #8cabbc; font-size: 14px; margin-block-start: 10px; }
.services .service-orbit { inline-size: 116px; block-size: 116px; margin-inline: auto; }
.services .service-orbit::before {
  content: "";
  position: absolute;
  inset: auto 7px 4px;
  block-size: 22px;
  border: 1px solid #54cce93b;
  border-radius: 50%;
  pointer-events: none;
  transform: rotateX(64deg);
  background: radial-gradient(ellipse, #30bed521, #08435b08 61%, transparent 70%);
  box-shadow: 0 0 16px #2cb8d419;
}
.services .service-orbit i {
  inset: 5px;
  border-color: #7bdded;
  box-shadow: 0 0 13px #46cde230, inset 0 1px 0 #eefcff80, inset 0 -1px 0 #13364d, inset 0 0 9px #33b1cb1c;
}
.services .service-orbit i:nth-child(2) { border-color: #438ba7; }
.services .service-orbit b {
  inset: 29px;
  border-color: #80c9dc;
  background: linear-gradient(145deg, #d8f5fd 2%, #56bad5 12%, #11394e 27%, #050f19 44%, #264e66 63%, #b6edf6 76%, #265773 86%, #071525 100%);
  box-shadow: 5px 6px 0 #0b253de6, 6px 7px 0 #4697ba99, inset 1px 1px 0 #e7fbff91, inset -1px -1px 0 #123446, 0 0 19px #1dafd529;
}
.services .ai-orbit b {
  background: radial-gradient(circle at 29% 24%, #f0fdff 1%, #83dce8 11%, #205375 26%, #061522 46%, #183a54 64%, #68c5db 80%, #092134 94%);
  box-shadow: inset 1px 1px 0 #dbfcffd9, inset -2px -2px 0 #1d779a, 0 0 22px #1ca9d33d;
}
.services .industry-line { border-color: #416275; padding-block-start: 24px; gap: 45px; }
.services .industry-line p:first-child { color: #c3d6e3; font-size: 17px; }
.services .industry-line p:last-child { color: #92abba; }
.services .offer-line { margin-block-start: 35px; border-color: #6cdef0; }
.services .offer-line p { color: #b1c5d2; }

/* A low-contrast atmosphere remains behind real text and real form controls. */
.process.section {
  border-color: #365468;
  background:
    linear-gradient(167deg, transparent 37%, #328fa310 37.1%, transparent 37.4%),
    radial-gradient(ellipse at 57% 88%, #0755741b, transparent 65%);
}
.process .process-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.process .process-steps li { position: relative; border-block-start: 0; padding-block-start: 0; min-inline-size: 0; }
.process .process-steps li::before {
  content: "";
  position: absolute;
  inset: 19px 0 auto 51px;
  block-size: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, #4bcee6, #24546c 67%, #23485955);
  box-shadow: 0 0 8px #2cb8d41a;
}
.process .process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 39px;
  block-size: 39px;
  border: 1px solid #73e4f1;
  border-radius: 50%;
  color: #d2f5fa;
  background: radial-gradient(circle at 32% 20%, #25495680, #07121b 73%);
  box-shadow: inset 0 1px 0 #d0fbff38, 0 0 15px #33c2dd1c;
}
.process .process-steps h3 { margin-block: 21px 12px; font-size: 25px; }
.process .process-steps p { color: #a7bdcd; font-size: 16px; line-height: 1.65; }

.contact.section {
  gap: clamp(35px, 5.2vw, 76px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-color: #365468;
  background:
    linear-gradient(154deg, transparent 62%, #3acbe00a 62.08%, transparent 62.3%),
    radial-gradient(ellipse at 86% 36%, #0a58751c, transparent 51%);
}
.contact .contact-copy,
.contact .contact-form-wrap { min-inline-size: 0; }
.contact .contact-copy > p { color: #b0c5d4; }
.contact .contact-copy .contact-location { color: #92aebe; }
.contact .email-link { border-color: #6fdaea; color: #c6f6fb; }
.contact .contact-form-wrap {
  position: relative;
  isolation: isolate;
  align-self: start;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #142734f2 0%, #091722f2 38%, #06121cf7 79%, #102b3af2) padding-box,
    linear-gradient(125deg, #9edce77d, #244f687f 20%, #285269 64%, #6fdff0b0 91%, #32687d) border-box;
  box-shadow: inset 0 1px 0 #c1f7ff20, 0 22px 39px -24px #000b, 0 1px 18px #29bad00c;
}
.contact .contact-form-wrap::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  pointer-events: none;
  background: linear-gradient(116deg, #c8f7ff08, transparent 31%, transparent 79%, #38bfe109);
}
.contact .form-fields { gap: 19px; }
.contact .form-fields label { color: #d0e1ed; }
.contact .form-fields input,
.contact .form-fields textarea {
  max-inline-size: 100%;
  min-inline-size: 0;
  border: 1px solid #3b5f73;
  border-radius: 4px;
  padding: 12px 13px;
  background: linear-gradient(130deg, #1b314077, #07141c99);
  box-shadow: inset 0 1px 0 #07121a;
  color: #e3f0f8;
}
.contact .form-fields input::placeholder,
.contact .form-fields textarea::placeholder { color: #8aa6b8; }
.contact .form-fields input:focus-visible,
.contact .form-fields textarea:focus-visible { border-color: #75d8e8; }
.contact #contact-form .button {
  margin-block-start: 22px;
  border-color: #69eaf3;
  border-radius: 7px;
  background: linear-gradient(118deg, #6ce9f1, #39d9e9 72%, #32cbdf);
  box-shadow: inset 0 1px 0 #efffff80, 0 4px 18px #1aaac416;
}
.contact .form-note { color: #a1bbc9; }

@media (min-width: 1101px) {
  .projects .section-intro h2 br { display: none; }
  .projects .section-intro h2 span { margin-inline-start: .16em; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body:not([data-motion="paused"]) .projects .project:hover .project-visual {
    border-color: #8eecf373;
  }
  body:not([data-motion="paused"]) .projects .project:hover .project-visual::after { opacity: .6; }
}

@media (max-width: 1100px) {
  .projects .project-grid { gap: 46px 30px; }
  .projects .project:nth-child(even) { padding-block-start: 25px; }
  .projects .project-visual { height: clamp(225px, 28vw, 310px); }
  .projects .history ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .projects .history ol::before { display: none; }
  .projects .history li::after {
    content: "";
    position: absolute;
    inset: 5px 0 auto 22px;
    block-size: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, #4ac0dd91, #324f7270);
  }
  .services .service-row { grid-template-columns: 28px 100px minmax(0, 1fr); gap: 23px; }
  .services .service-orbit { inline-size: 102px; block-size: 106px; }
  .services .service-orbit b { inset: 27px; }
}

@media (max-width: 760px) {
  .projects.section,
  .services.section,
  .process.section,
  .contact.section { padding-block: 65px; padding-inline: 6%; }
  .projects .section-intro h2,
  .services .section-intro h2,
  .process .section-intro h2 { font-size: clamp(36px, 8.8vw, 48px); }
  .projects .section-intro > p,
  .services .section-intro > p,
  .process .section-intro > p { font-size: 17px; margin-block-start: 20px; }
  .projects .project-grid { grid-template-columns: minmax(0, 1fr); gap: 45px; }
  .projects .project:nth-child(even) { padding-block-start: 0; }
  .projects .project-visual { height: clamp(220px, 58vw, 340px); }
  .projects .project-heading { margin-block-start: 21px; }
  .projects .project-heading h3 { font-size: 27px; }
  .projects .alias { font-size: 17px; }
  .projects .project-links { gap: 16px; font-size: 14px; }
  .projects .project-links a { gap: 10px; }
  .projects .project > p:not(.project-meta) { font-size: 16px; }
  .projects .history { margin-block-start: 57px; }
  .projects .history ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects .history span { font-size: 15px; }
  .projects .tool-collection { margin-block-start: 38px; }
  .projects .tool-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .services .service-row { grid-template-columns: 24px 80px minmax(0, 1fr); gap: 16px; padding-block: 29px; }
  .services .service-orbit { grid-column: auto; inline-size: 78px; block-size: 92px; margin-block-end: 0; }
  .services .service-orbit b { inset: 26px 18px; }
  .services .service-orbit i { inset: 10px 3px; }
  .services .service-row > div:last-child { grid-column: auto; }
  .services .service-row h3 { font-size: 24px; }
  .services .service-row p { font-size: 16px; }
  .services .service-row .service-example { font-size: 13px; }
  .services .industry-line { gap: 25px; }
  .services .offer-line { margin-block-start: 30px; }
  .process .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 33px 25px; }
  .process .process-steps h3 { font-size: 24px; }
  .contact.section { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .contact .contact-form-wrap { padding: 23px; }
  .contact .contact-copy h2 { font-size: clamp(36px, 8.8vw, 48px); line-height: 1.08; }
}

@media (max-width: 430px) {
  .projects .project-visual { height: clamp(195px, 58vw, 250px); padding: 6px 7px 8px; }
  .projects .project-visual::after,
  .projects .lab-overlay { inset: 6px 7px 8px; }
  .projects .lab-overlay { padding: 19px; }
  .projects .lab-overlay span:last-child { font-size: 34px; }
  .projects .visual-label { inset-inline-start: 18px; inset-block-end: 15px; font-size: 9px; }
  .projects .history-note { font-size: 12px; }
  .services .service-row { grid-template-columns: 22px minmax(0, 1fr); gap: 15px; }
  .services .service-orbit { grid-column: 2; inline-size: 94px; block-size: 97px; margin-inline: 0; }
  .services .service-orbit b { inset: 27px; }
  .services .service-row > div:last-child { grid-column: 2; }
  .services .service-row h3 { font-size: 24px; }
  .services .service-number { margin-block-start: 5px; }
  .process .process-steps { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .process .process-steps li { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 6px 19px; }
  .process .process-steps li::before { inset: 49px auto 0 19px; inline-size: 1px; block-size: auto; background: linear-gradient(#408ea980, #21465930); }
  .process .process-steps span { grid-row: 1 / 3; }
  .process .process-steps h3 { margin-block: 5px 0; }
  .process .process-steps p { grid-column: 2; font-size: 15px; }
  .contact .contact-form-wrap { padding: 21px; }
}

@media (max-width: 360px) {
  .projects .tool-index { grid-template-columns: minmax(0, 1fr); }
  .projects .project-links { flex-wrap: wrap; row-gap: 12px; }
  .projects .project-links details { max-inline-size: 100%; }
  .projects .project-meta { font-size: 10px; letter-spacing: .08em; }
  .projects .history small { font-size: 11px; }
  .contact .contact-form-wrap { padding: 18px; }
}

body[data-motion="paused"] .projects .project-visual,
body[data-motion="paused"] .projects .project-visual::after,
body[data-motion="paused"] .contact #contact-form .button { transition: none; }
body[data-motion="paused"] .services .service-orbit i { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .projects .project-visual,
  .projects .project:nth-child(even) .project-visual { transform: none !important; transition: none; }
  .projects .project-visual::after { transition: none; }
  .services .service-orbit i { animation: none; }
  .contact #contact-form .button { transition: none; }
}
