:root {
  color-scheme: light;
  --paper: #f8f8f1;
  --ink: #1b1c17;
  --muted: #55564e;
  --line: #d8d9cc;
  --accent: #a33e29;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }

.shell { width: min(72rem, calc(100% - 6rem)); margin-inline: auto; }
.topbar { min-height: 5.1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar nav a { display: inline-flex; padding: .7rem 0 .7rem 1rem; font-size: .95rem; font-weight: 650; text-decoration: none; }
.topbar nav a:hover, .footer a:hover { color: var(--accent); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-size: 1.22rem; font-weight: 780; letter-spacing: -.055em; }
.period { color: var(--accent); }
.mark { margin-right: .7rem; display: grid; grid-template-columns: repeat(2, .35rem); gap: .15rem; transform: rotate(-12deg); }
.mark i { aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.mark i:first-child { border-radius: 1px; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 19rem); align-items: end; gap: 3rem; padding-block: clamp(3.75rem, 7.1vw, 6.65rem) clamp(3.8rem, 6.5vw, 5.9rem); }
.intro h1 { font-size: clamp(3.1rem, 8.2vw, 7rem); font-weight: 770; line-height: .99; letter-spacing: -.082em; }
.intro h1 em { color: var(--accent); font-family: var(--serif); font-size: 1.01em; font-weight: 400; letter-spacing: -.082em; }
.intro p { max-width: 24ch; padding-bottom: .18rem; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.23rem); line-height: 1.65; }
#projek { scroll-margin-top: 1.5rem; }
.section-heading { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.14rem; }
.section-heading h2 { font-size: 1.08rem; font-weight: 670; }
.section-heading span { flex: 1; height: 1px; background: var(--line); }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.project { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.12rem; background: #fdfdf7; }
.cover { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 1.68; border-radius: 1.05rem 1.05rem 0 0; text-decoration: none; container-type: inline-size; }
.cover:focus-visible { outline-offset: -5px; }
.cy-cover { background: radial-gradient(ellipse at 75% 47%, #283f77 0%, transparent 53%), radial-gradient(ellipse at 17% 16%, #174d57 0%, transparent 52%), #11182f; }
.cy-orbit { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 27px, #c7fafa14 28px 29px), repeating-linear-gradient(0deg, transparent 0 27px, #c7fafa14 28px 29px); mask-image: linear-gradient(115deg, #000, transparent 70%); }
.cy-word { position: absolute; top: 50%; left: 8%; display: grid; gap: 1.25cqw; color: #ebffff; transform: translateY(-55%); }
.cy-word strong { font-size: 9.2cqw; font-weight: 760; letter-spacing: -.07em; line-height: 1.1; }
.cy-word > span { font-size: 2.7cqw; color: #c4efed; }
.cy-symbol { width: 9cqw; height: 9.8cqw; display: grid; place-items: center; margin-bottom: 1.3cqw; background: #56f2d8; clip-path: polygon(50% 0, 94% 18%, 91% 65%, 78% 85%, 50% 100%, 22% 85%, 9% 65%, 6% 18%); }
.cy-symbol i { display: block; width: 4.8cqw; height: 3.35cqw; border: .5cqw solid #163247; border-radius: 1.1cqw; background: radial-gradient(circle, #163247 0 22%, transparent 26%) 0 0 / 50% 100%; }
.device { position: absolute; top: 10%; right: 10.7%; width: 34%; aspect-ratio: .56; padding: 1cqw; border: .33cqw solid #657999; border-radius: 5.4cqw; background: #0c1325; box-shadow: 0 2.7cqw 6cqw #03091bc0; transform: rotate(13deg); }
.device-screen { position: relative; height: 100%; padding: 8.7cqw 2.15cqw 2.2cqw; border-radius: 4.2cqw; background: radial-gradient(ellipse at 22% 1%, #285b61, transparent 57%), #171f3c; color: #eaf6ff; }
.device-camera { position: absolute; top: 1.5cqw; left: 50%; width: 8cqw; height: 1.7cqw; border-radius: 1cqw; background: #080e1e; transform: translateX(-50%); }
.screen-caption { color: #64e3cd; font-size: 2.35cqw; font-weight: 750; }
.screen-heading { margin-block: 1cqw 2cqw; font-size: 3.6cqw; letter-spacing: -.035em; font-weight: 750; }
.screen-module { display: flex; align-items: center; gap: .85cqw; min-height: 5.4cqw; margin-block: 1cqw; padding: .65cqw; border: 1px solid #ffffff24; border-radius: 1.2cqw; background: #ffffff13; font-size: 1.95cqw; white-space: nowrap; }
.screen-module i { width: 2.45cqw; height: 2.45cqw; flex: 0 0 auto; border-radius: .65cqw; background: #58d9c7; }
.screen-module:nth-of-type(3) i { background: #b0a8fc; }
.screen-progress { margin-top: 2.4cqw; height: .65cqw; border-radius: 1rem; background: #3b4a6b; }
.screen-progress i { display: block; width: 65%; height: 100%; border-radius: inherit; background: #56e7c7; }
.play-icon { position: absolute; left: 8%; bottom: 9%; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid #dcfffc70; border-radius: 50%; background: #10213d91; }
.play-icon::after { content: ""; margin-left: .16rem; border-block: .28rem solid transparent; border-left: .48rem solid #e6fff9; }

.food-cover { background: radial-gradient(ellipse at 72% 21%, #ffdf83, transparent 65%), #f7c760; }
.food-rings { position: absolute; z-index: -1; inset: 0; background: repeating-radial-gradient(ellipse at 85% 72%, transparent 0 10.8cqw, #a45b2a52 11cqw 11.15cqw, transparent 11.35cqw 15cqw); mask-image: linear-gradient(110deg, transparent 29%, #000); }
.food-word { position: absolute; top: 48%; left: 7%; color: #6a2218; display: grid; justify-items: center; transform: translateY(-50%) rotate(-8deg); }
.food-word strong { font-family: var(--serif); font-style: italic; font-size: 10.6cqw; letter-spacing: -.085em; line-height: 1; }
.food-word span { margin-top: .7cqw; font-size: 2.7cqw; font-weight: 700; letter-spacing: .12em; }
.food-photo { position: absolute; padding: 1.2cqw; overflow: hidden; border-radius: 3.2cqw; background: #fff8e7; box-shadow: 0 2cqw 4cqw #87451356; transition: transform 240ms ease; }
.food-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2.2cqw; }
.food-photo-laksa { top: 9%; right: 12%; width: 38%; height: 72%; transform: rotate(-12deg); }
.food-photo-kari { right: 5%; bottom: 8%; width: 28%; height: 44%; transform: rotate(13deg); }
.food-cover:hover .food-photo-laksa { transform: translateY(-2%) rotate(-15deg); }
.food-cover:hover .food-photo-kari { transform: translateY(-2%) rotate(16deg); }

.project-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 2.3vw, 1.85rem); }
.category { margin-bottom: .45rem; color: var(--accent); font-size: .88rem; font-weight: 720; }
.project-copy h3 { margin-bottom: .55rem; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 740; letter-spacing: -.06em; line-height: 1.13; }
.project-copy h3 + p { max-width: 48ch; margin-bottom: 1rem; color: var(--muted); line-height: 1.65; }
.features { margin-top: auto; margin-bottom: 1.35rem; font-size: .9rem; line-height: 1.55; font-weight: 650; }
.features span { padding-inline: .25rem; color: var(--accent); }
.button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.1rem; border: 1px solid var(--ink); border-radius: 99rem; background: var(--ink); color: #fff; font-weight: 650; font-size: .93rem; text-decoration: none; transition: background 180ms ease, border-color 180ms ease; }
.button:hover { border-color: var(--accent); background: var(--accent); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.4rem; align-items: center; margin-top: clamp(3rem, 6vw, 5.25rem); padding-block: 1.2rem 1.65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.skip-link { position: absolute; top: .75rem; left: .75rem; z-index: 2; transform: translateY(-200%); padding: .6rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 56rem) {
  .shell { width: calc(100% - 3.5rem); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem); gap: 1.5rem; }
}
@media (max-width: 41rem) {
  .shell { width: calc(100% - 2.25rem); }
  .topbar { min-height: 4.2rem; }
  .intro { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 3.65rem 3.3rem; }
  .intro h1 { font-size: clamp(2.7rem, 10.4vw, 4.35rem); }
  .intro p { max-width: 33ch; }
  .projects { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
