/*
 * Attenka — situs induk.
 *
 * Token desainnya sama dengan AttenkaFlowWeb (resources/css/app.css di sana):
 * hitam-putih, hijau Attenka hanya untuk hal yang punya arti (huruf "ka",
 * tombol WhatsApp/kunjungi produk, tanda centang), radius squircle 10/14/18,
 * huruf Plus Jakarta Sans. Tidak ada gradien di mana pun.
 */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/plus-jakarta-sans-300.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-800.woff2') format('woff2'); }

:root {
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ink: #000000;
    --paper: #ffffff;
    --fog: #f4f4f4;
    --line: #e2e2e2;
    --smoke: #5f5f5f;
    --ash: #9c9c9c;
    --coal: #121212;
    --seam: #2b2b2b;

    --brand-50: #e9f5ef;
    --brand-300: #5bbf8a;
    --brand-500: #1f8a5b;
    --brand-700: #15623f;
    --brand-900: #0e3a26;

    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 4rem;

    /* Token yang ditukar oleh .on-ink */
    --rule: var(--line);
    --muted: var(--smoke);
    --panel: var(--fog);
    --accent: var(--brand-700);
    --fg: var(--ink);
    --bg: var(--paper);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html:has(dialog[open]) { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--brand-500); color: var(--paper); }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; left: 1rem; top: -4rem; z-index: 60;
    transition: top 160ms ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Tata letak dasar ---------- */

.shell {
    width: 100%;
    max-width: 78rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 48rem) {
    .shell { padding-inline: 2.5rem; }
}

.band { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }

.band-fog {
    background: var(--fog);
    --rule: #d9d9d9;
}

.on-ink {
    background: var(--ink);
    color: var(--paper);
    --rule: var(--seam);
    --muted: var(--ash);
    --panel: var(--coal);
    --accent: var(--brand-300);
    --fg: var(--paper);
    --bg: var(--ink);
}

.muted { color: var(--muted); }
.numerals { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Huruf ---------- */

.text-display {
    font-size: clamp(2.6rem, 1.2rem + 5vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.text-title {
    font-size: clamp(2rem, 1.2rem + 2.9vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.text-heading {
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.lead {
    font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem);
    line-height: 1.55;
}

/* Label kecil berhuruf kapital renggang: penanda bagian, bukan judul. */
.label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.label-accent { color: var(--accent); }

.text-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    transition: text-decoration-color 160ms ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.85rem; height: 0.85rem; }

/* ---------- Tombol ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2a2a; }

.btn-line { border-color: var(--fg); color: var(--fg); }
.btn-line:hover { background: var(--fg); color: var(--bg); }

/* Hijau: hanya untuk aksi yang membawa keluar ke produk atau ke WhatsApp. */
.btn-brand { background: var(--brand-500); color: var(--paper); }
.btn-brand:hover { background: var(--brand-700); }

.btn-sm {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
}

.btn-icon { width: 2.5rem; padding: 0; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* ---------- Merek ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex: none;
}

.brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
}

/* "Atten" mengikuti warna teks, "ka" hijau (mint di atas hitam). */
.wordmark {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}
.wordmark span,
.flagship-name span,
.next-name span { color: var(--brand-500); }
.on-ink .wordmark span,
.on-ink .flagship-name span,
.on-ink .next-name span { color: var(--brand-300); }

/* ---------- Navigasi ---------- */

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
}

.site-nav[data-stuck='true'] { border-bottom-color: var(--line); }

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--nav-h);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 64rem) {
    .nav-links { display: flex; }
}

.nav-link {
    position: relative;
    padding-block: 0.4rem;
    color: var(--smoke);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current='true'] { color: var(--ink); }

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -0.1rem;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease-out);
}

.nav-link[aria-current='true']::after { transform: scaleX(1); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang {
    display: flex;
    align-items: center;
    margin-right: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-sep { color: var(--line); }

.lang-link {
    padding: 0.4rem 0.35rem;
    border-radius: 6px;
    color: var(--ash);
    letter-spacing: 0.02em;
    transition: color 160ms ease;
}

.lang-link:hover,
.lang-link[aria-current='true'] { color: var(--ink); }

.nav-cta { display: none; }

@media (min-width: 40rem) {
    .nav-cta { display: inline-flex; }
}

.nav-menu { position: relative; }

@media (min-width: 64rem) {
    .nav-menu { display: none; }
}

.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }

.nav-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: 15rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
}

