/* Felipe Parreiras — Portfolio
   Shared styles */

:root {
  --bg: #292a2f;
  --bg-header: #1c1c1c;
  --text: #f3f3f3;
  --text-strong: #ffffff;
  --link: #f9f9f9;
  --accent: #91ff5e;
  --orange: #ff9900;
  --claude: #f6b26b;
  --figma: #ea9999;
  --manus: #a4c2f4;
  --line: #535353;
  --header-h: 56px;
  --wrap: 1154px;
  --u-base: 896;
  --font: "Montserrat", Arial, sans-serif;
  --font-ui: "Roboto", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18.6667px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 16px;
  background: transparent;
  font-family: var(--font-ui);
  transition: background-color .25s ease;
}
.site-header.is-solid { background: var(--bg-header); }

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: #f9f9f9;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 45.44px; height: 56px; padding: 8px 4px 8px 12px; box-sizing: border-box; object-fit: fill; }
.brand span { margin-left: 12px; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 0 24px 0 0;
  margin-left: 0;
  color: var(--link);
  font-size: 18.6667px;
  line-height: 23px;
  text-decoration: none;
}
.site-nav li { padding-right: 0; }
.site-nav li + li a { padding-left: 0; }
.site-nav a { padding: 0 0 0 0; margin: 0 0 0 26px; }
.site-nav ul { margin-right: -1px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { font-weight: 700; }

.search-btn {
  margin-left: 12px;
  width: 48px; height: 48px;
  padding: 0; border: 0; background: none;
  color: #f9f9f9; cursor: pointer;
  display: grid; place-items: center;
}
.search-btn svg { width: 24px; height: 24px; fill: currentColor; }

.menu-btn { display: none; }

/* ---------- Search overlay ---------- */
.search-panel {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .65);
  display: none;
  padding: 80px 16px 0;
}
.search-panel.is-open { display: block; }
.search-box {
  max-width: 514px; margin: 0 auto;
  background: #fff; border-radius: 4px;
  box-shadow: 0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px rgba(0,0,0,.2);
  font-family: var(--font-ui);
}
.search-box input {
  width: 100%; border: 0; outline: 0; background: none;
  padding: 14px 16px; font: 16px var(--font-ui); color: #202124;
}
.search-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e0e0e0; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 12px 16px; color: #202124; text-decoration: none; font-size: 15px; }
.search-results a:hover { background: #f1f3f4; }

/* ---------- Layout ---------- */
main { padding-top: var(--header-h); }
.wrap { width: min(100% - 124px, var(--wrap)); margin-inline: auto; container-type: inline-size; }
/* 1 unit = 1/896 of the content width: the original (Google Sites) grid scales with the container, text sizes stay fixed */
.wrap > *, .page > * { --u: calc(100cqw / 896); }
.pad { padding-inline: calc(8 * var(--u)); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0 auto; width: min(100% - 124px, var(--wrap)); }

h1, h2, h3, p { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 31px; }
.hero h1 { font-size: 96px; line-height: 1.2; font-weight: 700; color: var(--text); }
.hero .role { font-size: 80px; line-height: 1.2; font-weight: 700; color: var(--accent); margin-top: 16px; }
.hero .lead {
  font-size: 21.3333px; font-weight: 500; line-height: 1.5;
  margin-top: 84px;
}
.clients {
  list-style: none; margin: 54px 0 0 calc(77 * var(--u)); padding: 0;
  display: flex; align-items: flex-start; justify-content: flex-start;
  gap: calc(22.5 * var(--u)); width: calc(667 * var(--u)); max-width: 100%;
}
.clients li { flex: 0 0 calc(54 * var(--u)); }
.clients img { width: 100%; }

.about-row {
  display: grid; grid-template-columns: calc(563 * var(--u)) calc(130 * var(--u));
  column-gap: calc(42 * var(--u));
  justify-content: start; align-items: start;
  margin-top: 146px;
}
.about-row p { font-weight: 500; line-height: 1.5; }
.about-row .side { display: flex; flex-direction: column; align-items: center; gap: calc(19 * var(--u)); margin-top: -10px; }
.about-row .photo { width: calc(130 * var(--u)); height: calc(130 * var(--u)); border-radius: 50%; object-fit: cover; }

/* ---------- Section titles ---------- */
.section-title { font-size: 48px; line-height: 1.2; font-weight: 700; color: var(--text-strong); }
.section-title.center { text-align: center; }

.highlights-title { margin-top: 78px; }

/* ---------- Project cards (staggered) ---------- */
.projects { margin-top: 66px; padding-bottom: 105px; }
.project { width: calc(590 * var(--u)); max-width: 100%; margin-bottom: 134.8px; }
.project:nth-child(even) { margin-left: calc(307 * var(--u)); }
.project img.cover { width: 100%; }
.project .body { padding: 0 calc(8 * var(--u)); }
.project h3 { font-size: 32px; line-height: 1.2; font-weight: 700; margin-top: 19px; }
.project h3.has-tag { display: inline-block; }
.project .tag { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 2px 10px; border: 1px solid var(--orange); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--orange); line-height: 1.3; }
.project p { margin-top: 33px; line-height: 1.5; }
.project .btn { margin-top: 63px; }

