/* antoknee.com — shared styles for every page */

:root {
  --sky: #e4f5fd;        /* main light-blue background */
  --white: #ffffff;
  --ink: #000000;
  --muted: #333333;
  --footer: #2d8ccd;     /* blue footer bar */
  --display: "Cormorant Garamond", Garamond, Georgia, serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --curve: clamp(36px, 7vw, 90px); /* height of the rounded section edges */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
}

.wrap { max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
}
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.site-header nav a {
  font-family: var(--text);
  font-size: 18px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { border-bottom-color: currentColor; }
.social { display: flex; gap: 14px; margin-left: clamp(4px, 2vw, 24px); }
.social a { display: block; width: 18px; height: 18px; }
.social svg { width: 100%; height: 100%; fill: currentColor; }

/* Header sitting on a dark banner (project pages) */
.on-dark .site-header { color: var(--white); }

/* ---------- Rounded section edges ---------- */
/* A section with .curve-top overlaps the one above it with a soft arc. */
.curve-top {
  position: relative;
  margin-top: calc(var(--curve) * -1);
  border-top-left-radius: 50% var(--curve);
  border-top-right-radius: 50% var(--curve);
  padding-top: calc(var(--curve) + 40px);
}
.curve-bottom {
  position: relative;
  z-index: 1;
  border-bottom-left-radius: 50% var(--curve);
  border-bottom-right-radius: 50% var(--curve);
}

.bg-sky { background: var(--sky); }
.bg-white { background: var(--white); }

/* ---------- Home: hero ---------- */

.hero {
  padding: 120px var(--gutter) calc(var(--curve) + 40px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 0;
}
.hero h1 { font-size: clamp(44px, 5vw, 64px); margin-bottom: .25em; }
.hero .intro {
  font-family: var(--display);
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}
.hero .intro em { font-weight: 700; }
.hero .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }

/* ---------- Home: curved "Creative Solutions" marquee + services ---------- */

.solutions { padding: calc(var(--curve) + 30px) 0 calc(var(--curve) + 60px); margin-top: calc(var(--curve) * -1); }
.arc-marquee { width: 100%; height: auto; display: block; overflow: visible; }
.arc-marquee text {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 500;
  fill: var(--ink);
}
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.services h3 { font-family: var(--text); font-size: 22px; font-weight: 500; }
.services p { font-size: 18px; line-height: 1.7; margin: 0; color: var(--muted); }

/* ---------- Home: recent work grid ---------- */

.work { padding-bottom: 60px; }
.section-title { text-align: center; font-size: clamp(28px, 3vw, 38px); font-weight: 600; margin-bottom: 40px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
}
.work-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  text-decoration: none;
  background: #cfe6f2;
}
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
/* Title sits bottom-left on a soft gradient so the work itself stays bright */
.work-tile span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(16px, 2.4vw, 28px);
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 55%);
  transition: background .3s ease;
}
.work-tile strong { font-weight: 500; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
/* "View project →" waits below the title and slides up on hover */
.work-tile em {
  font-family: var(--text);
  font-style: normal;
  font-size: 17px;
  letter-spacing: .02em;
  height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.work-tile img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.work-tile:hover img, .work-tile:focus-visible img { transform: scale(1.06); }
.work-tile:hover span, .work-tile:focus-visible span { background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .1) 75%); }
.work-tile:hover strong, .work-tile:focus-visible strong { transform: translateY(-26px); }
.work-tile:hover em, .work-tile:focus-visible em { opacity: 1; transform: translateY(-20px); }
.work-tile:focus-visible { outline: 2px solid var(--footer); outline-offset: 3px; }
/* Desktop tilt toward the cursor; site.js sets --rx / --ry */
.work-tile.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; }
/* Touch screens can't hover, so show the "View project" line all the time */
@media (hover: none) {
  .work-tile strong { transform: translateY(-26px); }
  .work-tile em { opacity: 1; transform: translateY(-20px); }
}

/* ---------- Scroll reveals ---------- */
/* site.js only adds .pre-reveal to things below the fold, so nothing on screen is ever hidden */
.pre-reveal { opacity: 0; transform: translateY(28px); }
.revealed {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}

/* ---------- Home: contact strip ---------- */

.cta { text-align: center; padding: 20px var(--gutter) 90px; }
.cta .eyebrow { font-style: italic; font-size: 18px; margin: 0 0 6px; }
.cta h2 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 28px; }

/* Outlined button used for email links */
.button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.button:hover, .button:focus-visible { background: var(--ink); color: var(--white); }

/* ---------- Home: location ---------- */

.location { text-align: center; padding: 40px 0 80px; }
.location .eyebrow { font-style: italic; font-size: 16px; margin: 0 0 8px; }
.location h2 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 36px; }
.map {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--footer);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.9) brightness(1.05); }

/* ---------- Simple text pages (About, Contact) ---------- */

