:root {
  --paper: #F2F4F0;
  --ink: #1D2826;
  --ink-soft: #46524F;
  --eucalyptus: #2F5D50;
  --eucalyptus-deep: #23463C;
  --heather: #7D6B9E;
  --heather-soft: #E7E2EF;
  --mist: #DCE3DC;
  --white: #FFFFFF;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--eucalyptus); text-underline-offset: .18em; }
a:hover { color: var(--eucalyptus-deep); }
:focus-visible { outline: 3px solid var(--heather); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 300; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--eucalyptus);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  line-height: 1.2;
  transition: background-color .2s;
}
.btn:hover { background: var(--eucalyptus-deep); color: var(--white); }
.btn-small { padding: .55rem 1.1rem; font-size: var(--step--1); }
.btn-light { background: var(--white); color: var(--eucalyptus-deep); }
.btn-light:hover { background: var(--mist); color: var(--eucalyptus-deep); }
.link { font-weight: 500; }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--mist); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand img { width: 190px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: var(--step--1); }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--eucalyptus); text-decoration: underline; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: var(--step-1); color: var(--ink-soft); font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }

/* Cognitive model: the one bold element on the page */
.model { margin: 0; }
.model-cap { font-style: italic; font-size: var(--step-1); font-weight: 300; color: var(--heather); margin-bottom: 1.5rem; max-width: 30ch; }
.cycle {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2.6rem;
}
/* clockwise order: 1 top-left, 2 top-right, 3 bottom-right, 4 bottom-left */
.n1 { grid-area: 1 / 1; }
.n2 { grid-area: 1 / 2; }
.n3 { grid-area: 2 / 2; }
.n4 { grid-area: 2 / 1; }
.node { position: relative; }
/* setas do ciclo, no sentido horário */
.node::after {
  position: absolute; color: var(--heather); font-size: 1.5rem; line-height: 1;
  pointer-events: none;
}
.n1::after { content: "→"; left: calc(100% + .55rem); top: .7rem; }
.n2::after { content: "↓"; left: 50%; top: calc(100% + .35rem); }
.n3::after { content: "←"; right: calc(100% + .55rem); top: .7rem; }
.n4::after { content: "↑"; left: 50%; bottom: calc(100% + .35rem); }
.node-btn {
  font: inherit; font-weight: 500; font-size: var(--step-0);
  width: 100%; text-align: left; cursor: pointer;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--heather); border-radius: 14px 14px 14px 4px;
  padding: .75rem 1rem;
  transition: background-color .2s, color .2s;
}
.node-btn:hover { background: var(--heather-soft); }
.node-btn[aria-expanded="true"] { background: var(--heather); color: var(--white); }
.node-ex { font-size: var(--step--1); color: var(--ink-soft); margin: .6rem .2rem 0; min-height: 3.2em; }
.js .node-btn[aria-expanded="false"] + .node-ex { visibility: hidden; }
.reframe {
  margin-top: 2rem; padding-left: 1rem;
  border-left: 3px solid var(--eucalyptus);
  font-size: var(--step--1); color: var(--ink);
}

/* Services */
.services { background: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1rem; }
.svc { border-top: 2px solid var(--eucalyptus); padding-top: 1.25rem; }
.svc p { color: var(--ink-soft); }

/* First visit: a real sequence, so it is numbered */
.visit { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.visit-in { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 2rem 3.75rem; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--eucalyptus-deep); font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.2rem; top: 2.5rem; bottom: .3rem;
  border-left: 1.5px solid var(--mist);
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--ink-soft); margin: 0; }

/* About */
.about { background: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.about-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-photo img { border-radius: 4px 120px 4px 4px; width: 100%; object-fit: cover; aspect-ratio: 4 / 4.4; }
.reg { color: var(--ink-soft); font-size: var(--step--1); margin-top: -.6em; }
.edu-h { margin-top: 2rem; }
.edu { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.edu li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--mist); }
.yr { color: var(--eucalyptus); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Quote band */
.quote {
  background: linear-gradient(rgba(29, 40, 38, .35), rgba(29, 40, 38, .55)), var(--img) center 60% / cover no-repeat;
  color: var(--white);
  padding: clamp(5rem, 14vw, 10rem) 0;
}
.quote blockquote { margin: 0 auto; }
.quote p { font-size: var(--step-3); font-weight: 300; font-style: italic; line-height: 1.3; max-width: 26ch; }

/* Articles */
.articles { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.art { border-bottom: 1px solid var(--mist); padding: .4rem 0; }
.art summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; }
.art summary::-webkit-details-marker { display: none; }
.art summary h3 { margin: 0; }
.art summary::after { content: "+"; font-size: var(--step-2); font-weight: 300; color: var(--eucalyptus); line-height: 1; }
.art[open] summary::after { content: "−"; }
.art p { line-height: 1.75; }

/* Contact */
.contact { background: var(--eucalyptus-deep); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.contact .lead { color: var(--mist); }
.contact a { color: var(--white); }
.contact .btn-light { color: var(--eucalyptus-deep); margin-top: .5rem; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info { margin: 0; display: grid; gap: 1.1rem; }
.info dt { font-size: var(--step--1); color: var(--mist); }
.info dd { margin: 0; }

/* Footer */
.foot { padding: 2rem 0 3rem; font-size: var(--step--1); color: var(--ink-soft); }
.foot p { margin: .3rem 0; }

@media (max-width: 900px) {
  .hero-in, .visit-in, .about-in, .contact-in { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .about-photo { max-width: 26rem; }
}
@media (max-width: 480px) {
  .brand img { width: 150px; }
  .cycle { gap: 1.8rem 1.9rem; }
  .n1::after, .n3::after { font-size: 1.2rem; }
  .n1::after { left: calc(100% + .45rem); }
  .n3::after { right: calc(100% + .45rem); }
  .node-btn { font-size: var(--step--1); padding: .6rem .7rem; }
}
