/* ------------------------------------------------------------
   Tim Zientek — portfolio
   Palette pulled from the photos: the blue wall + the sage tee.
   ------------------------------------------------------------ */
:root {
  --blue: #1481d3;        /* the wall, middle */
  --blue-bright: #1b8edf; /* the wall, highlights */
  --blue-deep: #0b5ea8;   /* the wall, shadows, pushed a little darker */
  --ink: #06294a;         /* very dark blue for text on light */
  --sage: #a9bdb7;        /* the tee */
  --cream: #f4f1ea;
  --lavender: #cdb9f7;    /* one soft accent, used sparingly */
  --white: #ffffff;

  --display: "Gabarito", "Helvetica Neue", Arial, sans-serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--white);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: clamp(16px, 3vw, 34px); }
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 0;
  background: linear-gradient(var(--lavender), var(--lavender)) no-repeat 0 92% / 0 38%;
  transition: background-size 0.25s ease, color 0.25s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { background-size: 100% 38%; color: inherit; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 rgba(6, 41, 74, 0.25); }

/* ---------- home ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--blue);
}
.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
          mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 120px var(--pad) 80px;
  max-width: 640px;
}
.hello {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.hello em { font-style: normal; font-weight: 800; color: var(--lavender); }
.lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  max-width: 24em;
  margin: 0 0 36px;
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
}
.about .brand { color: var(--ink); }
.about-copy { padding: 140px var(--pad) 80px; max-width: 700px; justify-self: end; }
.about h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--blue-deep);
}
.about p { margin: 0 0 1.15em; }
.about .first { font-size: 1.3rem; line-height: 1.45; }
.about-photo { position: relative; min-height: 70vh; }
.about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 30%;
}
.stats {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin: 8px 0 32px; padding: 22px 0;
  border-block: 2px solid var(--blue);
}
.stats div { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.stats strong {
  display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem;
  line-height: 1; letter-spacing: 0; color: var(--blue); text-transform: none;
}
.press { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--blue-deep); }
.press span { color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 1rem; display: block; margin-top: 4px; }
.about .btn { margin-top: 16px; background: var(--blue); color: var(--white); }
.about .btn:hover { box-shadow: 0 8px 0 rgba(6, 41, 74, 0.2); }

/* ---------- work ---------- */
.work { background: var(--blue-deep); min-height: 100vh; }
.work-head { padding: 150px var(--pad) 36px; }
.work-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.95; letter-spacing: -0.03em; margin: 0;
}
.work-head h1 em { font-style: normal; font-weight: 800; color: var(--lavender); }
.rows { padding: 0 var(--pad) 40px; }
.row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 12px 40px;
  padding: 34px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
}
/* Logo slot: plain type by default. Drop an official logo in as
   <img src="img/logos/name.svg" alt="Name"> and it is turned white. */
.mark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--white);
}
.mark small {
  display: block; margin-top: 8px;
  font-family: var(--body); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage);
}
.mark img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.links li:last-child { border-bottom: 0; }
.links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 12px 0; text-decoration: none; font-size: 1.15rem;
  transition: padding 0.2s ease, color 0.2s ease;
}
.links a::after { content: "↗"; font-size: 1rem; opacity: 0.7; }
.links a:hover { padding-left: 12px; color: var(--lavender); }
.posters { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 28px; align-items: start; }
.poster img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 14px 0 rgba(6, 41, 74, 0.35); transition: transform 0.25s ease; }
.poster:nth-child(1) img { transform: rotate(-1.5deg); }
.poster:nth-child(2) img { transform: rotate(1.5deg); }
.poster:hover img { transform: rotate(0) translateY(-4px); }
.poster figcaption { margin-top: 20px; }
.poster figcaption strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: block; line-height: 1.2; }
.poster figcaption span { font-size: 0.85rem; color: var(--sage); }
.poster figcaption a { font-size: 0.95rem; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  padding: 28px var(--pad);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.9rem;
  background: var(--blue-deep); color: var(--sage);
}
.site-footer a { color: var(--white); }
.about + .site-footer { background: var(--ink); }

/* ---------- reveal (script.js adds .js to <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .poster img { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { display: block; min-height: 0; }
  .hero-photo {
    position: relative; width: 100%; height: 62svh;
    object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .hero-copy { margin-top: -90px; padding: 0 var(--pad) 64px; }

  .about { grid-template-columns: 1fr; }
  .about-photo { order: -1; min-height: 58svh; }
  .about-copy { padding: 40px var(--pad) 64px; justify-self: start; }
  .about .brand { color: var(--white); }

  .row { grid-template-columns: 1fr; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
