/* TAZY website styles. Fonts are hosted on the site (no Google), so nothing tracks visitors. */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Thylacine colours: tan coat, dark brown stripes, sandy belly */
:root {
  --stripe: #1e130b;      /* darkest brown, behind everything */
  --brown: #5e3b22;
  --tan: #c98f55;
  --sand: #e8bf86;
  --cream: #f6ecdc;
  --panel: rgba(0, 0, 0, 0.62);   /* the see-through black the content sits on */
  --panel-edge: rgba(232, 191, 134, 0.18);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 980px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--stripe);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* The picture behind the whole site. It stays put while the page scrolls over it.
   It is centred and pinned to the top of the screen, and scaled evenly (never stretched):
   on screens a different shape to the photo, the edges are trimmed rather than squashed. */
.backdrop {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: var(--stripe) url("images/suzie-and-tazy-v3.jpg") center top / cover no-repeat;
}
/* On tall, narrow screens (phones) keep both Suzie's and Tazy's faces in view */
@media (max-aspect-ratio: 1/1) {
  .backdrop { background-position: 30% top; }
}

a { color: var(--sand); }
a:hover { color: var(--cream); }

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

/* Top bar */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-edge);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--tan);
  text-decoration: none;
  text-transform: uppercase;
}
.brand:hover { color: var(--sand); }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--sand); }
.nav a[aria-current="page"] { color: var(--tan); border-bottom-color: var(--tan); }

/* The see-through black panels the content floats on */
.panel {
  background: var(--panel);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 34px 36px;
  margin: 0 0 28px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}

/* Home page: leave most of the first screen open so the photo is the first thing people see */
.hero {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 36px;
}
.hero > .wrap { width: 100%; }
.hero .panel { width: fit-content; max-width: 100%; display: flex; align-items: flex-end; gap: 10px 30px; flex-wrap: wrap; padding: 18px 30px 20px; margin: 0; }
.hero .tagline { margin: 0 0 6px; }
/* Keep the logo panel low on the first screen, so Suzie and Tazy stay clear above it */
.hero { padding-bottom: 20px; }
.title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(5rem, 18vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--tan);
  margin: 0;
  text-shadow: 0 4px 0 var(--brown), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.tagline {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--cream);
  margin: 14px 0 0;
}
.alt-title { font-size: 0.95rem; color: var(--cream); opacity: 0.7; margin: 4px 0 0; }

.scroll-hint {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--sand);
  text-decoration: none;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--tan);
}
h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 14px; }
h3 { font-size: 1.4rem; margin: 26px 0 8px; color: var(--sand); }

.page-top { padding-top: 44px; }
.lede { font-size: 1.15rem; margin: 0; opacity: 0.92; }

.logline {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--cream);
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 5px solid var(--tan);
}
.synopsis { margin: 0; opacity: 0.92; }   /* fills the panel, so the right margin matches the left */
.prose ul { padding-left: 22px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tan);
  color: var(--stripe);
  text-decoration: none;
  padding: 12px 26px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--brown);
}
.btn:hover { background: var(--sand); color: var(--stripe); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brown); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* "Watch the short film" teaser on the home page */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.teaser p { margin: 0 0 18px; }

/* Video frame. The picture keeps its own shape (16:9); nothing is stretched. */
.video {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--panel-edge);
}
.video img { display: block; width: 100%; height: auto; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid var(--sand);
}
.play::after {
  content: "";
  position: absolute;
  left: 32px; top: 23px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--sand);
}
.badge {
  position: absolute;
  right: 14px; bottom: 14px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--sand);
  padding: 6px 12px;
  border-radius: 6px;
}
a.video:hover .play { background: rgba(0, 0, 0, 0.8); border-color: var(--cream); }

