/* Cores compartilhadas: verde da garrafa presenteada pelos alunos. */
:root {
  --bg: #f2f0e9;
  --ink: #242922;
  --muted: #606559;
  --line: #d0d3c5;
  --accent: #4b593f;
  --accent-soft: #e3e7d9;
  --night: #17251d;
  --light: #f1f3e9;
  --lime: #d3f48e;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: var(--night);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.page {
  width: min(1180px, calc(100% - 5rem));
  margin: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--bg);
  padding: 12px;
}

.skip-link:focus {
  top: 10px;
}

/* Navegação discreta, com escolha de idioma. */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 100px;
}

.site-brand {
  color: var(--night);
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -3px;
  text-decoration: none;
  line-height: 1;
  padding: 10px 5px 10px 0;
}

.site-brand span {
  color: var(--accent);
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.section-nav a {
  font-size: 13px;
  text-decoration: none;
  padding-block: 12px;
}

.section-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.language-switch {
  display: flex;
  gap: 2px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Abertura escura com foto real e curvas sutis ao fundo. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  align-items: center;
  gap: 60px;
  padding: 65px;
  color: var(--light);
  background: var(--night);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 820px;
  height: 820px;
  right: -410px;
  top: -100px;
  border: 1px solid #d3f48e24;
  border-radius: 50%;
  box-shadow: 0 0 0 65px #d3f48e04, 0 0 0 130px #d3f48e03;
}

.hero-text {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 23px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
  max-width: 40ch;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(64px, 7.2vw, 100px);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 500;
}

h1 > span {
  display: block;
}

h1 > span:last-child {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.055em;
}

.hero-intro {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  max-width: 32ch;
}

.hero-summary {
  margin: 18px 0 0;
  color: #bec9bd;
  font-size: 14px;
  line-height: 1.8;
  max-width: 47ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65em;
  text-align: center;
  min-height: 49px;
  padding: 12px 19px;
  color: var(--light);
  border: 1px solid #7f907c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.hero-button--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--night);
}

.hero-button:hover {
  background: var(--light);
  color: var(--night);
}

.hero a:focus-visible {
  outline-color: var(--lime);
}

.hero-portrait {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
}

.avatar {
  display: block;
  width: 100%;
  height: 345px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 140px 140px 3px 3px;
  filter: saturate(.7);
}

.hero-portrait::after {
  content: "+";
  position: absolute;
  top: -19px;
  right: -16px;
  font-size: 34px;
  font-weight: 200;
  color: var(--lime);
}

.hero-portrait figcaption {
  padding: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #c8d3c3;
}

/* Seções abertas, separadas por linhas em vez de caixas. */
main {
  padding-top: 5px;
}

.card {
  position: relative;
  padding: 75px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 30px;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 500;
}

.card > h2::before {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

#sobre > h2::before {
  content: "01 /";
}

#projetos > h2::before {
  content: "02 /";
}

#experiencias > h2::before {
  content: "03 /";
}

#agendamento > h2::before {
  content: "04 /";
}

#links > h2::before {
  content: "05 /";
}

.card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 72ch;
}

h3 {
  margin: 0 0 13px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.6px;
}

#sobre {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 55px;
  align-items: start;
}

#sobre > p {
  padding-top: 37px;
  font-size: 19px;
}

/* O laboratório é o projeto em destaque. */
.lab-invitation {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 23px;
  overflow: hidden;
  padding: 55px;
  margin: 0 0 35px;
  background: var(--night);
  color: var(--light);
  text-decoration: none;
  min-height: 390px;
}

.lab-invitation-label {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.lab-invitation strong {
  max-width: 18ch;
  font-size: clamp(42px, 5.7vw, 74px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 400;
}

.lab-invitation > span:not(.lab-invitation-orbit) {
  max-width: 43ch;
  font-size: 15px;
}

.lab-invitation > .lab-invitation-label {
  font-size: 10px;
}

.lab-invitation .lab-invitation-action {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 14px;
  padding-top: 5px;
  color: var(--lime);
  font-size: 13px;
}

.lab-invitation-orbit {
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  right: -110px;
  top: 80px;
  border: 1px solid #d3f48e50;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #d3f48e08, 0 0 0 110px #d3f48e05;
  transition: transform .5s;
}

.lab-invitation:hover .lab-invitation-orbit {
  transform: scale(1.12) rotate(10deg);
}

.lab-invitation:hover .lab-invitation-action {
  text-decoration: underline;
  text-underline-offset: 6px;
}

#projetos > h3 {
  font-size: 18px;
}

#projetos > p {
  font-size: 15px;
}

/* Cada experiência mantém o nome, o logotipo e os textos revisados. */
.experience {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  column-gap: 55px;
  row-gap: 15px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.experience:last-child {
  padding-bottom: 0;
}

.experience-heading {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.experience-heading h3 {
  font-size: 23px;
  margin: 7px 0 0;
}

.experience > p {
  grid-column: 2;
  font-size: 16px;
}

.organization-logo {
  display: block;
  width: 116px;
  height: 51px;
  object-fit: contain;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.organization-logo--siemens {
  background: #4d217a;
  border-color: #4d217a;
}

.card .organization {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .3px;
  line-height: 1.6;
}

.card .experience-result {
  padding-left: 18px;
  border-left: 2px solid #97a779;
  font-size: 15px;
}

.source-link {
  color: var(--accent);
  text-underline-offset: 4px;
}

/* Informações à esquerda;
durações à direita no computador. */
#agendamento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 65px;
}

#agendamento > h2 {
  grid-column: 1;
}

#agendamento .contact-intro {
  grid-column: 1;
  font-size: 16px;
}

.booking-options {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-self: center;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  min-width: 0;
}

.booking-option {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

.booking-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 50%;
  transition: transform .2s, border-color .2s;
}

.booking-number {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -3px;
}

.booking-unit {
  font-size: 18px;
}

