:root {
  --canvas: #080b0a;
  --canvas-deep: #0d1210;
  --paper: #111713;
  --paper-warm: #181712;
  --ink: #f1f3ee;
  --ink-2: #c3ccc6;
  --muted: #8e9b94;
  --line: #252e29;
  --line-strong: #3a4640;
  --tomato: #df5a45;
  --tomato-dark: #f0806e;
  --brass: #d2a748;
  --sage: #69aa9a;
  --night: #0d1511;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
  --shadow-small: 0 12px 32px rgba(0, 0, 0, 0.3);
  --radius: 24px;
  --radius-small: 14px;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --shell: 1180px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    var(--canvas);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 10%, rgba(223, 90, 69, 0.055), transparent 32%),
    linear-gradient(180deg, rgba(8, 11, 10, 0) 0%, rgba(8, 11, 10, 0.72) 66%, var(--canvas) 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

[data-lang="en"] {
  display: none !important;
}

html[lang="en"] [data-lang="pt"] {
  display: none !important;
}

html[lang="en"] [data-lang="en"] {
  display: inline !important;
}

::selection {
  background: var(--tomato);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 4px;
  border-radius: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--night);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(58, 70, 64, 0.78);
  background: rgba(8, 11, 10, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.08em;
}

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

.nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--tomato);
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link[aria-current="location"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-button,
.menu-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 23, 19, 0.82);
  color: var(--ink);
  cursor: pointer;
}

.language-button {
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.language-button:hover,
.menu-button:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.menu-button {
  display: none;
  position: relative;
  padding: 0;
}

.menu-button span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.menu-button span:first-child {
  top: 17px;
}

.menu-button span:last-child {
  top: 24px;
}

.menu-button[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 68px;
}

.hero::after {
  content: "DO SALÃO AO SERVIDOR";
  position: absolute;
  right: -58px;
  bottom: 124px;
  z-index: -1;
  transform: rotate(90deg);
  color: rgba(241, 243, 238, 0.085);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: clamp(54px, 6vw, 86px);
}

.hero-copy {
  animation: hero-enter 680ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.kicker,
.eyebrow,
.micro-label,
.note-label,
.ticket-overline,
.timeline-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--sage);
}

.status-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.25rem, 5.5vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.hero h1 > span,
.hero h1 > em {
  display: block;
}

html[lang="en"] .hero h1 > span[data-lang="pt"] {
  display: none !important;
}

html[lang="en"] .hero h1 > span[data-lang="en"] {
  display: block !important;
}

.hero h1 em {
  width: fit-content;
  margin: 0.13em 0 0.1em;
  padding: 0.04em 0.12em 0.09em;
  transform: rotate(-1.2deg);
  background: var(--tomato);
  color: var(--white);
  font-style: normal;
  line-height: 0.94;
}

.hero-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
  line-height: 1.72;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  border-color: var(--tomato);
  background: var(--tomato);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(223, 90, 69, 0.18);
}

.button-primary:hover {
  box-shadow: 0 14px 30px rgba(223, 90, 69, 0.28);
}

.button-secondary {
  background: rgba(17, 23, 19, 0.76);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--paper);
}

.availability {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.proof-bar {
  max-width: 740px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 36px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.proof-bar > div {
  padding: 17px 18px 17px 0;
}

.proof-bar > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.proof-bar dt {
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.2;
}

.proof-bar dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.service-ticket {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-warm);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
  animation: ticket-enter 780ms 120ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.service-ticket::before,
.service-ticket::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 122px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--canvas);
}

.service-ticket::before {
  left: -12px;
}

.service-ticket::after {
  right: -12px;
}

.ticket-head {
  min-height: 123px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-bottom: 1px dashed var(--line-strong);
}

.ticket-head > div {
  display: grid;
  gap: 4px;
}

.ticket-overline {
  color: var(--muted);
}

.ticket-head strong {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.ticket-stamp {
  padding: 6px 9px;
  transform: rotate(-5deg);
  border: 2px solid var(--tomato);
  border-radius: 4px;
  color: var(--tomato-dark);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-flow {
  margin: 0;
  padding: 26px 28px 16px;
  list-style: none;
}

.service-flow li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
}

.service-flow li + li {
  border-top: 1px solid rgba(58, 70, 64, 0.62);
}

.flow-index {
  color: var(--tomato);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.flow-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.flow-copy strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flow-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-state {
  min-width: 39px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-align: center;
}

.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.ticket-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
}

.ticket-health i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section {
  padding: 116px 0;
}

.section-heading {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--tomato-dark);
}