/* ---------- Testimonials ---------- */

/* ---------- Showcase sections ---------- */
.block { padding-top: 61px; }
.block .intro {
  font-size: 21.3333px; font-weight: 500; line-height: 1.5;
  margin: 73px 0 0 calc(85 * var(--u)); max-width: calc(725 * var(--u));
}
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: calc(23 * var(--u)); }
.thumbs a { text-decoration: none; color: var(--link); font-weight: 500; text-align: center; display: block; }
.thumbs img { width: 100%; }
.thumbs.labeled { margin-top: 56px; }
.thumbs.labeled span { display: block; margin-top: 14px; text-transform: uppercase; line-height: 1.4; padding: 0 14px; }
.thumbs.gallery { row-gap: 48px; margin-top: 66px; }

.style-guide .cover-row { display: flex; align-items: flex-start; justify-content: space-between; margin: 58px 0 0 calc(77 * var(--u)); }
.style-guide .cover-row img { width: calc(590 * var(--u)); }
.style-guide .cover-row .btn { margin-top: 40px; min-width: calc(206 * var(--u)); }

.html-css .duo { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(23 * var(--u)); margin-top: 54px; }
.html-css .duo a { text-decoration: none; }
.html-css .duo .logo { margin: 48px auto 0; width: calc(130 * var(--u)); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-top: 61px; }
.contact p { font-weight: 400; }
.contact .msg { margin-top: 73px; }
.contact .lines { margin-top: 56px; line-height: 44px; }
.contact a { color: var(--link); }
.contact .lines p + p { margin-top: 0; }

footer.site-footer {
  text-align: center; padding: 56px 0 31px;
  font: 500 14px/1.5 var(--font-ui);
}

/* ---------- Inner pages ---------- */
.page-head { padding-top: 40px; }
.back { display: inline-flex; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 64px; }
  .hero .role { font-size: 52px; }
  .hero .lead { margin-top: 90px; }
  .style-guide .cover-row, .block .intro { margin-left: 0; }
}

@media (max-width: 700px) {
  .menu-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px; border: 0; background: none;
    color: #f9f9f9; cursor: pointer;
  }
  .menu-btn svg { width: 24px; height: 24px; fill: currentColor; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-header); display: none; padding: 8px 16px 16px;
    flex-direction: column; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { margin: 0; padding: 12px 0; }
  .search-btn { display: none; }

  .wrap, .rule { width: min(100% - 32px, var(--wrap)); }
  .wrap > *, .page > * { --u: 1px; }
  .project { width: 100%; }
  .project:nth-child(even) { margin-left: 0; }
  .clients li { flex-basis: 54px; }
  .about-row { grid-template-columns: 1fr; }
  .about-row .photo { width: 130px; height: 130px; }
  .hero h1 { font-size: 44px; }
  .hero .role { font-size: 36px; }
  .hero .lead { margin-top: 56px; font-size: 18px; }
  .clients { flex-wrap: wrap; gap: 20px; width: 100%; }
  .about-row { grid-template-columns: 1fr; margin-top: 64px; row-gap: 28px; }
  .about-row .side { order: -1; align-items: flex-start; }
  .section-title { font-size: 34px; }
  .project h3 { font-size: 26px; }
  .thumbs { grid-template-columns: 1fr; row-gap: 28px; }
  .html-css .duo { grid-template-columns: 1fr; row-gap: 28px; }
  .block .intro { font-size: 18px; margin-top: 40px; }
}