.nav-menu__panel a:not(.btn) {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.nav-menu__panel a:not(.btn):hover { background: var(--fog); }
.nav-menu__panel .btn { margin-top: 0.4rem; }

@media (min-width: 40rem) {
    .nav-menu__panel .btn { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-top: var(--nav-h); }

.hero-grid {
    display: grid;
    align-items: center;
    gap: 3.5rem 4rem;
    padding-block: 3rem 3.5rem;
}

@media (min-width: 64rem) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        padding-block: 4.5rem 4rem;
    }
}

.hero-copy .text-display { margin-top: 1.25rem; }
.hero-copy .lead { margin-top: 1.75rem; max-width: 33rem; }
.hero-copy .actions { margin-top: 2.25rem; }

.hf-stage {
    position: relative;
    aspect-ratio: 6 / 5;
}

/* Bingkai browser: dipakai di hero dan kartu portofolio. */
.frame-browser {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.frame-browser__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 1.9rem;
    padding-inline: 0.7rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.frame-browser__dots { display: flex; gap: 0.3rem; }
.frame-browser__dots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--line); }

.frame-browser__url {
    flex: 1;
    max-width: 14rem;
    margin-inline: auto;
    padding: 0.1rem 0.6rem;
    border-radius: 6px;
    background: var(--fog);
    color: var(--smoke);
    font-size: 0.6875rem;
    line-height: 1.5;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateX(-1rem);
}

.frame-browser img { width: 100%; }

.frame-phone {
    position: relative;
    padding: 5px;
    background: var(--ink);
    border-radius: 20px;
}

.frame-phone img {
    width: 100%;
    border-radius: 15px;
    background: var(--paper);
}

/* Bingkai layar mesin, sama dengan .device di AttenkaFlowWeb. */
.device {
    position: relative;
    padding: clamp(0.4rem, 3%, 0.8rem);
    background: var(--ink);
    border-radius: var(--radius-xl);
}

.device img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}

.hf-browser {
    position: absolute;
    top: 0;
    left: 0;
    width: 86%;
}

.hf-phone {
    position: absolute;
    left: 5%;
    bottom: 0;
    width: 23%;
    box-shadow: 0 0 0 6px var(--paper);
}

.hf-device {
    position: absolute;
    right: 0;
    bottom: 7%;
    width: 40%;
    box-shadow: 0 0 0 6px var(--paper);
}

.hf-marker {
    position: absolute;
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    font-size: 0.6875rem;
    font-weight: 700;
}

.hf-browser .hf-marker { top: 2.5rem; right: 0.6rem; }
.hf-phone .hf-marker { top: -0.6rem; right: -0.6rem; }
.hf-device .hf-marker { top: -0.6rem; right: -0.6rem; }

.hf-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.hf-legend > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hf-legend .muted { font-weight: 500; }

.hf-legend b {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 5px;
    border: 1px solid var(--line);
    font-size: 0.6875rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
}

@media (min-width: 64rem) {
    .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.facts li {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--rule);
}

.fact-value {
    font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.045em;
}

.fact-label {
    max-width: 15rem;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.45;
}

/* ---------- Kepala bagian ---------- */

.section-head { max-width: 46rem; }
.section-head .text-title { margin-top: 1rem; }
.section-head .lead { margin-top: 1.25rem; }

/* ---------- Layanan ---------- */

.services-grid {
    display: grid;
    gap: 0 4rem;
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

@media (min-width: 52rem) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding-block: 2.25rem 2.5rem;
    border-top: 1px solid var(--rule);
}

.service-icon { width: 1.75rem; height: 1.75rem; margin-bottom: 0.4rem; }
.service .muted { max-width: 32rem; }

