/* Hugo Faustino portfolio, redesigned in the visual style of Miha Podpecan.
   Warm monochrome: #FDFCFC page, #F5F4F2 cards, black ink, taupe-grey
   secondary text, one green availability dot. No gradients, no shadows. */

@font-face { font-family: 'Inter'; src: url('fonts/Inter-400.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-500.ttf'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-600.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-700.ttf'); font-weight: 700; font-display: swap; }

:root {
  --bg: #FDFCFC;
  --card: #F5F4F2;
  --ink: #000000;
  --muted: #8A847C;
  --body: #6E6862;
  --line: #E5E3DE;
  --line-soft: #ECEAE6;
  --pill-border: #E6E3DE;
  --green: #22C55E;
  --glow: #AEE8C4;
  --quote: #D8D3CC;
  --blue: #2E7CF6;
  --blue-deep: #2563EB;
  --blue-tint: #E8F1FC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  border-left: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}

section { padding: 110px 0; border-top: 1px dashed var(--line); }
section:first-of-type { border-top: 0; }

.eyebrow {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  margin-right: 10px;
}

h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 20px; }
h2 .gry, h1 .gry { color: var(--muted); }
h3 { font-size: 22px; line-height: 1.2; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}
.logo { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
}
.nav-links a.active { background: var(--blue-tint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.btn-black { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--pill-border); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 110px; border-top: 0; }
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}
.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--glow);
  flex: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 420px;
  gap: 48px;
  align-items: end;
}
.hero-intro { padding-bottom: 4px; }
.hero-intro p { font-size: 18px; color: var(--body); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.service-card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
}
.service-card svg { display: block; margin-bottom: 22px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--body); }

/* ---------- stack ---------- */
.stack-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 44px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.stack-cell {
  padding: 28px 8px;
  text-align: center;
  border-left: 1px dashed var(--line);
}
.stack-cell:first-child { border-left: 0; }
.stack-cell svg { display: block; margin: 0 auto 12px; }
.stack-cell span { font-size: 15px; color: var(--ink); }

/* ---------- how I work / stats ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.work-grid p { margin-bottom: 20px; }
.text-link { color: var(--blue); font-weight: 500; }
.text-link:hover { color: var(--blue-deep); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
}
.stat .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.stat .num { font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- selected work ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 44px;
  min-height: 470px;
}
.featured-img { min-height: 470px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-panel {
  background: var(--card);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  background: #fff;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  color: var(--muted);
}
.featured-panel h3 { font-size: 32px; margin-bottom: 14px; }
.featured-panel p { font-size: 16px; margin-bottom: 28px; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.project-card { border-radius: 24px; overflow: hidden; }
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top;
}
.project-panel { background: var(--card); padding: 28px; }
.project-panel h3 { font-size: 22px; margin-bottom: 10px; }
.project-panel p { font-size: 16px; margin-bottom: 18px; }
.project-link { font-size: 14px; color: var(--blue); font-weight: 500; }
a.project-link:hover { color: var(--blue-deep); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: start;
}
.portrait img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  filter: grayscale(1);
}
.portrait .cap { margin-top: 16px; }
.portrait .cap .name { font-size: 18px; font-weight: 600; color: var(--ink); }
.portrait .cap .role { font-size: 15px; color: var(--muted); }
.about-copy p { margin-bottom: 18px; }
.history { margin: 36px 0 8px; }
.history-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}
.history-row:last-child { border-bottom: 1px dashed var(--line); }
.history-row .co { font-weight: 600; color: var(--ink); font-size: 16px; flex: none; min-width: 210px; }
.history-row .role { flex: 1; font-size: 15px; }
.date-pill {
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.skills-head {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 36px 0 14px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--card);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- testimonial ---------- */
.quote-card {
  max-width: 760px;
  margin: 44px auto 0;
  background: var(--card);
  border-radius: 20px;
  padding: 44px 48px;
}
.quote-mark {
  font-size: 64px;
  line-height: 0.6;
  color: var(--quote);
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}
.quote-card blockquote { font-size: 17px; color: var(--ink); line-height: 1.6; }
.quote-card .who { margin-top: 24px; }
.quote-card .who .name { font-weight: 600; color: var(--ink); font-size: 15px; }
.quote-card .who .role { color: var(--muted); font-size: 15px; }

