:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgb(0 0 0 / 0.1);
  --accent: #0071e3;
  --link: #0066cc;
  --nav-bg: rgb(251 251 253 / 0.8);
  --dock-bg: rgb(255 255 255 / 0.55);
  --dock-edge: rgb(0 0 0 / 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --alt: #101010;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --hairline: rgb(255 255 255 / 0.14);
    --link: #2997ff;
    --nav-bg: rgb(22 22 23 / 0.8);
    --dock-bg: rgb(40 40 42 / 0.55);
    --dock-edge: rgb(255 255 255 / 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -48px; padding: 10px 14px; background: var(--alt); border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* Type, on Apple's scale and tracking. */
.headline { font-size: clamp(40px, 7vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin: 0; }
.tagline { font-size: clamp(21px, 2.8vw, 28px); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; margin: 8px 0 0; }
.caption { font-size: 14px; line-height: 1.45; margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--muted); margin: 0 0 16px; letter-spacing: -0.01em; }

/* Nav: Apple's thin translucent bar. */
.nav { position: sticky; top: 0; z-index: 5; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); }
.nav-row { width: min(100% - 40px, 1024px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.nav-name { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--ink); font-size: 13px; opacity: 0.82; }
.nav nav a:hover { opacity: 1; text-decoration: none; }

/* Links with Apple's trailing chevron. */
.chevron { font-size: 19px; letter-spacing: -0.01em; }
.chevron::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: translateY(-1px) rotate(45deg); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.button:hover { background: #0077ed; text-decoration: none; }

/* Label-to-arrow blur morph, as on gazeunlock.com. Fine pointers only, so touch never sticks. */
.morph { position: relative; display: inline-grid; place-items: center; }
.morph > * { grid-area: 1 / 1; transition: opacity 340ms linear, filter 340ms cubic-bezier(0.22, 1, 0.36, 1); }
.morph .hover { opacity: 0; filter: blur(16px); }
.morph .hover svg { width: 20px; height: 20px; }
a:focus-visible > .morph .rest { opacity: 0; filter: blur(16px); }
a:focus-visible > .morph .hover { opacity: 1; filter: blur(0); }
@media (hover: hover) and (pointer: fine) {
  a:hover > .morph .rest { opacity: 0; filter: blur(16px); }
  a:hover > .morph .hover { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .morph > * { transition: none; }
  .morph .hover { display: none; }
  a:hover > .morph .rest, a:focus-visible > .morph .rest { opacity: 1; filter: none; }
}


/* Hero: About This Mac, on Owen's own desktop wallpaper. */
.hero { width: min(100% - 40px, 1024px); margin: 0 auto; padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 72px); }
.desktop { position: relative; display: grid; place-items: center; min-height: clamp(560px, 62vw, 640px); padding: 56px 16px; border-radius: 28px; overflow: hidden; isolation: isolate; }
.wallpaper { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.about-window {
  --win-bg: rgb(246 246 248 / 0.78);
  --win-edge: rgb(255 255 255 / 0.7);
  --btn-bg: rgb(255 255 255 / 0.8);
  --btn-hover: #fff;
  --btn-edge: rgb(0 0 0 / 0.1);
  position: relative; width: min(100%, 380px); padding: 44px 32px 30px; border-radius: 26px;
  background: var(--win-bg);
  backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 0.5px solid rgb(0 0 0 / 0.1);
  box-shadow: inset 0 0.5px 0 var(--win-edge), 0 2px 6px rgb(0 0 0 / 0.1), 0 30px 80px rgb(0 0 0 / 0.35);
  text-align: center;
}
/* About This Mac only offers Close; minimise and zoom sit greyed out. */
.lights { position: absolute; top: 15px; left: 16px; display: flex; gap: 8px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; background: rgb(0 0 0 / 0.14); }
.lights span:first-child { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12); }
.about-icon { width: 112px; height: 112px; margin: 0 auto; }
.about-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 0; }
.about-sub { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 6px 0 0; text-wrap: balance; }
.specs { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px 10px; font-size: 14px; line-height: 1.35; text-align: left; }
.specs > div { display: contents; }
.specs dt { text-align: right; }
.specs dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.window-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; }
.window-buttons a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 16px; border-radius: 999px;
  font-size: 14px; color: var(--ink); background: var(--btn-bg);
  border: 0.5px solid var(--btn-edge); box-shadow: 0 0.5px 1.5px rgb(0 0 0 / 0.1);
}
.window-buttons a:hover { background: var(--btn-hover); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .about-window {
    --win-bg: rgb(36 36 40 / 0.72);
    --win-edge: rgb(255 255 255 / 0.14);
    --btn-bg: rgb(255 255 255 / 0.12);
    --btn-hover: rgb(255 255 255 / 0.2);
    --btn-edge: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.1);
  }
  .lights span { background: rgb(255 255 255 / 0.2); }
}