.page-intro { padding: 150px var(--gutter) 100px; max-width: 900px; margin: 0 auto; text-align: center; }
.page-intro .eyebrow { font-size: 18px; margin: 0 0 10px; }
.page-intro h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: .8em; }
.page-intro .lead { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.5; text-align: left; }
.page-intro .contact-lines { font-size: 22px; line-height: 1.8; }
.page-intro .contact-lines a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* About: photo beside the bio */
.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px var(--gutter) 100px;
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.about .eyebrow { font-size: 18px; margin: 0 0 10px; }
.about h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: .7em; }
.about .lead { font-family: var(--display); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.55; margin: 0 0 1em; max-width: 34em; }
.about .button { margin-top: 12px; }

/* ---------- Project pages ---------- */

.banner {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 150px var(--gutter) calc(var(--curve) + 90px);
  background: #000;
  overflow: hidden;
  isolation: isolate; /* keeps the dark wash inside the banner so the curved section below draws on top */
}
/* Each project's own image fills the banner; the dark wash keeps the title readable */
.banner > * { position: relative; z-index: 2; }
.banner > .banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .5); }
.banner h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: .4em; }
.banner p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); margin: 0; }

.block { padding: 50px 0; }
.block-text { text-align: center; max-width: 600px; margin: 0 auto 40px; padding: 0 var(--gutter); }
.block-text h2 { font-size: clamp(34px, 4vw, 52px); }
.block-text p { font-size: 19px; line-height: 1.7; margin: 0; color: var(--muted); }
.block-text.wide { max-width: 760px; }
.block-text.wide p { font-family: var(--display); font-size: clamp(18px, 1.8vw, 23px); line-height: 1.6; }

/* Galleries — one class per layout used on the old site */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-grid.natural img { aspect-ratio: auto; object-fit: contain; }
.gallery-grid.two { grid-template-columns: repeat(2, 1fr); }
.gallery-masonry { columns: 3; column-gap: clamp(10px, 1.6vw, 20px); }
.gallery-masonry > * { break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 20px); }
.gallery-masonry.four { columns: 4; }
.gallery-feature img { width: 100%; max-width: 1100px; margin: 0 auto 40px; }

/* Every gallery image opens the lightbox */
[data-lightbox] { cursor: zoom-in; }
[data-lightbox] img { width: 100%; }

/* Slideshow: horizontal scroll-snap strip with arrows */
.slideshow { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 36px; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  height: min(70vh, 640px);
}
.slides img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.slideshow button {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 32px;
  height: 48px;
  border: 0;
  background: none;
  font: 32px/1 var(--display);
  cursor: pointer;
  color: var(--ink);
}
.slideshow .prev { left: 0; }
.slideshow .next { right: 0; }

/* Straight scrolling text marquee ("Life In 3D *", "Make • It • Beautiful •") */
.marquee { overflow: hidden; white-space: nowrap; padding: 10px 0 30px; }
.marquee div { display: inline-block; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(48px, 7vw, 96px); font-weight: 500; padding-right: .4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Vimeo embeds */
.videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.video { position: relative; aspect-ratio: 16 / 9; width: min(100%, 640px); }
.video.tall { aspect-ratio: 9 / 16; width: min(100%, 300px); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Previous / next project links */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 60px 0 70px;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .next { margin-left: auto; }

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

.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 26px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer p { margin: 0; font-size: 17px; }
.site-footer p a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .6); }

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .9);
}
.lightbox::backdrop { background: transparent; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 40px; }
.lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  font: 40px/1 var(--display);
  cursor: pointer;
  padding: 12px 18px;
}
.lightbox .close { top: 8px; right: 8px; }
.lightbox img { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-drag: none; }
.lightbox .count {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
  font: 16px/1 var(--text);
  letter-spacing: .08em;
  opacity: .8;
}
.lightbox.single .prev, .lightbox.single .next { display: none; }
.lightbox .prev { left: 4px; top: 50%; translate: 0 -50%; }
.lightbox .next { right: 4px; top: 50%; translate: 0 -50%; }

/* ---------- Phones and small tablets ---------- */

@media (max-width: 767px) {
  body { font-size: 17px; }
  .site-header { padding-top: 16px; }
  .site-header .logo img { height: 28px; }
  .site-header nav a { font-size: 16px; }
  .social { gap: 10px; margin-left: 2px; }
  .social a { width: 15px; height: 15px; }
  .hero { padding-top: 90px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .photo { order: -1; }
  .services { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.two { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry, .gallery-masonry.four { columns: 2; }
  .slideshow { padding: 0 28px; }
  .slides > * { height: 60vh; }
  .page-intro { padding-top: 120px; }
  .about { grid-template-columns: 1fr; padding-top: 100px; }
  .about-photo img { aspect-ratio: 1; }
  .services p, .block-text p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee div { animation: none; }
  .work-tile img, .work-tile strong, .work-tile em { transition: none; }
  .pre-reveal { opacity: 1; transform: none; }
}