/* ---------- Generated inner pages (row layout) ---------- */
.page { width: min(100% - 124px, var(--wrap)); margin-inline: auto; container-type: inline-size; }
.page .row { display: flex; align-items: flex-start; margin-top: var(--rt, 0); }
.page .row > * {
  flex: 0 1 var(--w);
  width: var(--w);
  max-width: 100%;
  min-width: 0;
  margin-left: var(--ml, 0);
  margin-top: var(--mt, 0);
}
.page .row > .c { margin-inline: auto; }
.page .row > .btn { flex: 0 0 auto; width: var(--w); min-width: max-content; }
.page .row > .btn-back { width: auto; }
.page img { width: 100%; height: auto; }
.page .embed { height: var(--h); }
.page .embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.page h1, .page h2, .page h3 { line-height: 1.2; }
.page a { color: var(--link); }
.page ul.bullets { list-style: square; padding: 0; margin-bottom: 0; }
.page .page-end { height: var(--h, 0); }
.site-footer.tight { padding-top: 0; }

@media (max-width: 700px) {
  .page { width: min(100% - 32px, var(--wrap)); }
  .page .row { flex-direction: column; align-items: stretch; margin-top: calc(var(--rt, 0px) * .5); }
  .page .row > * { width: auto; flex: none; margin-left: 0; margin-top: 16px; }
  .page .row > .cell:first-child { margin-top: 0; }
  .page .row > .btn { width: auto; align-self: flex-start; padding-inline: 14px; }
  .page .embed { height: 60vw; }
  .page .row > .c { margin-inline: 0; }
}
.page ul.bullets li + li { margin-top: var(--gap, 0); }
.page h1, .page h2, .page h3, .page h4, .page h5, .page h6 { font-size: 18.6667px; font-weight: 400; }
.page p.cell, .page h1.cell, .page h2.cell, .page h3.cell { min-height: var(--h); }
@media (max-width: 700px) {
  .page .row > p.cell, .page .row > h1.cell, .page .row > h2.cell, .page .row > h3.cell { min-height: 0; }
}

.page hr.cell { border: 0; border-top: 1px solid var(--line); height: 0; margin-bottom: 0; }

/* =====================================================================
   UX improvements
   ===================================================================== */