/* ---------- contact / footer ---------- */
.contact-card {
  background: var(--card);
  border-radius: 24px;
  padding: 64px 56px;
}
.contact-card h2 { max-width: 640px; }
.contact-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.contact-actions a.mail, .contact-actions a.li {
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
}
.contact-actions a.mail:hover, .contact-actions a.li:hover { color: var(--blue-deep); }
.footer { padding: 64px 0 40px; border-top: 1px dashed var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer h4 { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.footer .tagline { font-size: 15px; color: var(--muted); max-width: 300px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 15px; color: var(--blue); }
.footer ul a:hover { color: var(--blue-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom a { color: var(--blue); }
.footer-bottom a:hover { color: var(--blue-deep); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .page, .nav-inner { padding: 0 24px; }
  section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-intro { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stack-strip { grid-template-columns: repeat(3, 1fr); }
  .stack-cell:nth-child(4) { border-left: 0; }
  .stack-cell { border-top: 1px dashed var(--line); }
  .stack-cell:nth-child(-n+3) { border-top: 0; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .featured { grid-template-columns: 1fr; min-height: 0; }
  .featured-img { min-height: 0; }
  .featured-img img { height: 280px; }
  .featured-panel { padding: 36px 28px; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait img { width: 320px; height: 320px; }
  .contact-card { padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .stack-strip { grid-template-columns: 1fr 1fr; }
  .stack-cell { border-left: 0; }
  .stack-cell:nth-child(even) { border-left: 1px dashed var(--line); }
  .history-row { flex-wrap: wrap; gap: 4px 12px; }
  .history-row .co { min-width: 0; }
  .quote-card { padding: 32px 24px; }
}

/* ---------- case study ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--blue-deep); }
.cs-hero { padding: 64px 0 110px; border-top: 0; }
.cs-hero h1 { max-width: 920px; margin-bottom: 36px; }
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 44px;
}
.cs-meta .lbl { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cs-meta .val { font-size: 16px; font-weight: 500; color: var(--ink); }
.cs-hero .intro { font-size: 19px; max-width: 780px; margin-top: 40px; }
.cs-hero .stats-row { margin-top: 64px; }
.cs-figure { margin: 0 0 56px; }
.cs-figure:last-child { margin-bottom: 0; }
.cs-figure img { border-radius: 24px; width: 100%; }
.cs-figure figcaption { font-size: 15px; color: var(--muted); margin-top: 14px; }
.sub-block { margin-bottom: 32px; }
.sub-block:last-child { margin-bottom: 0; }
.sub-block h3 { font-size: 20px; margin-bottom: 8px; }
.sub-block p { font-size: 17px; }
.constraint-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px 36px;
  margin-top: 44px;
}
.constraint-card ul { list-style: none; }
.constraint-card li {
  font-size: 17px;
  color: var(--ink);
  padding: 16px 0 16px 28px;
  position: relative;
  border-top: 1px dashed var(--line);
}
.constraint-card li:first-child { border-top: 0; }
.constraint-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.role-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 44px; }
.role-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px dashed var(--line); }
.role-item .n { font-size: 15px; font-weight: 600; color: var(--muted); flex: none; padding-top: 2px; }
.role-item p { font-size: 16px; color: var(--ink); }
.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--card);
  border-radius: 24px;
  padding: 44px 48px;
}
.next-card h3 { font-size: 28px; margin: 10px 0 8px; }
.next-card p { font-size: 16px; }
.next-arrow { font-size: 28px; color: var(--blue); flex: none; }

@media (max-width: 960px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .role-list { grid-template-columns: 1fr; }
  .cs-hero { padding: 48px 0 72px; }
}
@media (max-width: 620px) {
  .cs-meta { grid-template-columns: 1fr; }
  .next-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .next-arrow { display: none; }
  .constraint-card { padding: 12px 24px; }
}
