/* SIBINTEK-SOFT visual direction, based on the supplied reference screenshot. */
:root {
  --ink: #171717;
  --secondary: #595959;
  --brand: #f9d747;
  --brand-hover: #f2c821;
  --brand-soft: #fff9e0;
  --page: #fff;
  --surface: #f5f5f5;
  --line: #dedede;
  --content: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--brand); }
.icon, .pill-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); background: #f2f2f2; }
.topbar-inner { display: flex; align-items: stretch; justify-content: space-between; max-width: var(--content); min-height: 70px; margin: 0 auto; padding: 0 28px; }
.topbar-title { display: flex; align-items: center; gap: 16px; padding: 0 26px; color: var(--ink); background: var(--brand); font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.topbar-title::before { content: ""; display: block; width: 5px; height: 26px; background: var(--ink); transform: skewX(-17deg); }
.print-button { display: inline-flex; align-items: center; align-self: center; gap: 10px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; transition: background-color .16s ease; }
.print-button:hover { background: var(--brand); }
.print-button .icon { width: 18px; height: 18px; }

/* Hero */
main { max-width: var(--content); margin: 0 auto; padding: 28px 28px 72px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 510px; border-bottom: 4px solid var(--brand); }
.hero-copy { display: flex; min-width: 0; background: var(--page); }
.hero-copy-inner { display: grid; align-content: center; gap: 28px; width: 100%; padding: 36px 44px 40px 8px; }
.hero-intro { display: grid; gap: 20px; }
.hero-intro::before { content: ""; width: 54px; height: 5px; background: var(--brand); }
.hero h1 { margin: 0; font-size: clamp(38px, 4.2vw, 55px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; overflow-wrap: break-word; }
.hero-role { max-width: 490px; margin: 0; font-size: clamp(19px, 1.9vw, 23px); font-weight: 400; line-height: 1.35; }
.hero-bottom { display: grid; gap: 22px; }
.hero-note { max-width: 470px; margin: 0; padding-left: 16px; border-left: 3px solid var(--brand); color: var(--secondary); font-size: 15px; line-height: 1.6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: var(--page); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.pill:first-child { border-color: var(--brand); background: var(--brand); }
.pill:hover { border-color: var(--brand-hover); background: var(--brand-hover); }
.pill-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.hero-photo-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #303030; }
.hero-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

/* Existing highlights */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border: 1px solid var(--line); background: var(--surface); }
.feature-card { min-width: 0; padding: 26px 28px 28px; }
.feature-card + .feature-card { border-left: 1px solid var(--line); }
.feature-number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 30px; margin-bottom: 22px; color: var(--ink); background: var(--brand); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.feature-card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.feature-card p { margin: 12px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.6; }

/* Resume and navigation */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; align-items: start; gap: 48px; margin-top: 48px; }
.resume { min-width: 0; }
.resume > section { margin: 0 0 36px; padding: 0 0 36px; border-bottom: 1px solid var(--line); }
.resume > section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.resume h2 { margin: 0 0 24px; padding-left: 18px; border-left: 4px solid var(--brand); font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.18; }
.resume h3 { margin: 28px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.resume p { margin: 12px 0; }
.resume ul { margin: 16px 0; padding-left: 22px; }
.resume li { margin: 9px 0; padding-left: 3px; }
.resume li::marker { color: #827019; }
.resume strong { font-weight: 700; }
.resume code { padding: 2px 5px; border-radius: 2px; color: #333; background: var(--surface); font-family: Consolas, monospace; font-size: .92em; }
.resume blockquote { margin: 20px 0 4px; padding: 18px 22px; border-left: 4px solid var(--brand); border-radius: 0 4px 4px 0; color: var(--ink); background: var(--surface); }
.resume table { width: 100%; margin-top: 20px; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.5; }
.resume th, .resume td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.resume th { color: var(--ink); background: var(--brand-soft); font-weight: 700; }
.resume tr:last-child td { border-bottom: 0; }
.resume a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.resume a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--brand-hover); }
.side { position: sticky; top: 104px; padding: 25px 22px; border-top: 4px solid var(--brand); background: var(--surface); }
.side-title { margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toc { display: grid; gap: 4px; }
.toc a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 14px; line-height: 1.35; text-decoration: none; }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-hover); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.error { padding: 22px; border-left: 4px solid #a73535; color: #842727; background: #fff4f4; }

.floating-actions { position: fixed; right: max(24px, calc((100vw - var(--content)) / 2 + 28px)); bottom: 24px; z-index: 40; display: grid; gap: 8px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.floating-actions.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.float-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--page); cursor: pointer; text-decoration: none; transition: background-color .16s ease; }
.chat-button { border-color: var(--brand); background: var(--brand); }
.float-button:hover { border-color: var(--brand-hover); background: var(--brand-hover); }
.float-button .icon { width: 21px; height: 21px; }
.float-button span { display: none; }

@media screen and (max-width: 1050px) {
  .hero-copy-inner { padding-right: 28px; }
  .hero h1 { font-size: 43px; }
  .layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
  .feature-card { padding: 24px 20px; }
  .feature-card h3 { font-size: 18px; }
}
@media screen and (max-width: 800px) {
  .topbar-inner { min-height: 64px; padding: 0 20px; }
  main { padding: 20px 20px 64px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy-inner { padding: 24px 0 32px; gap: 24px; }
  .hero h1 { max-width: 600px; font-size: clamp(38px, 6.7vw, 50px); }
  .hero-role { max-width: 600px; font-size: 21px; }
  .hero-note { max-width: 560px; }
  .hero-photo-wrap { aspect-ratio: 4 / 3; }
  .hero-photo { object-position: center; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .feature-card { padding: 24px; }
  .feature-card + .feature-card { border-left: 0; border-top: 1px solid var(--line); }
  .feature-number { margin-bottom: 14px; }
  .feature-card h3 { font-size: 21px; }
  .layout { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .side { display: none; }
  .floating-actions { right: 16px; bottom: 16px; }
}
@media screen and (max-width: 480px) {
  html { scroll-padding-top: 82px; }
  .topbar-inner { min-height: 60px; padding: 0 16px; }
  .topbar-title { gap: 10px; padding: 0 14px; font-size: 15px; }
  .topbar-title::before { width: 4px; height: 22px; }
  .print-button { gap: 7px; padding: 10px; font-size: 11px; }
  .print-button .icon { width: 16px; height: 16px; }
  main { padding: 16px 16px 72px; }
  .hero-copy-inner { gap: 22px; padding-top: 18px; }
  .hero-intro { gap: 18px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero-role { font-size: 19px; }
  .hero-note { padding-left: 13px; font-size: 14px; }
  .hero-bottom { gap: 20px; }
  .pill { gap: 6px; padding: 10px; font-size: 12px; }
  .pill-icon { width: 15px; height: 15px; }
  .feature-card { padding: 22px; }
  .feature-card h3 { font-size: 19px; }
  .resume h2 { padding-left: 14px; font-size: 27px; }
  .resume h3 { font-size: 20px; }
  .resume p, .resume li { font-size: 15px; }
  .resume blockquote { padding: 16px; font-size: 15px; }
  .resume table { font-size: 12px; }
  .resume th, .resume td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Compact A4 output. */
@media print {
  @page { size: A4; margin: 10mm; }
  html, body { margin: 0; padding: 0; background: #fff; }
  body { color: #171717; font-size: 8.3pt; line-height: 1.3; }
  .topbar, .side, .floating-actions, .feature-grid { display: none !important; }
  main { max-width: none; margin: 0; padding: 0; }
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: 0; height: 54mm; margin-bottom: 5mm; border-bottom: .8mm solid var(--brand); break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .hero-copy-inner { padding: 3mm 5mm 4mm 0; gap: 3mm; }
  .hero-intro { gap: 2mm; }
  .hero-intro::before { width: 10mm; height: 1mm; }
  .hero h1 { font-size: 24pt; line-height: 1.04; }
  .hero-role { font-size: 10pt; line-height: 1.3; }
  .hero-bottom { gap: 2.5mm; }
  .hero-note { padding-left: 2.5mm; font-size: 7.5pt; line-height: 1.35; }
  .hero-meta { gap: 1.5mm; }
  .pill { gap: 1.3mm; min-height: 0; padding: 1.5mm 2mm; font-size: 7pt; }
  .pill-icon { width: 3mm; height: 3mm; }
  .hero-photo-wrap { height: 100%; }
  .hero-photo { object-position: center 24%; }
  .layout, .resume { display: block; margin: 0; }
  .resume > section { margin-bottom: 3mm; padding-bottom: 3mm; break-inside: auto; }
  .resume h2 { margin-bottom: 2mm; padding-left: 3mm; border-left-width: 1mm; font-size: 14pt; line-height: 1.15; break-after: avoid; }
  .resume h3 { margin: 2.5mm 0 1mm; font-size: 10pt; break-after: avoid; }
  .resume h3 + p { break-after: avoid; }
  .resume p, .resume li { margin: 1mm 0; font-size: 8.3pt; line-height: 1.3; orphans: 2; widows: 2; }
  .resume ul { margin: 1.5mm 0; padding-left: 4mm; }
  .resume li { padding-left: .5mm; }
  .resume blockquote { margin: 2mm 0 0; padding: 2mm 3mm; border-left-width: 1mm; font-size: 8pt; break-inside: avoid; }
  .resume table { margin-top: 2mm; font-size: 7.5pt; line-height: 1.3; }
  .resume th, .resume td { padding: 1.6mm 2mm; }
  .resume tr { break-inside: avoid; }
}