.section-heading h2,
.case-header h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.section-heading-row > p {
  color: var(--muted);
}

.profile {
  border-top: 1px solid var(--line);
  background: rgba(17, 23, 19, 0.58);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.82fr) minmax(250px, 0.46fr);
  align-items: start;
  gap: clamp(32px, 6vw, 78px);
}

.profile-copy {
  padding-top: 27px;
}

.profile-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.02rem;
}

.profile-copy p + p {
  margin-top: 20px;
}

.profile-note {
  padding: 24px;
  border-top: 5px solid var(--tomato);
  background: var(--night);
  color: var(--white);
  box-shadow: var(--shadow-small);
}

.note-label {
  color: #e8b7ae;
}

.profile-note p {
  margin: 15px 0 0;
  color: #e2ebe6;
  font-size: 0.9rem;
  line-height: 1.7;
}

.case-study {
  background: var(--night);
  color: var(--white);
}

.case-study .eyebrow {
  color: #f2a99d;
}

.case-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.65fr);
  align-items: end;
  gap: 64px;
}

.case-header h2 {
  color: var(--white);
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.84;
}

.case-header > p {
  margin: 0 0 5px;
  color: #c4d0ca;
  font-size: 1.02rem;
}

.case-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 62px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.case-context {
  padding: 30px;
  background: #182a23;
}

.case-context .micro-label,
.evidence-numbers .micro-label,
.decisions .micro-label {
  color: #efab9e;
}

.case-context p {
  margin: 12px 0 0;
  color: #c8d5cf;
}

.architecture {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.architecture-title {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1915;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-title small {
  color: #91a39a;
  font-size: 0.62rem;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.12);
  gap: 1px;
}

.architecture-grid article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 25px 22px 22px;
  background: #16261f;
}

.layer-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #f3b0a4;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.architecture-grid h3 {
  margin: 24px 0 10px;
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.architecture-grid p {
  margin: 0;
  color: #bdcbc5;
  font-size: 0.84rem;
  line-height: 1.65;
}

.layer-tech {
  display: block;
  margin-top: auto;
  padding-top: 24px;
  color: #f3b0a4;
  font-family: var(--mono);
  font-size: 0.61rem;
  line-height: 1.5;
}

.case-evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 24px;
}

.evidence-numbers,
.decisions {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #16261f;
}

.evidence-numbers dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0 20px;
}

.evidence-numbers dl > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.evidence-numbers dt {
  color: var(--white);
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1;
}

.evidence-numbers dd {
  margin: 8px 0 0;
  color: #bdcbc5;
  font-size: 0.71rem;
  line-height: 1.45;
}

.evidence-numbers > small {
  display: block;
  color: #90a29a;
  font-size: 0.68rem;
  line-height: 1.55;
}

.decisions ul {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.decisions li {
  display: grid;
  grid-template-columns: minmax(145px, 0.5fr) minmax(0, 1fr);
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #bdcbc5;
  font-size: 0.82rem;
}

.decisions strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 0.94rem;
}

.section-heading-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 72px;
}

.section-heading-row > p {
  margin: 0 0 5px;
}

.projects {
  background: var(--paper);
}

.project-list {
  margin-top: 58px;
}

.project-featured {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 86% 18%, rgba(214, 79, 58, 0.11), transparent 31%),
    var(--canvas);
  box-shadow: var(--shadow-small);
}

.project-featured::after {
  content: "PUBLIC";
  position: absolute;
  right: -10px;
  bottom: -17px;
  color: rgba(241, 243, 238, 0.045);
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.project-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  margin-top: 42px;
}

.project-body > div {
  max-width: 760px;
}

.project-featured h3,
.project-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-featured h3 {
  font-size: clamp(2.1rem, 4.4vw, 4.1rem);
}

.project-featured p,
.project-card p {
  color: var(--ink-2);
}

.project-featured p {
  max-width: 750px;
  margin: 18px 0 0;
}

.text-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tomato-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--ink);
}

.project-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-stack li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 23, 19, 0.78);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-small);
}

.project-card h3 {
  margin-top: 58px;
  font-size: 1.55rem;
}

.project-card p {
  margin: 14px 0 0;
  font-size: 0.87rem;
}

.project-card .project-stack,
.project-card .text-link {
  margin-top: auto;
  padding-top: 25px;
}

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

.skills-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.skills .section-heading {
  position: sticky;
  top: 110px;
}

.skills .section-heading h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
}