/* Feedback form (same workings as camwatch.com.au) */
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--sand); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(232, 191, 134, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a8998a; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--tan); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: rgba(123, 211, 137, 0.15); color: #9fe0a9; }
.form-status.bad { background: rgba(239, 127, 108, 0.15); color: #f2a08f; }
.small { font-size: 0.92rem; opacity: 0.8; }

/* Footer */
.site-foot {
  background: rgba(0, 0, 0, 0.78);
  border-top: 1px solid var(--panel-edge);
  padding: 26px 0 34px;
  margin-top: 20px;
  font-size: 0.92rem;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-foot p { margin: 0; opacity: 0.8; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { color: var(--sand); }

@media (max-width: 720px) {
  .teaser { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
  .brand { font-size: 30px; }
  .nav a { font-size: 17px; }
}
@media (max-width: 420px) {
  .site-head .wrap { justify-content: center; padding: 8px 10px 4px; gap: 4px; }
  .nav { gap: 2px 13px; justify-content: center; }
  .nav a { font-size: 14.5px; letter-spacing: 0.04em; }
}

/* The TAZY logo. Width and height are set to "auto" together, so it always keeps its own shape. */
.brand img { display: block; height: 46px; width: auto; }
.title img {
  display: block;
  width: min(358px, 64vw);   /* 36% smaller than the first version (two 20% cuts) */
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}
.title { text-shadow: none; }

/* Third-party store notice */
.notice { border-color: rgba(232, 191, 134, 0.45); border-left: 6px solid var(--tan); }
.notice h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

/* End card from the film: bold white text on solid black, right across the page */
.endcard {
  background: #000;
  color: #fff;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 24px;
  margin: 0 0 28px;
  border-radius: var(--radius);   /* same width and corners as the see-through panels */
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}
.endcard p { margin: 0 auto; }
.endcard-big { font-weight: 700; font-size: clamp(1.6rem, 4.2vw, 2.9rem); line-height: 1.2; letter-spacing: -0.01em; }
.endcard-small { font-weight: 400; font-size: clamp(1.1rem, 2.5vw, 1.7rem); line-height: 1.45; margin-top: 1.4em !important; }
.endcard-link { margin-top: 1.3em !important; font-weight: 700; font-size: clamp(1.5rem, 3.8vw, 2.6rem); }
.endcard-link a { color: var(--tan); text-decoration: none; }   /* same tan as the "The story" heading */
.endcard-link a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 560px) { .endcard-small br { display: none; } }

/* "Coming soon" stamp under the logo, like a rubber stamp on a film poster */
.hero .panel { flex-direction: column; align-items: flex-start; gap: 18px; }
.stamp {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 26px;
  line-height: 1.2;
  color: #f8af39;               /* the logo's yellow */
  border: 3px solid #f8af39;
  border-radius: 6px;
  padding: 6px 16px 4px;
  margin: 0 0 6px 14px;
  /* Sits centred between the bottom of the letters T-A-Z and the bottom of the panel.
     The shift is worked out from the logo's width, so it stays centred at every screen size
     without changing the panel's size. */
  transform: translateY(calc(4px - 0.0825 * min(358px, 64vw))) rotate(-6deg);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}
@media (max-width: 420px) {
  .stamp { font-size: 21px; }
  .hero { min-height: calc(100svh - 104px); }   /* the top bar is taller on phones */
}

/* ---- Keep the logo panel below Suzie's and Tazy's faces on every screen ----
   The photo starts just under the top bar (so the bar never hides Suzie's head).
   It is scaled evenly to cover the rest of the screen, pinned to the top, so its height on screen
   is the larger of (screen height minus the bar) and 65.02% of the screen width.
   Tazy's chin sits 42% of the way down the photo; the panel starts just below that line,
   and the logo shrinks a little (never below 240px wide) on short screens so the panel fits. */
:root { --head: 64px; --photo-top: 64px; --ratio: 0.6502; --face: 0.47; }
@media (max-width: 420px) { :root { --head: 102px; } }
/* The photo starts right under the top bar. */
:root { --photo-top: var(--head); }
.backdrop { top: var(--photo-top); height: calc(100vh - var(--photo-top)); }
@supports (height: 100lvh) { .backdrop { height: calc(100lvh - var(--photo-top)); } }
/* Wide screens (Mac): a version of the same photo with a little more sky kept above Suzie's head,
   so there is more room under the top bar. Not stretched, just cropped less at the top. */
@media (min-aspect-ratio: 1/1) {
  :root { --ratio: 0.6719; --face: 0.4871; }
  .backdrop { background-image: url("images/suzie-and-tazy-wide.jpg"); }
}
.hero {
  --img-h: max(calc(100vh - var(--photo-top)), calc(100vw * var(--ratio)));
  --chin: calc(var(--photo-top) + var(--img-h) * var(--face));   /* a little below the chin, to give their smiles room */
  /* Logo size is worked out from the photo as it sits with no extra gap, so the extra Mac gap moves it down without shrinking it. */
  --chin0: calc(var(--head) + max(calc(100vh - var(--head)), calc(100vw * 0.6502)) * 0.47);
  --logo-w: min(64vw, clamp(240px, calc((100vh - var(--chin0) - 150px) / 0.7114), 358px));
  display: block;
  min-height: 0;
  padding: calc(var(--chin) - var(--head) + 24px) 0 28px;
}
@supports (height: 100lvh) {
  .hero {
    --img-h: max(calc(100lvh - var(--photo-top)), calc(100vw * var(--ratio)));
    --chin0: calc(var(--head) + max(calc(100lvh - var(--head)), calc(100vw * 0.6502)) * 0.47);
    --logo-w: min(64vw, clamp(240px, calc((100svh - var(--chin0) - 150px) / 0.7114), 358px));
  }
}
.title img { width: var(--logo-w); }
.stamp { transform: translateY(calc(4px - 0.0825 * var(--logo-w))) rotate(-6deg); }
@media (max-width: 380px) { .nav { gap: 2px 10px; } .nav a { font-size: 13px; } }
