:root {
  color-scheme: dark;
  --ink: #131313;
  --paper: #f1f0eb;
  --muted: #b6b5ae;
  --line: #363634;
  --accent: #c4caad;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(3.35rem, 6.6vw, 6.6rem); font-weight: 650; }
h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 620; }
h3 { font-size: 1.48rem; }
h1 em { color: #a2a39b; font-weight: inherit; }
.wrap { width: min(100% - 104px, 1320px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 10px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.nav, .footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; letter-spacing: .1em; font-weight: 650; text-transform: uppercase; white-space: nowrap; }
.brand-symbol { flex: none; }
.brand-frame { color: #b6b5ae; font-weight: 500; }
nav { display: flex; gap: 29px; color: var(--muted); font-size: .91rem; }
nav a:hover, .text-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.outline, .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; font: inherit; font-weight: 650; border-radius: 4px; padding: 11px 16px; }
.outline { border: 1px solid #555; font-size: .88rem; }
.outline:hover { background: #2b2b29; }
.button { border: 1px solid var(--paper); background: var(--paper); color: var(--ink); cursor: pointer; padding: 14px 17px; }
.button:hover:not(:disabled) { background: #d6d5cd; }
.button:disabled { cursor: default; opacity: .58; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #080808; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; align-items: center; min-height: clamp(510px, 47vw, 740px); padding-block: 64px; }
.hero-copy { width: 58%; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 6.6rem); }
.hero h1 em { color: #c1c1c1; }
.hero .dot { background: #d7d7d7; box-shadow: 0 0 12px #ffffff8c; }
.hero .intro { max-width: 39ch; }
.eyebrow, .number { font: 650 .7rem/1.5 ui-monospace, monospace; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.intro { color: var(--muted); max-width: 46ch; margin-top: 25px; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.text-link { font-size: .92rem; }
.text-link span { margin-left: 6px; }
.hero-visual { position: absolute; inset: 0; z-index: -1; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080808 1%, #080808cc 34%, transparent 69%), linear-gradient(0deg, #080808 0%, transparent 24%); }
.section { padding-block: clamp(68px, 9vw, 132px); }
.light { background: var(--paper); color: var(--ink); color-scheme: light; --muted: #54544e; --line: #cecdc5; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head p { max-width: 32ch; color: var(--muted); }
.cards, .projects, .steps { display: grid; gap: 13px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards article { padding: 24px; border: 1px solid var(--line); }
.number { color: var(--muted); display: block; }
.service-icon { display: block; font-size: 2.6rem; margin-block: 23px 12px; }
.cards p, .steps p, .projects p { margin-top: 10px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(28px, 8vw, 120px); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { border-top: 1px solid var(--line); padding: 20px 0; }
.rows p, .about .two-col > div + div, .contact .two-col > div > p:last-child { color: var(--muted); }
.rows p { margin-top: 8px; }
.portfolio, .contact { background: #1b1b1a; }
.featured-project { display: grid; grid-template-columns: 1.65fr 1fr; border: 1px solid #4a4a46; margin-bottom: 42px; }
.featured-image { display: block; overflow: hidden; }
.featured-image img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.featured-copy { display: grid; align-content: center; justify-items: start; gap: 17px; padding: clamp(22px, 4vw, 60px); }
.featured-copy h3 { font: normal clamp(2.5rem, 4.3vw, 4.5rem)/.97 Georgia, serif; letter-spacing: -.055em; }
.featured-copy > p:not(.number) { color: var(--muted); }
.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.projects .demo { aspect-ratio: 1.8; }
.demo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.37; border: 1px solid #555; background: #30312d; }
.demo div { width: 78%; height: 74%; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 6px 9px 20px #0006; }
.demo strong { font-size: clamp(1.28rem, 3vw, 3rem); line-height: .92; letter-spacing: -.05em; }
.demo small, .demo span { font: 650 .57rem ui-monospace, monospace; letter-spacing: .04em; }
.demo-b div { background: repeating-radial-gradient(ellipse at 102% 54%,#464744 0 1px,transparent 2px 12px), #141414; }
.demo-c { background: #44443e; }
.demo-c div { background: repeating-linear-gradient(105deg,transparent 0 16px,#77776b 17px,transparent 18px 35px),linear-gradient(105deg,#f2f0e5 52%,#aaa99e 53%,#55564e); color: #171713; }
.projects figcaption { padding-top: 17px; }
.projects h3 { margin-top: 5px; }
.steps { grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin: 34px 0 0; }
.steps li { border-top: 1px solid var(--line); padding: 15px 6px 0 0; }
.steps h3 { margin-top: 18px; }
.about p + p { margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.contact h2 + p { margin-top: 16px; }
form { display: grid; gap: 10px; }
label { font-weight: 650; }
label span, .form-note { color: var(--muted); font-size: .88rem; font-weight: 400; }
select, textarea { width: 100%; background: #222; border: 1px solid #62625d; border-radius: 4px; color: var(--paper); padding: 11px; font: inherit; }
textarea { resize: vertical; margin-bottom: 6px; }
.footer p, .footer > a:last-child { color: var(--muted); font-size: .88rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .55s ease-out both; }
  a, button { transition: background-color .2s ease, color .2s ease; }
  @keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 950px) { .wrap { width: calc(100% - 56px); } }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 64px; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  nav { width: 100%; order: 3; gap: 22px; padding: 8px 0; }
  nav a, .footer > a:last-child { padding-block: 8px; }
  .hero-grid, .two-col, .cards, .projects { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; padding-block: 5px 58px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.5rem, 9.7vw, 4.25rem); }
  .hero-visual { position: relative; display: block; height: clamp(195px, 57vw, 330px); }
  .hero-visual img { object-position: 83% center; }
  .hero-visual::after { background: linear-gradient(0deg, #080808 0%, transparent 38%); }
  .section-head { align-items: start; flex-direction: column; gap: 14px; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .projects { gap: 28px; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-image img { min-height: 0; height: auto; aspect-ratio: 1.5; }
  .demo strong { font-size: clamp(2rem, 8vw, 3.5rem); }
  .footer { flex-wrap: wrap; padding-block: 14px; gap: 7px 12px; }
}

.about-profile { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 18px; }
.about-profile img { width: clamp(76px, 10vw, 112px); height: auto; flex: none; mask: url("./retrato-mascara.svg") center / 100% 100% no-repeat; }
@media (max-width: 380px) { .about-profile { flex-direction: column; } }