.skills .section-heading > p:last-child {
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.skill-groups {
  border-top: 1px solid var(--line-strong);
}

.skill-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.58fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-strong);
}

.skill-index {
  color: var(--tomato-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.skill-group h3 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 23, 19, 0.78);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.skill-group-secondary li {
  border-style: dashed;
  color: var(--muted);
}

.journey {
  background: var(--paper-warm);
}

.timeline {
  margin-top: 60px;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-strong);
}

.timeline-item time {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.timeline-type {
  color: var(--tomato-dark);
}

.timeline-item h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 1.42rem;
  letter-spacing: -0.035em;
}

.timeline-item p {
  max-width: 730px;
  margin: 9px 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.education-card {
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 23, 19, 0.68);
}

.education-card .micro-label {
  color: var(--tomato-dark);
}

.education-card h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.education-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.education-card .text-link {
  margin-top: 16px;
}

.certificates {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 23, 19, 0.58);
}

.certificates summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 650;
}

.certificates summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
}

.certificates[open] summary::after {
  content: "−";
}

.certificate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}

.certificate-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.76rem;
  text-decoration: none;
}

.certificate-links a:hover {
  border-color: var(--ink);
}

.contact {
  background: var(--tomato);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.58fr);
  gap: clamp(54px, 9vw, 120px);
  align-items: end;
}

.contact .eyebrow {
  color: #ffddd6;
}

.contact h2 {
  max-width: 760px;
  color: var(--white);
}

.contact-copy > p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: #ffe2dc;
}

.contact-actions {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.contact-actions > a {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
}

.contact-actions > a:hover {
  padding-right: 9px;
}

.contact-actions .contact-primary {
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.contact-primary .micro-label {
  grid-column: 1 / -1;
  color: #ffddd6;
}

.contact-primary strong {
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--night);
  color: #b9c7c0;
}

.site-footer .shell {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 0.72rem;
}

.site-footer span:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
}

@keyframes hero-enter {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes ticket-enter {
  from {
    transform: translateY(22px) rotate(1.1deg);
  }
  to {
    transform: translateY(0) rotate(1.1deg);
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 7vw, 5.5rem);
  }

  .profile-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-note {
    grid-column: 2;
  }

  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-grid article {
    min-height: 250px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    min-height: 310px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 78px;
  }

  .nav {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--canvas);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.36);
  }

  .nav-panel.is-open {
    display: grid;
  }

  .nav-link {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions {
    grid-column: 2;
  }

  .menu-button {
    display: inline-block;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 76px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .service-ticket {
    width: min(100%, 540px);
    justify-self: center;
  }

  .section {
    padding: 88px 0;
  }

  .profile-layout,
  .case-header,
  .case-evidence,
  .skills-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-note {
    grid-column: auto;
    max-width: 520px;
  }

  .case-header {
    gap: 28px;
  }

  .case-header > p {
    max-width: 680px;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading-row > p {
    max-width: 620px;
  }

  .skills .section-heading {
    position: static;
  }

  .skill-groups {
    margin-top: 14px;
  }

  .contact-layout {
    align-items: start;
  }

  .contact-actions {
    max-width: 600px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 12.8vw, 4.2rem);
    letter-spacing: -0.055em;
  }

  .hero h1 em {
    max-width: 100%;
    font-size: 0.88em;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .proof-bar {
    grid-template-columns: 1fr;
  }

  .proof-bar > div {
    padding: 15px 0;
  }

  .proof-bar > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .ticket-head,
  .service-flow,
  .ticket-foot {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ticket-head {
    min-height: 112px;
  }

  .service-ticket::before,
  .service-ticket::after {
    top: 111px;
  }

  .flow-copy small {
    white-space: normal;
  }

  .ticket-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .profile-copy {
    padding-top: 0;
  }

  .case-intro,
  .architecture-grid,
  .project-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .case-header h2 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

  .case-intro {
    gap: 1px;
  }

  .architecture-grid article {
    min-height: 230px;
  }

  .evidence-numbers dl {
    grid-template-columns: 1fr;
  }

  .evidence-numbers dl > div {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }

  .evidence-numbers dl > div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-left: 0;
  }

  .evidence-numbers dd {
    margin: 0;
  }

  .decisions li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-featured {
    padding: 24px;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
  }

  .project-grid {
    display: grid;
  }

  .project-card,
  .project-card:last-child {
    min-height: 340px;
    grid-column: auto;
  }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .site-footer .shell {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
    text-align: left;
  }

  .site-footer span:nth-child(2) {
    text-align: left;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
