@font-face {
  font-family: 'DM Sans';
  src: url('/assets/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #13212c;
  --hero: #121f28;
  --paper: #f8f9f6;
  --white: #fff;
  --green: #d5ffc0;
  --muted: #4e5d63;
  --line: #dce2da;
  --page-margin: clamp(1.25rem, 5.4vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 'DM Sans', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #477a41; outline-offset: 5px; }
.hero a:focus-visible, .top a:focus-visible { outline-color: var(--green); }
.wrap { width: min(calc(100% - var(--page-margin)*2), 75rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .7rem auto auto .7rem; padding: .7rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus-visible { transform: translateY(0); }
#work, #services, #contact { scroll-margin-top: 1.5rem; }

.top { background: var(--hero); color: #f8faf7; border-bottom: 1px solid #ffffff23; }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.29rem; font-weight: 780; letter-spacing: -.05em; white-space: nowrap; }
.brand img { width: 2.125rem; height: 2.125rem; border-radius: .45rem; }
.top .brand img { outline: 1px solid #83968a; outline-offset: -1px; }
.top nav { display: flex; align-items: center; gap: clamp(.65rem, 2.8vw, 2.15rem); font-size: .95rem; font-weight: 660; }
.top nav a { white-space: nowrap; }
.top nav a:hover { color: var(--green); }
.top-contact { padding: .53rem .85rem; border: 1px solid #7a8984; border-radius: .4rem; }

.hero {
  background: radial-gradient(ellipse at 77% 61%, #253c42 0, transparent 54%), var(--hero);
  color: #f9fbf6;
  padding-block: clamp(3.4rem, 7.7vw, 6.75rem) clamp(3.5rem, 6.3vw, 5.75rem);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.085fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 5.1vw, 5.3rem); letter-spacing: -.075em; line-height: 1.02; font-weight: 760; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy p { max-width: 24rem; color: #d2dcd9; font-size: clamp(1.05rem, 1.52vw, 1.23rem); margin-top: 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; border-radius: .45rem; padding: .73rem 1.13rem; font-weight: 760; }
.button-green { background: var(--green); color: var(--ink); margin-top: 1.6rem; }
.button-green:hover { background: #efffe3; }
.button-dark { color: var(--white); background: var(--hero); }
.button-dark:hover { background: #334e59; }
.hero-work { min-width: 0; }
.screen { overflow: hidden; border-radius: .45rem; }
.hero-screen { display: block; border: 1px solid #ffffff28; box-shadow: 0 1.6rem 4rem #0005; }
.hero-screen img, .screen img { width: 100%; height: auto; }
.hero-screen:hover { box-shadow: 0 1.6rem 4rem #0008; }
.hero-work figcaption { display: flex; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; padding-top: .8rem; color: #d4e0dc; font-size: .9rem; }
.hero-work figcaption a { font-weight: 690; }
.hero-work figcaption a:hover { text-decoration: underline; text-underline-offset: .2em; }

.work { padding-block: clamp(3.8rem, 7.8vw, 6rem); }
.section-heading { margin-bottom: clamp(1.5rem, 3.35vw, 2.6rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .6rem 1.75rem; }
.section-heading p, .contact p { color: var(--muted); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 740; letter-spacing: -.065em; line-height: 1.09; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 2.35vw, 2.15rem); }
.project { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.project-image { display: grid; place-items: center; aspect-ratio: 1.68; padding: clamp(.8rem, 2.55vw, 2rem); border-radius: .85rem .85rem 0 0; overflow: hidden; }
.tone-stone { background: #eae2d4; }
.tone-blue { background: #dbe6ea; }
.tone-sky { background: #e4ecf5; }
.tone-ice { background: #e0ebeb; }
.tone-gold { background: #ede7d6; }
.tone-olive { background: #e3e7d5; }
.project-image .screen { width: 100%; box-shadow: 0 .85rem 2rem #17282b28; transform: translateY(0); transition: transform .18s ease; }
.project-image:hover .screen { transform: translateY(-.3rem); }
.project-text { padding: clamp(1.1rem, 2.5vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.project-meta { color: #4b6656; font-size: .875rem; font-weight: 700; }
.project h3 { margin-top: .32rem; font-size: clamp(1.5rem, 2.35vw, 2.2rem); line-height: 1.1; font-weight: 740; letter-spacing: -.05em; }
.project h3 a:hover { text-decoration: underline; text-underline-offset: .12em; }
.project-text p { color: var(--muted); margin: .6rem 0 1rem; max-width: 30rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-top: auto; }
.text-link { font-weight: 730; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.text-link:hover { color: #365f42; text-decoration-thickness: 2px; }
.muted-link { font-weight: 600; color: var(--muted); }

.services { background: #eaf0e8; border-block: 1px solid #dfe7db; }
.services-inner { padding-block: clamp(3rem, 6.55vw, 5.5rem); }
.service-grid { display: flex; flex-wrap: wrap; gap: 1.4rem clamp(1rem, 3vw, 2.5rem); margin-top: 1.8rem; }
.service-grid article { flex: 1 1 13.5rem; border-top: 1px solid #a4b4a5; padding-top: 1rem; }
.service-grid h3 { font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.25; }
.service-grid p { color: var(--muted); margin-top: .48rem; max-width: 33rem; }
.contact { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: clamp(3.8rem, 8vw, 6.5rem); }
.contact p { margin-top: .6rem; }
.contact .button { flex: 0 0 auto; }
.footer { border-top: 1px solid var(--line); padding-block: 1.6rem; }
.footer-inner { flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .9rem; }

.case-top { padding-block: clamp(2rem, 6vw, 4.9rem) clamp(1.8rem, 4vw, 3.5rem); }
.case-intro .project-meta { margin: 1.45rem 0 .3rem; }
.case-intro h1 { letter-spacing: -.067em; line-height: 1.02; font-weight: 760; font-size: clamp(2.65rem, 6vw, 5rem); }
.case-lead { color: var(--muted); margin-top: .9rem; max-width: 47rem; font-size: clamp(1.03rem, 1.75vw, 1.27rem); }
.case-intro .button { margin-top: 1.25rem; }
.case-image { border-radius: .9rem; padding: clamp(.8rem, 4vw, 3rem); }
.case-image .screen { margin-inline: auto; width: min(100%, 62.5rem); box-shadow: 0 1rem 2.5rem #14293130; }
.case-features { padding-block: clamp(3rem, 6vw, 5rem); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .hero h1 { font-size: clamp(2.85rem, 9.7vw, 4.65rem); }
}
@media (max-width: 680px) {
  .project-grid { grid-template-columns: 1fr; }
  .contact { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 415px) {
  .top-inner { min-height: 4.25rem; gap: .5rem; }
  .top .brand img { width: 1.7rem; height: 1.7rem; }
  .top .brand { font-size: 1.03rem; gap: .39rem; }
  .top nav { font-size: .86rem; gap: .55rem; }
  .top-contact { padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-image .screen { transition: none; }
}