.booking-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.booking-option:hover .booking-duration {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card .booking-provider {
  grid-column: 2;
  margin: 25px 0 0;
  font-size: 11px;
  text-align: center;
  max-width: none;
}

.meeting-service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meeting-service img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.booking-platform {
  display: block;
  margin-top: 5px;
}

/* Contato direto, na ordem escolhida pelo Leo. */
#links {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 55px;
  padding-block: 55px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 110px;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line);
  transition: background .2s;
}

.contact-links a:hover {
  background: var(--accent-soft);
}

.contact-links img {
  object-fit: contain;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 30px;
  color: var(--muted);
  font-size: 11px;
}

footer p {
  margin: 0;
}

@media (min-width: 1500px) {
  .page {
    width: min(1320px, calc(100% - 7rem));
  }
  .hero {
    padding: 80px;
    gap: 90px;
  }
  h1 {
    font-size: 112px;
  }
  .avatar {
    height: 400px;
  }
  .hero-intro {
    font-size: 23px;
  }
  .hero-summary {
    font-size: 16px;
  }
}

@media (max-width: 1000px) {
  .page {
    width: calc(100% - 3rem);
  }
  .hero {
    padding: 45px;
    gap: 35px;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  }
  h1 {
    font-size: 72px;
  }
  .avatar {
    height: 310px;
  }
  .hero-intro {
    font-size: 18px;
  }
  .hero-button {
    padding-inline: 14px;
  }
  #sobre, .experience, #links {
    gap: 35px;
    grid-template-columns: .85fr 1.4fr;
  }
  #agendamento {
    column-gap: 40px;
  }
  .section-nav {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  :root {
    scroll-padding-top: 20px;
  }
  .page {
    width: calc(100% - 2rem);
  }
  .site-nav {
    min-height: 80px;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .site-brand {
    font-size: 32px;
    margin-right: auto;
  }
  .section-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 0;
    padding-bottom: 4px;
  }
  .section-nav a {
    font-size: 12px;
    padding-block: 6px;
  }
  .language-switch {
    border: 0;
    padding: 0;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 35px;
    padding: 35px 25px;
  }
  .hero-text {
    order: 1;
  }
  .hero-portrait {
    order: 2;
    align-self: center;
    width: min(100%, 320px);
    margin: 0;
  }
  h1 {
    font-size: clamp(60px, 14vw, 88px);
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .hero-intro {
    font-size: 19px;
  }
  .hero-summary {
    font-size: 14px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-button {
    flex: 1 1 160px;
  }
  .avatar {
    height: 300px;
  }
  .hero-portrait figcaption {
    font-size: 12px;
    padding-top: 15px;
  }
  .card {
    padding-block: 50px;
  }
  h2 {
    font-size: 33px;
  }
  #sobre {
    display: block;
  }
  #sobre > p {
    padding-top: 0;
    font-size: 17px;
  }
  .lab-invitation {
    padding: 30px 25px;
    min-height: 0;
    gap: 20px;
  }
  .lab-invitation strong {
    font-size: clamp(36px, 9vw, 56px);
  }
  .lab-invitation-orbit {
    right: -300px;
    opacity: .6;
  }
  .lab-invitation > span:not(.lab-invitation-orbit) {
    font-size: 13px;
  }
  .lab-invitation > .lab-invitation-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .lab-invitation .lab-invitation-action {
    font-size: 12px;
    gap: 20px;
  }
  .experience {
    display: block;
    padding: 30px 0;
  }
  .experience-heading {
    flex-direction: row;
    gap: 18px;
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .organization-logo {
    width: 90px;
    height: 48px;
    flex-shrink: 0;
    padding: 7px;
  }
  .experience-heading h3 {
    font-size: 20px;
  }
  .card .organization {
    font-size: 10px;
  }
  .experience > p {
    font-size: 16px;
  }
  .card .experience-result {
    margin-top: 18px;
  }
  #agendamento {
    display: block;
  }
  .booking-options {
    max-width: 390px;
    margin: 30px auto 0;
    gap: 25px;
  }
  .booking-number {
    font-size: 58px;
  }
  .card .booking-provider {
    margin-top: 25px;
  }
  #links {
    display: block;
    padding-block: 45px;
  }
  .contact-links {
    gap: 10px;
  }
  .contact-links a {
    min-height: 106px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 30px 20px;
  }
  h1 {
    font-size: 58px;
  }
  .hero-intro {
    font-size: 18px;
  }
  .experience-heading {
    flex-direction: column;
  }
  .lab-invitation {
    padding-inline: 22px;
  }
  .lab-invitation strong {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Refinamento de leitura após a revisão do Leo. */
.hero-button {
  min-height: 62px;
  padding: 16px 25px;
  font-size: 16px;
}
.avatar {
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  filter: saturate(.85);
}
.hero-portrait::after { content: none; }
.card p { font-size: 20px; line-height: 1.8; }
#sobre { grid-template-columns: .7fr 1.5fr; }
.about-copy { padding-top: 35px; }
.about-copy p + p { margin-top: 22px; }
.card .about-lead { font-size: 28px; line-height: 1.55; color: var(--ink); }
strong { font-weight: 600; }
.card p strong { color: var(--ink); }
.scroll-highlight {
  color: inherit;
  font-weight: 600;
  padding: .02em .07em;
  border-radius: 2px;
  background-color: transparent;
  background-image: linear-gradient(transparent 42%, #d3e6ac 42%, #d3e6ac 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.highlights-ready .scroll-highlight { background-size: 0% 100%; transition: background-size 900ms ease; }
.highlights-ready .scroll-highlight.highlighted { background-size: 100% 100%; }
#projetos .lab-invitation { margin-bottom: 0; }

.experience {
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 22px;
  padding: 42px 0;
}
.experience-heading { display: contents; }
.experience-heading > div { grid-column: 2; align-self: center; min-width: 0; }
.experience-heading h3 { font-size: 28px; margin: 9px 0 0; max-width: 32ch; }
.organization-link {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: 200px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}
.organization-link > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
}
.organization-link:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.organization-logo { width: 200px; height: 100px; padding: 16px; border-radius: 8px; }
.organization-logo--siemens { padding: 20px; }
.card .organization { font-size: 14px; line-height: 1.5; }
.experience-body { grid-column: 2; min-width: 0; }
.experience-body p + p { margin-top: 22px; }
.card .experience-result {
  margin-top: 25px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 20px;
}
#agendamento { align-items: start; row-gap: 22px; }
#agendamento > h2 { margin-bottom: 0; }
#agendamento .contact-intro { font-size: 20px; line-height: 1.8; }
.booking-lead { display: block; font-size: 25px; line-height: 1.45; color: var(--ink); margin-bottom: 18px; }
.booking-duration { background: var(--night); color: var(--lime); }
.booking-option:hover .booking-duration { background: #293d29; border-color: var(--accent); }
.booking-number { font-weight: 500; }
.booking-caption { font-size: 15px; color: var(--ink); }
.card .booking-provider { font-size: 13px; }
@media (max-width: 1000px) {
  .experience { grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; }
  .organization-link, .organization-logo { width: 165px; }
  .organization-logo { height: 90px; padding: 12px; }
  .organization-logo--siemens { padding: 16px; }
  .experience-heading h3 { font-size: 25px; }
}
@media (max-width: 700px) {
  .hero-button { min-height: 58px; padding-inline: 18px; font-size: 15px; }
  .avatar { height: auto; }
  #sobre { display: block; }
  .about-copy { padding-top: 0; }
  .card p { font-size: 18px; line-height: 1.8; }
  .card .about-lead { font-size: 24px; }
  .experience { display: block; }
  .experience-heading { display: flex; flex-direction: column; gap: 20px; margin-bottom: 22px; align-items: flex-start; }
  .organization-link, .organization-logo { width: 190px; }
  .organization-logo { height: 96px; }
  .experience-heading h3 { font-size: 25px; }
  .card .organization { font-size: 13px; }
  .card .experience-result { padding: 18px; font-size: 18px; }
  #agendamento .contact-intro { font-size: 18px; }
  .booking-lead { font-size: 24px; }
  .booking-caption { font-size: 14px; }
  .card .booking-provider { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .highlights-ready .scroll-highlight { background-size: 100% 100%; transition: none; }
}

/* Retrato original: proporção natural, sem recorte adicional. */
.hero-portrait .avatar {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 4px;
  filter: none;
}
.organization-link { width: 200px; }
.organization-link:hover .organization-logo { outline: 1px solid var(--accent); outline-offset: 4px; }
.organization-logo--snowshoe { padding: 12px 4px; }
.education-note { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; }
.education-note > span { display: block; color: var(--accent); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; margin-bottom: 10px; }
.education-note h3 { font-size: 21px; margin-bottom: 8px; }
.education-note h3 a { text-decoration: none; }
.education-note h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card .education-note p { font-size: 16px; margin: 0; }
.card .education-note .education-ranking { font-size: 13px; margin-top: 12px; max-width: 65ch; }
.education-ranking a { text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .organization-link { width: 165px; }
}
@media (max-width: 700px) {
  .hero-portrait { width: min(100%, 290px); }
  .organization-link { width: 190px; }
}

/* Formação identificada com a marca oficial, sem frase decorativa na foto. */
.education-note { position: relative; padding-left: 130px; min-height: 145px; }
.education-logo-link { display: block; position: absolute; left: 0; top: 26px; }
.education-logo-link img { display: block; width: 100px; height: 118px; object-fit: contain; background: #fff; padding: 10px; border-radius: 4px; }
.education-logo-link:hover { outline: 1px solid var(--accent); outline-offset: 4px; }
@media (max-width: 700px) {
  .education-note { padding-left: 0; }
  .education-logo-link { position: static; width: fit-content; margin-bottom: 20px; }
}
.personal-invitation { margin: 44px 0; background: var(--night); color: var(--light); border-radius: 6px; }
.personal-invitation a { display: flex; flex-direction: column; gap: 16px; padding: clamp(25px, 4vw, 52px); color: inherit; text-decoration: none; }
.personal-invitation-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.personal-invitation-title { font-size: clamp(29px, 4vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
.personal-invitation-title > span { color: var(--lime); }
.personal-invitation a > span:last-child { max-width: 55ch; font-size: 17px; line-height: 1.65; }
.personal-invitation a:hover .personal-invitation-title { text-decoration: none; }
.about-stage { position: relative; padding: clamp(26px, 4vw, 46px); border-radius: 6px; background: var(--night); color: var(--light); overflow: hidden; }
.about-stage::before { content: ''; position: absolute; width: 360px; height: 360px; border: 1px solid #d3f48e24; border-radius: 50%; right: -190px; top: -110px; box-shadow: 0 0 0 45px #d3f48e05, 0 0 0 90px #d3f48e04; pointer-events: none; }
.about-beats { position: relative; list-style: none; padding: 0; margin: 0; }
.about-beats li + li { margin-top: 34px; }
.about-beats li > span { display: block; color: var(--lime); font-size: 12px; letter-spacing: .1em; margin-bottom: 20px; }
.about-beats strong { display: block; max-width: 16ch; font-size: clamp(30px, 3.6vw, 45px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.card .about-beats p { font-size: 18px; line-height: 1.65; color: #d5dfd0; margin-top: 22px; max-width: 42ch; }
.about-motion { position: relative; margin-top: 28px; border: 1px solid #d3f48e55; border-radius: 4px; color: var(--lime); background: transparent; padding: 10px 12px; font: inherit; font-size: 12px; cursor: pointer; min-height: 44px; }
.story-animated { height: 140svh; }
.story-animated .about-stage { position: sticky; top: 75px; height: clamp(380px, 57svh, 490px); display: flex; flex-direction: column; justify-content: center; }
.story-animated .about-beats { min-height: 265px; }
.story-animated .about-beats li { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.story-animated .about-beats li.is-current { opacity: 1; transform: none; }
.story-animated .about-stage::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--lime); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.story-animated .about-motion { align-self: flex-start; margin-top: 10px; }
@media (max-width: 700px) {
  .story-animated { height: 145svh; }
  .story-animated .about-stage { top: 24px; height: 390px; }
  .about-beats strong { font-size: 31px; }
  .card .about-beats p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .story-animated .about-beats li { transition: none; transform: none; } }
/* Cena horizontal: a paisagem preenche a tela e termina antes da formação. */
.hero-portrait { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.hero-portrait .avatar { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 100%; transform: scale(1.16); transform-origin: 50% 80%; }
#sobre { display: block; }
#sobre > h2 { margin-bottom: 40px; }
#sobre .about-copy { padding-top: 0; }
.about-story { width: var(--story-width, 100%); margin-inline: calc((100% - var(--story-width, 100%)) / 2); background: var(--night); }
.about-stage { border-radius: 0; isolation: isolate; padding: clamp(40px, 7vw, 110px); }
.about-landscape { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.about-stage::before { z-index: -1; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(90deg, #101e17e8 0%, #101e17ac 52%, #101e1733 100%); }
.about-beats strong { max-width: 18ch; font-size: clamp(38px, 5.7vw, 80px); }
.card .about-beats p { color: #f1f3e9; font-size: clamp(18px, 1.7vw, 23px); max-width: 43ch; }
.about-beats li > span { font-size: 13px; }
.about-image-credit { position: relative; display: block; font-size: 11px; color: #e5eadf; margin-top: 30px; }
.story-animated { height: 210svh; }
.story-animated .about-stage { top: 0; height: 100svh; min-height: 530px; justify-content: center; }
.story-animated .about-beats { width: 100%; min-height: 320px; }
.story-animated .about-motion { margin-top: 25px; background: #17251d60; }
.story-animated .about-image-credit { position: absolute; right: 32px; bottom: 24px; margin: 0; }
#sobre .education-note { margin-top: 42px; }
/* Janelas ilustrativas: uma composição ligada à criação de sites. */
#agendamento .booking-options {
  grid-column: 1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 420px;
  width: 100%;
  margin: 10px 0 0;
}
.booking-option {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 70px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: var(--accent-soft);
}
.booking-option:hover, .booking-option:focus-visible { border-color: var(--accent); }
.booking-option .booking-duration {
  flex-direction: row;
  gap: 3px;
  min-height: 52px;
  aspect-ratio: auto;
  border-radius: 5px;
}
.booking-option:hover .booking-duration { transform: none; }
.booking-option .booking-number { font-size: 24px; letter-spacing: -.05em; }
.booking-option .booking-unit { font-size: 11px; }
.booking-option .booking-caption { font-size: 14px; font-weight: 600; }
.booking-arrow { color: var(--accent); }
#agendamento .booking-provider { grid-column: 1; grid-row: 4; text-align: left; margin-top: 10px; }
.booking-visual { grid-column: 2; grid-row: 1 / span 4; align-self: center; min-width: 0; width: 100%; margin: 0; text-align: center; }
.site-fan { position: relative; width: 100%; max-width: 540px; height: 390px; margin: auto; isolation: isolate; }
.fan-halo { position: absolute; inset: 20% 12%; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(ellipse, #d3f48e45, transparent 70%); transform: rotate(-25deg); }
.window-card { position: absolute; width: 68%; max-width: 345px; height: 225px; left: 16%; top: 22%; border: 1px solid #adb49f; border-radius: 9px; box-shadow: 0 16px 35px #17251d16; overflow: hidden; transform-origin: 50% 110%; will-change: transform; }
.window-card--services { background: #d9e2c3; transform: translate(-16%, -3%) rotate(-16deg); }
.window-card--contact { background: #4b593f; color: var(--light); transform: translate(15%, -5%) rotate(16deg); }
.window-card--front { background: var(--night); color: var(--light); top: 28%; transform: translateY(8px); }
.window-bar { height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 13px; border-bottom: 1px solid #8f998155; }
.window-bar > i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }
.window-bar > span { font-size: 17px; font-weight: 750; letter-spacing: -1px; }
.window-nav { margin-left: auto; display: flex; gap: 6px; }
.window-nav i { width: 20px; height: 2px; background: #d3f48e70; }
.window-content { position: relative; padding: 22px; text-align: left; height: calc(100% - 30px); }
.window-kicker { font-size: 13px; font-weight: 600; }
.window-title { display: block; max-width: 8ch; color: var(--lime); font: 500 29px/1.05 Georgia, serif; letter-spacing: -.04em; }
.window-line { width: 58%; height: 3px; background: currentColor; opacity: .3; border-radius: 2px; margin-top: 14px; }
.window-line--short { width: 42%; margin-top: 6px; }
.window-cta { width: 48px; height: 16px; border-radius: 2px; background: var(--lime); margin-top: 14px; }
.window-tiles { display: flex; gap: 8px; margin-top: 18px; }
.window-tiles i { display: block; height: 35px; width: 25%; border: 1px solid #4b593f66; border-radius: 3px; background: #f2f0e955; }
.window-field { width: 80%; height: 20px; border: 1px solid #f2f0e955; border-radius: 3px; margin-top: 12px; }
.window-submit { width: 45px; height: 15px; background: #d3f48e; margin-top: 12px; border-radius: 3px; }
.window-orbit { position: absolute; right: -25px; top: 10px; width: 130px; height: 130px; border: 1px solid #d3f48e55; border-radius: 50%; box-shadow: 0 0 0 20px #d3f48e06, 0 0 0 40px #d3f48e04; }
.fan-pause { border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--accent); font: inherit; font-size: 12px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.fan-ready .window-card--services { animation: fan-services 9s ease-in-out infinite; }
.fan-ready .window-card--contact { animation: fan-contact 9s ease-in-out infinite; }
.fan-ready .window-card--front { animation: fan-front 9s ease-in-out infinite; }
.fan-ready .window-card { animation-play-state: paused; }
.fan-ready.is-visible:not(.is-paused) .window-card { animation-play-state: running; }
@keyframes fan-services { 0%, 100% { transform: translate(-5%, 5%) rotate(-5deg); } 45%, 65% { transform: translate(-23%, -9%) rotate(-22deg); } }
@keyframes fan-contact { 0%, 100% { transform: translate(5%, 5%) rotate(5deg); } 45%, 65% { transform: translate(23%, -9%) rotate(22deg); } }
@keyframes fan-front { 0%, 100% { transform: translateY(8px) rotate(0); } 45%, 65% { transform: translateY(-7px) rotate(-2deg); } }
@media (max-width: 1000px) {
  .site-fan { height: 320px; }
  .window-card { height: 200px; }
  .window-content { padding: 17px; }
  .window-title { font-size: 25px; }
}
@media (max-width: 700px) {
  #agendamento .booking-options { margin: 12px 0 0; }
  #agendamento .booking-provider { text-align: center; margin-top: 22px; }
  .booking-visual { margin: 20px 0 32px; }
  .site-fan { height: 285px; width: 80%; max-width: 400px; transform: scale(.8); transform-origin: center; }
  .window-card { height: 180px; }
  .window-content { padding: 15px; }
  .window-title { font-size: 23px; }
  .window-tiles { gap: 4px; }
  .window-orbit { width: 100px; height: 100px; right: -45px; }
}
@media (prefers-reduced-motion: reduce) { .fan-ready .window-card { animation: none; will-change: auto; } }
/* Um desenho próprio: da estrutura técnica à interface. */
.about-art { position: absolute; inset: 0 0 0 38%; z-index: -2; display: flex; align-items: center; overflow: hidden; color: var(--lime); }
.about-art svg { width: 100%; min-width: 600px; height: 100%; max-height: 900px; }
.about-stage::before { background: linear-gradient(90deg, #17251d 0%, #17251df0 31%, #17251d10 75%); }
.about-beats { max-width: 55%; }
.art-draft { opacity: var(--draft-opacity, 0); transform: rotate(calc(var(--story-progress, 1) * 12deg)); transform-origin: 430px 345px; }
.art-connections { opacity: var(--connection-opacity, 0); }
.art-interface { opacity: var(--interface-opacity, 1); transform: translateY(calc((1 - var(--story-progress, 1)) * 35px)); }
.art-caption { position: absolute; bottom: 35px; right: 40px; display: flex; gap: 30px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.art-caption-en, html[lang="en"] .art-caption-pt { display: none; }
html[lang="en"] .art-caption-en { display: inline; }
.about-story:not(.story-animated) .art-draft, .about-story:not(.story-animated) .art-connections { opacity: 0; }
.about-story:not(.story-animated) .art-interface { opacity: 1; transform: none; }
.experience { position: relative; }
.experience::before { content: attr(data-step) ' /'; position: absolute; top: 17px; left: 0; color: var(--accent); font-size: 11px; letter-spacing: .12em; }
.experience-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.experience-reveal.reveal-pending { opacity: 0; transform: translateY(24px); }
.experience-body .experience-result { border-left-width: 2px; border-radius: 0 8px 8px 0; }
.experience-result > strong { display: block; font-size: 1.2em; line-height: 1.35; margin-bottom: 10px; }
.organization-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .organization-logo { transition: transform .25s ease, box-shadow .25s ease; }
  .organization-link:hover .organization-logo { transform: translateY(-4px); box-shadow: 0 10px 24px #17251d14; }
}
@media (max-width: 700px) {
  .about-art { inset: 0; opacity: .45; }
  .about-art svg { min-width: 540px; transform: translateX(15%); }
  .about-beats { max-width: 100%; }
  .art-caption { right: 24px; bottom: 24px; gap: 12px; font-size: 9px; }
  .experience::before { top: 12px; }
  .experience-heading { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .experience-reveal, .organization-logo { transition: none; }
  .experience-reveal.reveal-pending { opacity: 1; transform: none; }
  .organization-link:hover .organization-logo { transform: none; }
}
@media (max-width: 700px) {
  .about-stage { padding: 32px 24px; }
  .about-stage::before { background: linear-gradient(0deg, #101e17d9, #101e1770); }
  .story-animated { height: 200svh; }
  .story-animated .about-stage { top: 0; height: 100svh; min-height: 500px; }
  .story-animated .about-beats { min-height: 315px; }
  .about-beats strong { font-size: clamp(36px, 8vw, 48px); }
  .card .about-beats p { font-size: 18px; }
  .story-animated .about-image-credit { right: 24px; bottom: 20px; }
}
/* Convite pessoal: respostas ao cursor, toque e foco de teclado. */
.personal-invitation { overflow: hidden; }
.personal-invitation a { position: relative; isolation: isolate; overflow: hidden; transition: background .3s, box-shadow .2s; }
.personal-invitation a::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle 260px at var(--pointer-x, 80%) var(--pointer-y, 50%), #d3f48e16, transparent); opacity: 0; transition: opacity .3s; }
.personal-invitation .personal-description { max-width: 51ch; line-height: 1.65; font-size: 17px; }
.personal-invitation-title { max-width: 80%; transition: transform .3s; }
.personal-contours { position: absolute; z-index: -1; width: 430px; height: 430px; right: -125px; top: -70px; pointer-events: none; transform: rotate(-25deg); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.personal-contours i { position: absolute; inset: 0; border: 1px solid #d3f48e26; border-radius: 45% 55% 65% 35%; }
.personal-contours i:nth-child(2) { inset: 45px; }
.personal-contours i:nth-child(3) { inset: 90px; }
.personal-invitation a > .personal-explore { display: flex; align-items: center; gap: 18px; margin-top: 10px; width: fit-content; max-width: none; font-size: 13px; color: var(--lime); }
.personal-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d3f48e60; border-radius: 50%; font-size: 23px; transition: transform .3s, background .3s, color .3s; }
.personal-invitation a:focus-visible { outline: 2px solid var(--lime); outline-offset: -7px; }
.personal-invitation a:focus-visible .personal-arrow { background: var(--lime); color: var(--night); transform: rotate(45deg); }
.personal-invitation a:active { background: #253a2b; box-shadow: inset 0 0 0 3px #d3f48e75; }
.personal-invitation a:active .personal-arrow { transform: scale(.88); background: var(--lime); color: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .personal-invitation a:hover::before { opacity: 1; }
  .personal-invitation a:hover .personal-contours { transform: rotate(-10deg) scale(1.07); }
  .personal-invitation a:hover .personal-invitation-title { transform: translateX(5px); }
  .personal-invitation a:hover .personal-arrow { transform: translate(4px, -4px); background: var(--lime); color: var(--night); }
}
/* Contatos: fechamento editorial na mesma paleta da abertura. */
#links.contact-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(30px, 5vw, 85px); margin-top: 35px; padding: clamp(28px, 5vw, 65px); background: var(--night); color: var(--light); border: 0; border-radius: 6px; }
.contact-heading { min-width: 0; }
#links .contact-heading h2 { margin: 0 0 28px; color: var(--lime); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
#links .contact-heading h2::before { display: none; }
#links .contact-headline { margin: 0; color: var(--light); font-size: clamp(36px, 4.5vw, 64px); line-height: 1.06; letter-spacing: -.055em; }
#links .contact-description { max-width: 32ch; margin: 24px 0 0; color: #c3cebf; font-size: 17px; line-height: 1.7; }
.contact-signature { display: block; margin-top: 35px; color: var(--lime); font-size: 40px; font-weight: 750; letter-spacing: -.09em; line-height: 1; }
#links .contact-links { display: flex; flex-direction: column; gap: 0; margin: 0; min-width: 0; }
#links .contact-links li { min-width: 0; }
#links .contact-links a { flex-direction: row; justify-content: flex-start; gap: 18px; min-height: 112px; padding: 22px 8px; border: 0; border-bottom: 1px solid #d3f48e30; color: var(--light); transition: background .25s, padding .25s; }
#links .contact-links li:first-child a { border-top: 1px solid #d3f48e30; }
#links .contact-links a { align-items: flex-start; }
.contact-icon { flex: 0 0 28px; height: 28px; color: var(--lime); display: grid; place-items: center; }
.contact-icon img { filter: brightness(0) invert(1); width: 24px; height: 24px; opacity: .85; }
.contact-channel { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.contact-channel strong { font-size: 23px; line-height: 28px; font-weight: 500; letter-spacing: -.025em; }
.contact-channel > span { font-size: 12px; color: #c3cebf; line-height: 1.5; overflow-wrap: anywhere; }
.contact-arrow { display: grid; place-items: center; flex: none; height: 28px; margin-left: auto; color: var(--lime); font-size: 20px; transition: transform .25s; }
#links .contact-links a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
#links .contact-links a:active { background: #d3f48e18; }
@media (hover: hover) and (pointer: fine) {
  #links .contact-links a:hover { background: #d3f48e09; padding-inline: 16px; }
  #links .contact-links a:hover .contact-arrow { transform: translate(3px, -3px); }
}
@media (max-width: 700px) {
  .personal-invitation-title { max-width: 100%; }
  .personal-contours { opacity: .5; right: -275px; }
  #links.contact-panel { grid-template-columns: 1fr; gap: 35px; padding: 28px 22px; }
  #links .contact-description { font-size: 16px; }
  .contact-signature { margin-top: 25px; font-size: 32px; }
  #links .contact-links a { gap: 12px; min-height: 105px; padding-inline: 0; }
  .contact-channel strong { font-size: 21px; }
  .contact-icon { flex-basis: 24px; }
}
@media (max-width: 700px) {
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-button { justify-content: space-between; min-height: 48px; border-radius: 6px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .personal-invitation a, .personal-invitation a::before, .personal-contours, .personal-invitation-title, .personal-arrow, #links .contact-links a, .contact-arrow { transition: none; }
  .personal-invitation a:hover .personal-contours { transform: rotate(-25deg); }
  .personal-invitation a:hover .personal-invitation-title, .personal-invitation a:hover .personal-arrow, .personal-invitation a:focus-visible .personal-arrow, .personal-invitation a:active .personal-arrow, #links .contact-links a:hover .contact-arrow { transform: none; }
}
.site-brand .brand-monogram{display:block;width:1.333333em;height:1em}.site-brand .brand-dot{fill:var(--accent)}
/* Abertura breve: sem JavaScript ou com movimento reduzido, tudo já fica visível. */
@keyframes home-unveil{from{opacity:1}to{opacity:0;visibility:hidden}}
@keyframes home-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes home-photo{from{opacity:0;transform:translateY(18px) scale(1.025)}to{opacity:1;transform:none}}
html.home-enter body::before{content:'';position:fixed;inset:0;z-index:100;background:var(--bg);pointer-events:none;animation:home-unveil .4s ease .12s both}
html.home-enter .site-nav{animation:home-rise .65s cubic-bezier(.22,1,.36,1) .18s both}
html.home-enter .hero{animation:home-rise .8s cubic-bezier(.22,1,.36,1) .22s both}
html.home-enter .hero .eyebrow{animation:home-rise .65s cubic-bezier(.22,1,.36,1) .28s both}
html.home-enter .hero h1>span{animation:home-rise .8s cubic-bezier(.22,1,.36,1) .34s both}
html.home-enter .hero h1>span+span{animation-delay:.44s}
html.home-enter .hero-intro{animation:home-rise .75s cubic-bezier(.22,1,.36,1) .48s both}
html.home-enter .hero-summary{animation:home-rise .75s cubic-bezier(.22,1,.36,1) .55s both}
html.home-enter .hero-actions{animation:home-rise .7s cubic-bezier(.22,1,.36,1) .62s both}
html.home-enter .hero-portrait{animation:home-photo .95s cubic-bezier(.22,1,.36,1) .4s both}
html.home-enter:focus-within body::before{display:none}html.home-enter:focus-within .site-nav,html.home-enter:focus-within .hero,html.home-enter:focus-within .hero *{animation:none!important}
@media(prefers-reduced-motion:reduce){html.home-enter body::before{display:none}html.home-enter .site-nav,html.home-enter .hero,html.home-enter .hero *{animation:none!important}}

/* Featured projects and the project picker. */
.projects-invitation {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 6vw, 70px);
  border: 1px solid #425241;
  border-radius: 8px;
  background: radial-gradient(ellipse at 95% 0%, #3b573b, transparent 65%), var(--night);
  color: var(--light);
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.projects-invitation strong { font-size: clamp(34px, 7vw, 84px); line-height: 1.02; letter-spacing: -.055em; }
.projects-eyebrow { color: var(--lime); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.projects-teaser { max-width: 42ch; font-size: clamp(15px, 2vw, 19px); }
.projects-open, .project-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 5px;
  background: var(--lime);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}
.projects-open { margin-top: 8px; }
.projects-invitation:hover .projects-open, .project-action:hover { background: #e5fbb5; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .projects-invitation { transition: transform .25s ease, box-shadow .25s ease; }
  .projects-invitation:hover { transform: translateY(-4px); box-shadow: 0 14px 32px #17251d38; }
  .projects-open span { transition: transform .25s ease; }
  .projects-invitation:hover .projects-open span { transform: translateX(4px); }
}
.projects-page { max-width: 1120px; margin-inline: auto; padding: clamp(20px, 5vw, 64px); }
.projects-page-header { margin-block: clamp(12px, 2vw, 24px) clamp(24px, 4vw, 44px); }
.projects-page-header h1 { margin: 0; font-size: clamp(38px, 8vw, 88px); line-height: 1; letter-spacing: -.055em; }
.projects-page-header p { margin-bottom: 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 26px);
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #435544;
  background: #24352a;
  color: var(--light);
}
.tableflow-visual {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(5px, 1vw, 14px);
  min-height: 0;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  aspect-ratio: 16 / 10;
  background: #eeebff;
  color: #20213a;
}
.tableflow-wordmark { display: flex; gap: 8px; align-items: center; font-size: clamp(17px, 2.3vw, 25px); font-weight: 750; letter-spacing: -.04em; }
.tableflow-wordmark img { display: block; width: clamp(24px, 3vw, 34px); height: auto; }
.tableflow-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 35%); align-items: center; min-height: 0; gap: 5px; }
.project-illustration { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; contain: size; }
.tableflow-queue { padding: clamp(6px, 1.2vw, 13px); border: 1px solid #c4bef0; border-radius: 7px; background: #faf9ff; font-size: clamp(10px, 1.3vw, 14px); line-height: 1.25; }
.tableflow-queue ul { margin: 6px 0 0; padding: 0; list-style: none; }
.tableflow-queue li { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; border-top: 1px solid #ded9f6; }
.tableflow-queue li:last-child { padding-bottom: 0; }
.tableflow-queue small { color: #555477; font-size: .83em; }
.lab-carousel { min-width: 0; overflow: hidden; }
body:has(.lab-gallery[open]) { overflow: hidden; }
.lab-gallery {
  box-sizing: border-box;
  width: min(940px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid #536654;
  border-radius: 12px;
  background: var(--night);
  color: var(--light);
  box-shadow: 0 20px 70px #111d16a3;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #84957d var(--night);
}
.lab-gallery::backdrop { background: #101a14b8; }
.lab-gallery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.lab-gallery-header h2 { margin: 0; font-size: clamp(24px, 5vw, 40px); line-height: 1.08; color: inherit; }
.lab-gallery-header p { margin: 8px 0 0; color: #d9e5d5; }
.lab-gallery-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #84957d;
  border-radius: 50%;
  background: transparent;
  color: var(--light);
  cursor: pointer;
}
.lab-gallery-close:hover { background: #314336; }
.lab-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.lab-gallery-grid a { display: block; overflow: hidden; border: 1px solid #687c68; border-radius: 6px; color: var(--light); text-decoration: none; }
.lab-gallery-grid a:hover { background: #314336; }
.lab-gallery-grid img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 90%; background: #314336; }
.lab-gallery-grid a > span { display: flex; justify-content: space-between; gap: 6px; padding: 9px 11px; font-weight: 600; }
.lab-gallery-grid a > span span { color: var(--lime); }
.lab-gallery :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .lab-gallery[open] { animation: lab-gallery-in 220ms cubic-bezier(.23, 1, .32, 1); }
  @keyframes lab-gallery-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 620px) {
  .lab-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.projects-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; padding: 20px 0; }
.projects-contact h2 { margin: 0; }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 36px); }
.project-copy h2 { margin: 0; font-size: clamp(23px, 4vw, 34px); line-height: 1.1; color: inherit; }
.project-copy p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: #e2e9dd; }
.project-badge { border: 1px solid #6c8567; border-radius: 20px; padding: 3px 9px; color: var(--lime); font-size: 11px; }
.project-kicker { font-size: 14px; }
.project-copy .project-action { margin-top: auto; }
@media (max-width: 620px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .projects-page-header,
  .project-card {
    animation: projects-arrive 280ms cubic-bezier(.23, 1, .32, 1) backwards;
  }
  .project-card--tableflow { animation-delay: 55ms; }
  .project-card--lab { animation-delay: 105ms; }

  @keyframes projects-arrive {
    from { opacity: 0; transform: translateY(14px); }
  }
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover { border-color: #879b78; box-shadow: 0 15px 34px #17251d24; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-card {
    transition: transform 200ms cubic-bezier(.23, 1, .32, 1), box-shadow 200ms ease, border-color 200ms ease;
  }
  .project-card:hover { transform: translateY(-6px) scale(1.012); }
  .project-illustration { transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
  .project-card:hover .project-illustration { transform: scale(1.02); }
}

/* Project showcase */
.projects-showcase { background: #100f17; color: var(--light); }
.projects-showcase .projects-top {
  position: relative;
  z-index: 2;
  background: #100f17;
  color: var(--light);
}
.projects-showcase .projects-page { max-width: none; padding: 0; }
.project-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(155px, .22fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
  min-height: calc(100svh - 75px);
  padding: clamp(24px, 5vw, 92px);
  background: #12111c;
}
.project-stage::before, .project-stage::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}
.project-stage::before {
  background:
    radial-gradient(ellipse at 85% 24%, #483877, transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 63px, #ffffff0d 63px 64px),
    repeating-linear-gradient(0deg, transparent 0 63px, #ffffff0d 63px 64px),
    #171326;
}
.project-stage::after {
  background:
    radial-gradient(ellipse at 85% 24%, #344b39, transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 30px, #ffffff0b 30px 31px),
    #142019;
  opacity: 0;
}
.project-stage[data-project="lab"]::after { opacity: 1; }
.project-picker { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.project-picker[hidden], .project-stage .project-card[hidden] { display: none; }
.project-picker h1 { margin: 0 0 12px; color: #e1dfeb; font-size: 1rem; }
.project-picker button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #ffffff55;
  border-radius: 100px;
  background: #ffffff0d;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-picker button[aria-pressed="true"] { background: #f2eff9; border-color: #f2eff9; color: #181222; }
.project-picker button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.project-stage .projects-grid { grid-template-columns: minmax(0, 1fr); }
.project-stage:has(.project-picker[hidden]) .projects-grid { grid-column: 1 / -1; }
.project-stage .project-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 68px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  animation: none;
}
.project-stage .project-card:hover { transform: none; box-shadow: none; }
.project-stage .project-copy { grid-area: 1 / 1; padding: 0; }
.project-stage .project-copy h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 7rem);
  line-height: .94;
  letter-spacing: -.045em;
}
.project-stage .project-copy p { max-width: 36ch; color: #f0edf5; font-size: clamp(15px, 1.4vw, 20px); }
.project-stage .project-badge { border-color: #ffffff66; color: #fff; }
.project-stage .project-action { margin-top: 8px; }
.project-card--tableflow .project-action { background: #e9ddff; color: #23163b; }
.project-card--tableflow .project-action:hover { background: #f4edff; }
.project-stage .tableflow-visual, .project-stage .lab-carousel {
  grid-area: 1 / 2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 60px #08061070;
}
.project-stage .project-card:hover .project-illustration { transform: none; }
.projects-showcase .projects-contact { margin: 0 auto; padding: 30px clamp(24px, 5vw, 92px); }
.projects-showcase .projects-contact h2 { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .project-stage::after { transition: opacity 260ms ease; }
  .project-stage .project-card:not([hidden]) { animation: projects-arrive 240ms cubic-bezier(.23, 1, .32, 1) backwards; }
}
@media (max-width: 1000px) {
  .project-stage { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .project-picker { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .project-picker h1 { flex-basis: 100%; margin-bottom: 4px; }
}
@media (max-width: 660px) {
  .project-stage .project-card { grid-template-columns: minmax(0, 1fr); }
  .project-stage .tableflow-visual, .project-stage .lab-carousel { grid-area: 1 / 1; }
  .project-stage .project-copy { grid-area: 2 / 1; }
}



.lab-live { background: #17251d; border: 1px solid #ffffff38; }
.lab-live iframe { display: block; width: 100%; height: clamp(310px, 52svh, 570px); border: 0; background: #efeee7; }

/* TableFlow and the live Laboratory preview */
.tableflow-queue li:first-child > span { width: fit-content; position: relative; }
.tableflow-queue li:first-child > span::after {
  position: absolute;
  inset: 52% 0 auto;
  content: "";
  height: 2px;
  background: #5147c9;
  transform-origin: left;
  transform: scaleX(0);
}
.lab-motion-control {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .tableflow-art .guest { animation: queue-advance 6s ease-in-out infinite; }
  .tableflow-art .guest-head { transform-origin: 181px 178px; animation: queue-nod 6s ease-in-out infinite; }
  .tableflow-art .phone-signal { animation: queue-ring 6s ease-in-out infinite; }
  .tableflow-art .available { animation: queue-seat 6s ease-in-out infinite; }
  .tableflow-queue li:first-child > span::after { animation: queue-strike 6s ease-in-out infinite; }
}
@keyframes queue-advance {
  0%, 48% { transform: translateX(0); opacity: 1; }
  60% { transform: translate(9px,-4px); }
  70% { transform: translate(19px,0); }
  80% { transform: translate(31px,-4px); opacity: 1; }
  87% { transform: translate(38px,0); opacity: 0; }
  91% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes queue-nod {
  0%, 19%, 49%, 100% { transform: rotate(0); }
  30%, 40% { transform: rotate(11deg); }
}
@keyframes queue-ring {
  0%, 13%, 25%, 38%, 100% { opacity: 0; }
  19%, 31% { opacity: 1; }
}
@keyframes queue-seat {
  0%, 36%, 100% { fill: #dad4fb; stroke: #7869d8; }
  49%, 87% { fill: #bfe8cf; stroke: #438066; }
}
@keyframes queue-strike {
  0%, 18%, 100% { transform: scaleX(0); }
  27%, 89% { transform: scaleX(1); }
}