/* Projects: Apple-style cards, one per app. More apps add more cards. */
.work { width: min(100% - 40px, 1024px); margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 11vw, 140px); text-align: center; }
.cards { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 20px; }
.card { border-radius: 28px; overflow: hidden; text-align: center; }
/* Matches the lock screen in the picture, so the Mac sits on one surface. */
.card-dark { background: #000; color: #f5f5f7; border: 1px solid var(--hairline); --link: #2997ff; }
.card-dark a.chevron { color: var(--link); }
.card-media { padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 72px) 0; }
.card-text { padding: 0 24px clamp(48px, 6vw, 64px); }
.card-title { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; margin: 0; }
.card-tagline { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.25; letter-spacing: -0.02em; margin: 8px 0 0; color: #a1a1a6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 28px; }
/* The shell image has wide empty margins; let the laptop itself fill the width. */
.mac { position: relative; aspect-ratio: 1920 / 1280; width: 136%; margin-inline: -18%; margin-block: -9% -10%; }
/* Screen geometry from gaze-site/src/components/hero-device.tsx. */
.mac-plate { position: absolute; left: 19.1%; top: 18.7%; width: 61.8%; height: 59.6%; background: #000; }
.mac-screen { position: absolute; left: 19.444%; top: 19.067%; width: 61.111%; height: 58.933%; overflow: hidden; }
.mac-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mac-shell { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }

/* About statement */
.statement { background: var(--alt); text-align: center; padding: clamp(80px, 11vw, 140px) 20px; }
.statement-text { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; margin: 0 auto; max-width: 28ch; }

/* Setup: a working Dock, then what each app is for. */
.setup { text-align: center; padding: clamp(80px, 11vw, 140px) 20px clamp(64px, 9vw, 112px); }
.dock-wrap { display: flex; justify-content: center; margin-top: clamp(48px, 7vw, 72px); padding-top: 40px; }
.dock {
  --size: 64px;
  list-style: none; margin: 0; padding: 10px 12px;
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--dock-bg);
  border: 1px solid var(--dock-edge);
  border-radius: 26px;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.12);
}
/* Icons magnify by transform only, so the panel itself never changes size. */
.dock li { --s: 1; position: relative; width: var(--size); height: var(--size); flex: none; }
.dock li img { width: 100%; height: 100%; transform: scale(var(--s)); transform-origin: 50% 100%; transition: transform 160ms ease-out; }
.dock .divider { width: 1px; height: calc(var(--size) - 8px); margin: 0 6px 4px; background: var(--dock-edge); }
.dock .tip {
  position: absolute; left: 50%; bottom: calc(100% + var(--size) * (var(--s) - 1) + 10px); transform: translateX(-50%);
  padding: 4px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--nav-bg); border: 1px solid var(--dock-edge);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13px; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 120ms;
}
.dock li:hover .tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dock li img { transition: none; } }

.tools { width: min(100%, 960px); margin: clamp(56px, 8vw, 80px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; text-align: left; }
.tools dt { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.tools dd { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.machine { margin: 56px 0 0; font-size: 15px; color: var(--muted); }

/* Contact */
.contact { width: min(100% - 40px, 680px); margin: 0 auto; padding: clamp(48px, 7vw, 80px) 0; }
.contact ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.contact li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--hairline); font-size: 17px; }
.contact .label { font-size: 15px; color: var(--muted); }
.copy { font: inherit; color: var(--link); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.copied { margin-left: 8px; color: var(--muted); font-size: 14px; }

.footer { background: var(--alt); border-top: 1px solid var(--hairline); padding: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.footer p { margin: 0; }

@media (max-width: 820px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav nav { gap: 16px; }
  .nav nav a[href="#setup"] { display: none; }
  .card { border-radius: 22px; }
  .desktop { min-height: 0; padding: 40px 14px; border-radius: 22px; }
  .about-window { padding: 40px 18px 22px; }
  .specs { grid-template-columns: auto 1fr; }
  .window-buttons a { min-height: 44px; padding-inline: 20px; }
  .dock { --size: 31px; gap: 4px; padding: 7px; border-radius: 16px; }
  .dock .divider { margin: 0 3px 3px; }
  .dock .tip { display: none; }
  .tools { grid-template-columns: 1fr; gap: 22px; }
}