.service-tech {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.service-examples { font-size: 0.9375rem; }

.stack-row {
    display: grid;
    gap: 1rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

@media (min-width: 52rem) {
    .stack-row { grid-template-columns: 16rem 1fr; align-items: baseline; }
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    font-weight: 600;
}

.stack-list li:not(:last-child)::after {
    content: '·';
    margin-inline: 0.7rem;
    color: var(--ash);
    font-weight: 400;
}

/* ---------- Produk ---------- */

.flagship {
    display: grid;
    align-items: center;
    gap: 3rem 4rem;
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
    border-top: 1px solid var(--rule);
}

@media (min-width: 64rem) {
    .flagship { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.flagship-name {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.flagship-tagline {
    margin-top: 0.85rem;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.flagship-copy > .muted { margin-top: 1.25rem; max-width: 32rem; }

.checks {
    display: grid;
    margin-top: 1.75rem;
    max-width: 32rem;
}

.checks li {
    display: flex;
    gap: 0.75rem;
    padding-block: 0.8rem;
    border-top: 1px solid var(--rule);
}

.checks .icon { margin-top: 0.3rem; color: var(--accent); }

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    max-width: 32rem;
}

.stats > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}

.stats dt { color: var(--muted); font-size: 0.875rem; }

.stats dd {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.04em;
}

.stats dd span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted);
}

.stats-note { margin-top: 0.85rem; font-size: 0.8125rem; }

.flagship-copy .actions { margin-top: 2.25rem; gap: 1.25rem; }
.flagship-domain { font-weight: 600; font-size: 0.9375rem; color: var(--muted); }

/* Foto mesin berlatar transparan dan warnanya gelap, jadi duduk di panel terang. */
.flagship-media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 12%;
    background: var(--fog);
    border-radius: var(--radius-xl);
}

.flagship-media img { max-height: 100%; width: auto; object-fit: contain; }

.next-product {
    display: grid;
    gap: 1.25rem 3rem;
    margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
    padding-top: 2.25rem;
    border-top: 1px solid var(--rule);
}

@media (min-width: 64rem) {
    .next-product {
        grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto;
        align-items: start;
    }
}

.status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--ash);
}

.next-name {
    margin-top: 0.75rem;
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.next-tagline { margin-top: 0.4rem; font-weight: 600; }
.next-product > .muted { max-width: 34rem; padding-top: 0.25rem; }

/* ---------- Portofolio ---------- */

.work-head {
    display: grid;
    gap: 2rem;
    align-items: end;
}

@media (min-width: 64rem) {
    .work-head { grid-template-columns: minmax(0, 1fr) auto; }
}

.work-filter { display: grid; gap: 0.6rem; justify-items: start; }

@media (min-width: 64rem) {
    .work-filter { justify-items: end; }
}

.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--radius-lg);
    background: var(--fog);
}

.seg button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--smoke);
    transition: background-color 160ms ease, color 160ms ease;
}

.seg button:hover { color: var(--ink); }

.seg button[aria-pressed='true'] {
    background: var(--ink);
    color: var(--paper);
}

@media (max-width: 40rem) {
    .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .seg button { justify-content: center; }
}

.seg-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ash);
    font-variant-numeric: tabular-nums;
}

.work-status { font-size: 0.8125rem; }

.work-grid {
    display: grid;
    gap: 3rem 2rem;
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

@media (min-width: 40rem) {
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card { position: relative; }
.card[hidden] { display: none; }

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--fog);
}

.card-media > * { transition: transform 500ms var(--ease-out); }
.card:hover .card-media > :not(.card-count) { transform: translateY(-4px); }

.card-count {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--paper);
    color: var(--smoke);
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 200ms ease;
}

.card:hover .card-count,
.card:focus-within .card-count { opacity: 1; }

/* Susunan gambar di kartu. */
.cv-browser .frame-browser {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
}

.card:hover .cv-browser .frame-browser { transform: translateY(calc(-50% - 4px)); }

.cv-browser-phone .frame-browser {
    position: absolute;
    left: 7%;
    width: 74%;
    top: 12%;
}

.cv-browser-phone .frame-phone {
    position: absolute;
    right: 7%;
    bottom: 8%;
    width: 22%;
    padding: 3px;
    border-radius: 13px;
    box-shadow: 0 0 0 4px var(--fog);
}

.cv-browser-phone .frame-phone img { border-radius: 10px; }

.cv-phones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4%;
    padding-inline: 9%;
}

.cv-phones .frame-phone {
    width: 28%;
    padding: 3px;
    border-radius: 13px;
}

.cv-phones .frame-phone img { border-radius: 10px; }
.cv-phones .frame-phone:nth-child(2) { margin-top: -6%; }

.cv-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: var(--paper);
}

.cv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover .cv-photo > img { transform: scale(1.025); }

.card-body { padding-top: 1.15rem; }

.card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Seluruh kartu bisa diklik lewat judulnya. */
.card-open::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}

