:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5c6765;
  --paper: #f8f7f1;
  --surface: #ffffff;
  --line: rgba(24, 32, 31, 0.14);
  --sage: #7d9a89;
  --brick: #a94e3f;
  --ochre: #d8a84e;
  --blue: #315b7c;
  --shadow: 0 24px 60px rgba(21, 31, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 247, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.95rem;
}

.site-nav {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: min(760px, 84svh);
  padding: 116px clamp(20px, 6vw, 88px) 54px;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 15, 16, 0.82), rgba(8, 15, 16, 0.44) 44%, rgba(8, 15, 16, 0.18)),
    linear-gradient(0deg, rgba(8, 15, 16, 0.28), rgba(8, 15, 16, 0));
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.project-meta,
time {
  margin: 0;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c66d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 14vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.button.primary {
  background: var(--ochre);
  color: #231a0a;
}

.button.secondary {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 88px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.section-kicker {
  margin-bottom: 18px;
}

.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy p:last-child,
.project-body p:last-child,
.timeline p:last-child {
  margin-bottom: 0;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.work {
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.text-link {
  color: var(--blue);
  font-weight: 750;
  white-space: nowrap;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(21, 31, 31, 0.08);
}

.project-visual {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}

.visual-one {
  background:
    linear-gradient(135deg, rgba(49, 91, 124, 0.18), transparent 52%),
    linear-gradient(90deg, var(--blue) 0 18%, #f1f5f4 18% 100%);
}

.visual-two {
  background:
    radial-gradient(circle at 74% 25%, rgba(216, 168, 78, 0.9) 0 15%, transparent 16%),
    linear-gradient(135deg, #f4ead1, #ffffff 48%, rgba(125, 154, 137, 0.54));
}

.visual-three {
  background:
    repeating-linear-gradient(90deg, rgba(24, 32, 31, 0.12) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, rgba(169, 78, 63, 0.82), rgba(49, 91, 124, 0.86));
}

.project-body {
  padding: 22px;
}

.project-body p {
  color: var(--muted);
}

.experience {
  border-block: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.timeline article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline h3 {
  margin-top: 6px;
}

.timeline p {
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--ink);
  color: #fff;
}

.contact .section-kicker {
  color: #f1c66d;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 88px);
  background: #111817;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    min-height: 82px;
  }

  .site-nav {
    max-width: 56vw;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 15, 16, 0.84), rgba(8, 15, 16, 0.5)),
      linear-gradient(0deg, rgba(8, 15, 16, 0.32), rgba(8, 15, 16, 0));
  }

  .section-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand {
    max-width: 128px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    gap: 10px;
    max-width: 58vw;
  }

  .hero {
    padding-inline: 16px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.6rem);
  }

  .button {
    width: 100%;
  }

  .section,
  .site-footer {
    padding-inline: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