:root { --surface: #33343a; --muted: #c9cacf; --focus: var(--accent); }
html { scroll-padding-top: 72px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 4px;
  background: var(--accent); color: #1c1c1c;
  font: 500 16px var(--font-ui); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

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

/* Buttons: primary (filled), secondary (outline), tertiary (link) */

/* Header */
.site-nav .nav-cta {
  display: inline-flex; align-items: center; height: 34px;
  margin: 0 0 0 22px; padding: 0 16px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font: 600 14px/1 var(--font); letter-spacing: .01em;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.site-nav .nav-cta:hover { background: var(--accent); color: #14160f; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(145, 255, 94, .5); }

/* Hero */
.hero .tagline { max-width: none; margin-top: 24px; font-size: 20px; font-weight: 300; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Cards (Design & Prototypes) */
.cards {
  list-style: none; margin: 66px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px calc(23 * var(--u));
}
.card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: transform .2s ease; }
.card img { width: 100%; }
.card-title { margin-top: 14px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.card-meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.card:hover { transform: translateY(-4px); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.thumbs a { transition: transform .2s ease; }
.thumbs a:hover { transform: translateY(-4px); }
.html-css .duo a { color: inherit; transition: transform .2s ease; }
.html-css .duo a:hover { transform: translateY(-4px); }
.html-css .duo .caption { display: block; margin-top: 14px; text-align: center; font-size: 16px; color: var(--muted); }

/* Testimonials */
.testimonials { padding-top: 40px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: calc(23 * var(--u)); margin-top: 36px; }
.quote {
  margin: 0; padding: 28px; border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.quote blockquote { margin: 0; }
.quote p { font-size: 17px; line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.quote strong { display: block; font-size: 17px; }
.quote small { display: block; font-size: 15px; color: var(--muted); }

/* Project pages: on-page index and previous/next */
.page .toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; font: 500 15px var(--font-ui); }
.toc span { margin-right: 4px; color: var(--muted); }
.page .toc { gap: 6px 22px; }
.page .toc a { padding: 4px 0; border-bottom: 1px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.page .toc a:hover { color: #fff; border-bottom-color: var(--accent); }
.page h2[id] { scroll-margin-top: 80px; }
.case-nav { display: flex; justify-content: space-between; gap: 24px; margin: 24px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.case-nav a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; color: var(--text); text-decoration: none; }
.case-nav small { font-size: 14px; color: var(--muted); }
.case-nav span { font-size: 20px; font-weight: 700; }
.case-nav .next { margin-left: auto; align-items: flex-end; text-align: right; }
.case-nav a:hover span { color: var(--accent); }

/* Comfortable line length on text-heavy pages */
.page .row > p.cell { max-width: min(100%, 44em); }
.page .row > .c { margin-inline: auto; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
main { animation: fade .4s ease; }
.js .reveal:not(.in) { opacity: 0; }
.js .reveal.in { animation: rise .55s ease backwards; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  .js .reveal:not(.in) { opacity: 1; }
  .js .reveal.in { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* About page */
.about { padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; }
.about > * { max-width: 920px; margin-inline: auto; }
.about h1 { font-size: 48px; line-height: 1.2; font-weight: 700; color: var(--text-strong); }
.about h2 { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--text-strong); scroll-margin-top: 80px; }
.about h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.about-intro { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; margin-top: 36px; }
.about-intro .photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.about-intro p { max-width: 62ch; font-size: 17px; line-height: 1.65; }
.about-intro p + p { margin-top: 16px; }
.about .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 36px; font: 500 15px var(--font); }
.about-nav a { padding: 4px 0; border-bottom: 1px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.about-nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 20px 0; }
.timeline > li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.timeline .meta { color: var(--muted); font-size: 15px; line-height: 1.5; }
.timeline p { line-height: 1.65; max-width: 66ch; }
.timeline p + p { margin-top: 10px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 32px; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 15px; line-height: 1.4; color: var(--text); cursor: default; }
.edu-list { list-style: none; margin: 16px 0 0; padding: 0; }
.edu-list li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.5; }
.edu-list time { color: var(--muted); white-space: nowrap; font-size: 15px; }
.edu-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 32px; }
.edu-cols h3 + .edu-list { margin-top: 8px; }
.edu-cols section + section { margin-top: 32px; }
.badge-row { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.badge-row img { width: 120px; height: auto; flex: none; }
.badge-row p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 48ch; }

@media (max-width: 700px) {
  .site-nav .nav-cta { margin: 8px 0 0; align-self: flex-start; }
  .hero .tagline { font-size: 18px; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .quotes { grid-template-columns: 1fr; gap: 20px; }
  .html-css .duo .caption { font-size: 15px; }
  .case-nav a { max-width: 49%; }
  .case-nav span { font-size: 17px; }
  .about h1 { font-size: 34px; }
  .about h2 { font-size: 26px; margin-top: 56px; }
  .about-intro { grid-template-columns: 1fr; gap: 24px; }
  .about-intro .photo { width: 140px; height: 140px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .skill-grid, .edu-cols { grid-template-columns: 1fr; gap: 28px; }
  .edu-list li { flex-direction: column; gap: 2px; }
  .badge-row { flex-direction: column; align-items: flex-start; }
}

/* Mobile safety: long words and fixed offsets must not cause horizontal scroll */
.page .cell { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .clients { margin-left: 0; }
  .page .row > h1.cell, .page .row > h2.cell { font-size: 32px !important; line-height: 1.2 !important; top: 0 !important; }
  .page .row > h3.cell { font-size: 22px !important; top: 0 !important; }
}

/* Collapse the header menu a little earlier so the extra Resume button never crowds the nav */
@media (min-width: 701px) and (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: #f9f9f9; cursor: pointer; }
  .menu-btn svg { width: 24px; height: 24px; fill: currentColor; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg-header); display: none; padding: 8px 16px 16px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { margin: 0; padding: 12px 0; }
  .site-nav .nav-cta { margin: 8px 0 0; align-self: flex-start; padding: 0 14px; }
  .search-btn { display: none; }
}

.about .summary-text { margin-top: 20px; max-width: 66ch; line-height: 1.7; }

/* Section heading row with an action on the right (About > Experience) */
.about .section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.about .section-head h2 { margin: 0; padding: 0; border: 0; scroll-margin-top: 100px; }

/* =====================================================================
   Button system (pill shape, 44px touch target, icon support)
   primary  = filled accent      secondary = translucent outline (default)
   .btn-sm  = compact variant    .btn-back = quiet ghost for "Back"
   ===================================================================== */
.btn {
  --btn-bg: rgba(255, 255, 255, .06);
  --btn-bg-hover: rgba(255, 255, 255, .13);
  --btn-border: rgba(255, 255, 255, .24);
  --btn-border-hover: rgba(255, 255, 255, .55);
  --btn-color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 0; height: 44px; padding: 0 22px;
  border: 1px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-color);
  font: 600 15px/1 var(--font); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-border-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.page a.btn, .about a.btn, .projects a.btn { color: var(--btn-color); text-decoration: none; }

.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn svg.btn-icon { fill: currentColor; stroke: none; }
.btn:hover svg.arrow-right { transform: translateX(3px); }
.btn:hover svg.arrow-ne { transform: translate(2px, -2px); }
.btn:hover svg.arrow-left { transform: translateX(-3px); }
.btn:hover svg.download { transform: translateY(2px); }

.btn-primary {
  --btn-bg: var(--accent); --btn-bg-hover: #b4ff8f;
  --btn-border: var(--accent); --btn-border-hover: #b4ff8f;
  --btn-color: #14160f;
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(145, 255, 94, .55); }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

.btn-back {
  --btn-bg: transparent; --btn-bg-hover: rgba(255, 255, 255, .08);
  --btn-border: rgba(255, 255, 255, .14); --btn-border-hover: rgba(255, 255, 255, .4);
  --btn-color: var(--muted);
  height: 36px; padding: 0 16px 0 12px; gap: 8px; font-size: 14px;
}
.btn-back:hover { --btn-color: #fff; }
.page a.btn.btn-back:hover, .about a.btn.btn-back:hover { color: #fff; }
.about > .btn-back { display: flex; width: max-content; max-width: none; margin: 0 0 28px max(0px, calc((100% - 920px) / 2)); }

@media (max-width: 700px) {
  .btn { height: 46px; }
  .btn-sm, .btn-back { height: 40px; }
}


/* Profile-style hero: photo beside name and role */
.hero-profile { display: flex; align-items: center; gap: 44px; }
.hero-photo { width: clamp(120px, 15vw, 200px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none; }
.hero-profile h1 { margin-top: 0; }
.highlights-title { margin-top: 110px; }
@media (max-width: 960px) {
  .hero-profile { gap: 28px; }
}
@media (max-width: 700px) {
  .hero-profile { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-photo { width: 112px; }
}
.hero-profile > div { flex: 1; min-width: 0; }
.hero .tagline { margin-top: 28px; }
.tag-item:not(:last-child)::after { content: "|"; margin: 0 .7em; opacity: .45; }
.tag-item { white-space: nowrap; }

/* Tagline: one line under the photo + name block (wraps only on phones) */
@media (min-width: 701px) {
  .hero .tagline { white-space: nowrap; font-size: clamp(11px, 1.6vw, 20px); }
}


/* =====================================================================
   Hero v3: minimal, left-aligned headline + arch-shaped portrait
   ===================================================================== */
.hero { padding-top: 56px; }
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { min-width: 0; }
.hero h1, .hero .role {
  margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em;
}
.hero h1 { color: var(--text-strong); }
.hero .role { color: var(--accent); }
.hero-photo {
  width: clamp(96px, 13vw, 168px); aspect-ratio: 5 / 6; flex: none;
  border-radius: 999px; object-fit: cover; object-position: 50% 18%;
  background: var(--surface);
}
.hero .tagline { margin-top: 32px; font-size: clamp(11px, 1.5vw, 18px); font-weight: 400; color: var(--muted); }
.hero .lead { margin-top: 72px; }
.section-title { font-size: 36px; letter-spacing: -.01em; }
.highlights-title { margin-top: 96px; }
@media (max-width: 700px) {
  .hero { padding-top: 24px; }
  .hero-grid { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .hero-photo { width: 96px; }
  .hero .tagline { font-size: 16px; margin-top: 24px; }
  .hero .lead { margin-top: 48px; }
  .section-title { font-size: 28px; }
}


/* Hero v4: round portrait beside the tagline; centred client strip */
.hero-grid { justify-content: flex-start; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.hero-meta .tagline { margin-top: 0; }
.hero-photo { width: 60px; aspect-ratio: 1; border-radius: 50%; object-position: 50% 22%; }
.tag-item:not(:last-child)::after { margin: 0 .4em; }
.hero .lead { text-align: center; }
.clients { margin-left: auto; margin-right: auto; justify-content: center; }
@media (max-width: 700px) {
  .hero-meta { align-items: flex-start; gap: 12px; }
  .hero-photo { width: 48px; }
  .hero .lead { text-align: left; }
  .clients { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .hero .tagline { white-space: normal; font-size: 15px; }
}

/* Hero v5: headline back to the larger scale; logo-strip title matches the tagline */
.hero h1 { font-size: 96px; line-height: 1.2; letter-spacing: 0; }
.hero .role { font-size: 80px; line-height: 1.2; letter-spacing: 0; margin-top: 16px; }
.hero .lead { font-size: 18px; font-weight: 400; color: var(--muted); }
@media (max-width: 960px) {
  .hero h1 { font-size: 64px; }
  .hero .role { font-size: 52px; }
}
@media (max-width: 900px) {
  .hero .lead { font-size: 15px; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 44px; }
  .hero .role { font-size: 36px; }
  .hero .lead { font-size: 15px; }
}


/* =====================================================================
   Logo wall: label on the left axis + a hairline grid of equal cells
   ===================================================================== */
.logo-wall { margin-top: 64px; }
.hero .logo-wall .lead { margin: 0 0 20px; text-align: left; }
.logo-wall .clients {
  display: grid; grid-template-columns: repeat(9, 1fr);
  width: auto; max-width: none; margin: 0; padding: 0; gap: 0;
  list-style: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logo-wall .clients li {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding: 0 12px;
  border-left: 1px solid var(--line);
  transition: background-color .25s ease;
}
.logo-wall .clients li:first-child { border-left: 0; }
.logo-wall .clients img {
  width: auto; height: auto; max-width: 92px; max-height: 48px; object-fit: contain;
  opacity: .78; transition: opacity .25s ease;
}
/* hover: the logo you point at lights up, the others step back */
.logo-wall .clients:hover img { opacity: .32; }
.logo-wall .clients li:hover { background: rgba(255, 255, 255, .045); }
.logo-wall .clients li:hover img { opacity: 1; }

/* entrance: logos appear one after another when the wall scrolls into view */
.js .logo-wall .clients li { opacity: 0; transform: translateY(8px); }
.js .logo-wall.in .clients li {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s ease, background-color .25s ease;
  transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s;
}
@media (prefers-reduced-motion: reduce) {
  .js .logo-wall .clients li { opacity: 1; transform: none; }
}

.highlights-title { margin-top: 96px; }
@media (max-width: 700px) {
  .logo-wall { margin-top: 44px; }
  .logo-wall .clients { grid-template-columns: repeat(3, 1fr); }
  .logo-wall .clients li { height: 84px; }
  .logo-wall .clients li:nth-child(3n + 1) { border-left: 0; }
  .logo-wall .clients li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .logo-wall .clients img { max-width: 80px; max-height: 40px; }
}
.logo-wall { margin-left: calc(8 * var(--u)); margin-right: calc(8 * var(--u)); }
.logo-wall .clients img { max-width: 84px; max-height: 56px; }
@media (max-width: 700px) {
  .logo-wall { margin-left: 0; margin-right: 0; }
  .logo-wall .clients img { max-width: 76px; max-height: 46px; }
}
.logo-wall .clients li { min-width: 0; }
.logo-wall .clients img { max-width: min(84px, 100%); }
@media (max-width: 860px) {
  .logo-wall .clients { grid-template-columns: repeat(3, 1fr); }
  .logo-wall .clients li { height: 84px; border-left: 1px solid var(--line); }
  .logo-wall .clients li:nth-child(3n + 1) { border-left: 0; }
  .logo-wall .clients li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

/* First screen = hero only: Highlights starts below the fold */
.hero { padding-top: 0; }
.hero-screen {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 32px max(8vh, 80px);
  position: relative;
}

/* Scroll cue at the foot of the hero; fades out once the visitor scrolls */
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; opacity: .5; transition: opacity .3s ease;
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 2.4s ease-in-out infinite; }
.scroll-cue:hover { opacity: .95; }
.is-scrolled .scroll-cue { opacity: 0; pointer-events: none; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* Logo wall hover: slower, eased, and gentler contrast */
.logo-wall .clients img { transition: opacity .6s cubic-bezier(.22, .61, .36, 1); }
.logo-wall .clients:hover img { opacity: .5; }
.logo-wall .clients li { transition: background-color .6s cubic-bezier(.22, .61, .36, 1); }
.logo-wall .clients li:hover { background: rgba(255, 255, 255, .035); }
.js .logo-wall.in .clients li {
  transition: opacity .55s ease, transform .55s ease, background-color .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s;
}

/* Highlights: tighter vertical rhythm inside each project card */
.project h3 { margin-top: 16px; }
.project p { margin-top: 14px; }
.project .btn { margin-top: 28px; }
.project { margin-bottom: 104px; }
.projects { padding-bottom: 40px; }

/* Testimonials: separated from Highlights by a hairline; same 104px rhythm as the cards above */
.projects { padding-bottom: 0; }
.testimonials { padding-top: 61px; }


/* Contact page */
.contact-page h1 { margin-top: 0; }
.contact-intro { margin-top: 20px; max-width: 56ch; font-size: 20px; font-weight: 300; line-height: 1.6; color: var(--muted); }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; max-width: 920px; }
.cc-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px; border: 1px solid transparent; border-radius: 16px; background: var(--surface);
  transition: border-color .3s ease, transform .3s ease;
}
.cc-card:hover { border-color: rgba(145, 255, 94, .35); transform: translateY(-3px); }
.cc-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--accent);
}
.cc-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-icon-fill svg { fill: currentColor; stroke: none; }
.cc-card h2 { margin: 0; padding: 0; border: 0; font-size: 20px; font-weight: 700; color: var(--text-strong); }
.cc-value { font-size: 15px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.cc-actions .btn { min-width: 0; }
.btn[data-copy].is-copied { --btn-border: var(--accent); --btn-color: var(--accent); }
@media (max-width: 900px) {
  .cc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .contact-intro { font-size: 17px; }
}
.contact-page .contact-intro { max-width: 920px; box-sizing: border-box; padding-right: 22%; }
@media (max-width: 700px) { .contact-page .contact-intro { padding-right: 0; } }


/* =====================================================================
   Footer: identity, site map, projects and ways to connect
   ===================================================================== */
.site-footer, .site-footer.tight {
  margin-top: 56px; padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  text-align: left; font: 400 15px/1.6 var(--font);
}
.footer-inner, .footer-bottom { width: min(100% - 124px, var(--wrap)); margin-inline: auto; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-name { font-size: 20px; font-weight: 700; color: var(--text-strong); text-decoration: none; }
.footer-brand p { margin-top: 10px; max-width: 34ch; color: var(--muted); }
.footer-mail { display: inline-block; margin-top: 14px; color: var(--accent); text-decoration: none; font-weight: 500; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-title { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.ext { display: inline-flex; align-items: center; gap: 6px; }
.footer-col a.ext svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px; color: var(--muted);
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.to-top:hover { color: #fff; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.to-top:hover svg { transform: translateY(-2px); }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .footer-inner, .footer-bottom { width: min(100% - 32px, var(--wrap)); }
  .site-footer { padding-top: 40px; }
}
footer.site-footer { text-align: left; padding: 56px 0 28px; font: 400 15px/1.6 var(--font); }
@media (max-width: 700px) { footer.site-footer { padding-top: 40px; } }


/* XippTech > Avus: brief overview and the clients I worked with */
.avus-extra h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.avus-extra .points { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.avus-extra .points li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.avus-extra .points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--accent); }
.avus-extra .avus-clients-title { margin-top: 28px; }
.avus-logos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avus-logos li { flex: 1; display: flex; align-items: center; justify-content: center; height: 84px; border-left: 1px solid var(--line); }
.avus-logos li:first-child { border-left: 0; }
.avus-logos img { width: auto; height: auto; max-width: 100px; max-height: 44px; object-fit: contain; }
.avus-extra .avus-links { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.avus-extra .avus-links a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 700px) {
  .avus-extra .points li { font-size: 15px; }
}

/* Home logo wall: a linked logo fills its whole cell */
.logo-wall .clients li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* XippTech > Avus: heading, text and overview flow in one column so they never overlap */
.avus-copy h2 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.2; }
.avus-copy > p { margin: 28px 0 0; }
.avus-copy .avus-extra { margin-top: 28px; }
@media (max-width: 700px) { .avus-copy h2 { font-size: 32px; } }