.card-open:focus-visible { outline: none; }
.card-open:focus-visible::after { outline: 2px solid var(--brand-500); outline-offset: 4px; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.card-summary {
    margin-top: 0.45rem;
    font-size: 0.975rem;
    line-height: 1.55;
}

.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin-top: 0.9rem;
    font-size: 0.8125rem;
}

.card-stack { color: var(--muted); font-weight: 600; }

.card-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}

.card-link:hover { text-decoration-color: currentColor; }

.other { margin-top: clamp(4rem, 3rem + 3vw, 6rem); }
.other[hidden] { display: none; }

.other-list { margin-top: 1.5rem; }

.other-list li {
    display: grid;
    gap: 0.35rem 2rem;
    padding-block: 1.35rem;
    border-top: 1px solid var(--rule);
}

.other-list li[hidden] { display: none; }

@media (min-width: 52rem) {
    .other-list li {
        grid-template-columns: 15rem minmax(0, 1fr) 11rem 10rem;
        align-items: baseline;
    }
}

.other-name { font-weight: 700; display: grid; gap: 0.2rem; }

.other-platform {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.other-summary { font-size: 0.975rem; }
.other-stack { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.other-link { font-size: 0.8125rem; }

@media (min-width: 52rem) {
    .other-link { text-align: right; }
}

.work-empty { margin-top: 3rem; }

/* ---------- Cara kerja ---------- */

.steps {
    display: grid;
    gap: 0 2rem;
    margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
    counter-reset: step;
}

@media (min-width: 40rem) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.step {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding-block: 1.5rem 2rem;
    border-top: 1px solid var(--rule);
}

.step-num {
    font-size: clamp(2.6rem, 2.2rem + 1.4vw, 3.4rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.05em;
    margin-bottom: 0.75rem;
}

.step-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.step .muted { font-size: 0.95rem; line-height: 1.55; }

/* ---------- Tentang ---------- */

.about-grid {
    display: grid;
    gap: 3.5rem 4rem;
    align-items: start;
}

@media (min-width: 64rem) {
    .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.about-copy .text-title { margin-top: 1rem; }
.about-copy .lead { margin-top: 1.25rem; max-width: 34rem; }

.founder {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    max-width: 34rem;
    margin-top: 2.25rem;
    padding-block: 1.15rem;
    border-block: 1px solid var(--rule);
}

/* Avatar: satu-satunya tempat radius penuh dipakai. */
.founder-photo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    object-fit: cover;
}

.founder-text { display: grid; gap: 0.1rem; font-size: 0.9375rem; }
.founder-name { font-weight: 700; font-size: 1.0625rem; }

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.founder:hover .founder-link { text-decoration: underline; text-underline-offset: 0.22em; }

.about-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.about-photos img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--fog);
}

.about-gallery figcaption { margin-top: 1rem; font-size: 0.875rem; }

/* ---------- Kontak ---------- */

.contact-grid {
    display: grid;
    gap: 3rem 4rem;
    align-items: start;
}

@media (min-width: 64rem) {
    .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.contact-copy .text-title { margin-top: 1rem; }
.contact-copy .lead { margin-top: 1.25rem; max-width: 30rem; }
.contact-direct-label { display: flex; margin-top: 2.75rem; }

.contact-direct {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-direct .icon { width: 1.6rem; height: 1.6rem; color: var(--brand-300); }
.contact-direct:hover span { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }

.composer {
    display: grid;
    gap: 1.35rem;
    padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
    background: var(--coal);
    border: 1px solid var(--seam);
    border-radius: var(--radius-xl);
}

.composer-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }

.field {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field label,
.field legend {
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.optional { color: var(--ash); font-weight: 500; font-size: 0.8125rem; }

.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    background: var(--ink);
    border: 1px solid var(--seam);
    border-radius: var(--radius-md);
    transition: border-color 160ms ease;
}

.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #6e6e6e; }

.field input:hover,
.field textarea:hover { border-color: #444; }

.field input:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--brand-300);
}

.field [aria-invalid='true'] { border-color: #f2b8b5; }

.field-error { color: #f2b8b5; font-size: 0.875rem; }

.options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.field .option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--seam);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ash);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option:hover { border-color: #444; color: var(--paper); }

.option:has(input:checked) {
    border-color: var(--paper);
    background: #1b1b1b;
    color: var(--paper);
}

.option:has(input:focus-visible) {
    outline: 2px solid var(--brand-300);
    outline-offset: 2px;
}

.composer-submit { justify-self: start; }
.composer-note { font-size: 0.8125rem; margin-top: -0.4rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--seam); }

.footer-grid {
    display: grid;
    gap: 2.5rem 3rem;
    padding-block: 3.5rem;
}

@media (min-width: 40rem) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
}

.footer-brand p { margin-top: 0.85rem; max-width: 22rem; font-size: 0.9375rem; }

.footer-col {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    font-size: 0.9375rem;
}

.footer-col .label { margin-bottom: 0.35rem; }

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ash);
    transition: color 160ms ease;
}

.footer-col a:hover { color: var(--paper); }
.footer-col .nowrap { white-space: nowrap; }
.footer-soon { font-size: 0.8125rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--seam);
    font-size: 0.875rem;
}

.footer-bottom a:hover { color: var(--paper); }

/* ---------- Jendela detail proyek ---------- */

.project-dialog {
    width: min(72rem, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    background: var(--paper);
    color: var(--ink);
    overflow: auto;
    overscroll-behavior: contain;
}

.project-dialog::backdrop { background: rgb(0 0 0 / 0.6); }

.project-dialog[open] { animation: dialog-in 260ms var(--ease-out); }
.project-dialog[open]::backdrop { animation: fade-in 260ms ease; }

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(12px); }
}

@keyframes fade-in {
    from { opacity: 0; }
}

@media (max-width: 40rem) {
    .project-dialog {
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }
}

.pd-top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
    .pd-top { padding-inline: 2rem; }
}

.pd-body {
    display: grid;
    gap: 2rem 2.75rem;
    padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 48rem) {
    .pd-body { padding: 2rem; }
}

@media (min-width: 64rem) {
    .pd-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.pd-stage {
    position: relative;
    display: grid;
    /* Baris/kolom pasti, supaya max-height: 100% pada gambar ikut tinggi panggung. */
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 5%;
    background: var(--fog);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pd-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.pd-stage[data-kind='phone'] img { border-radius: 18px; border: 5px solid var(--ink); }
.pd-stage[data-kind='browser'] img { border: 1px solid var(--line); }
.pd-stage[data-kind='photo'] { padding: 0; }
.pd-stage[data-kind='photo'] img { border-radius: 0; }

.pd-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--line);
    transform: translateY(-50%);
    transition: background-color 160ms ease, color 160ms ease;
}

.pd-arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pd-arrow--prev { left: 0.75rem; }
.pd-arrow--next { right: 0.75rem; }
.pd-arrow[hidden] { display: none; }

.pd-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
}

.pd-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 2px;
}

.pd-thumbs button {
    flex: none;
    width: 4.25rem;
    height: 3.25rem;
    padding: 3px;
    border-radius: var(--radius-md);
    background: var(--fog);
    border: 1px solid var(--line);
    transition: border-color 160ms ease;
}

.pd-thumbs button[aria-current='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.pd-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.pd-counter { flex: none; font-size: 0.875rem; color: var(--smoke); font-weight: 600; }

.pd-info { display: grid; align-content: start; gap: 1.15rem; }

.pd-title {
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.pd-note { font-size: 0.875rem; }
.pd-note:empty { display: none; }

.pd-block {
    display: grid;
    gap: 0.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.pd-block[hidden] { display: none; }
.pd-block p:not(.label) { font-weight: 600; }

.pd-links { display: grid; gap: 0.35rem; }
.pd-links a { font-weight: 600; }

.pd-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
    .pd-foot { padding-inline: 2rem; }
}

.pd-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--smoke);
    transition: color 160ms ease;
}

.pd-step:hover { color: var(--ink); }
.pd-step[hidden] { visibility: hidden; display: inline-flex; }

/* ---------- 404 ---------- */

.not-found {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 1.25rem;
    min-height: 100svh;
    padding-block: 3rem;
}

.not-found-code {
    margin-top: 2.5rem;
    font-size: clamp(4rem, 3rem + 6vw, 8rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.06em;
}

.not-found .actions { margin-top: 0.75rem; }

.not-found-alt {
    display: grid;
    gap: 0.4rem;
    max-width: 34rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

/* ---------- Gerak ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-nav, .project-dialog, .composer { display: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
