/*
Theme Name: Adidol Timeline
Theme URI: https://adidolvisuals.co.uk
Author: Adidol Visuals
Description: A timeline-inspired portfolio theme for Adidol Visuals.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adidol-timeline
*/

@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { font: inherit; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
body { background: #f3eee4; -webkit-font-smoothing: antialiased; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page {
  --paper: #f3eee4;
  --ink: #16140f;
  --signal: #ff4a1c;
  --pine: #0f5c52;
  --line: rgb(22 20 15 / 22%);
  --gutter: clamp(16px, 4vw, 48px);
  --label: clamp(28px, 4vw, 52px);
  --dock: 58px;
  min-height: 100dvh;
  padding-bottom: var(--dock);
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.page section {
  scroll-margin-top: 16px;
}

.tc,
.top,
.trackLabel,
.footer {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
}

.mark {
  font-weight: 500;
}

.mark span {
  color: var(--signal);
}

.topNote {
  opacity: 0.65;
}

.hero {
  display: flex;
  min-height: calc(100dvh - var(--dock) - 56px);
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--gutter) 28px;
}

.ruler {
  height: 18px;
  margin-left: var(--label);
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%) top / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2.5%) top / 100% 9px no-repeat;
}

.tracks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: inherit;
}

.trackRow {
  display: flex;
  align-items: stretch;
}

.trackLabel {
  flex: 0 0 var(--label);
  align-self: center;
  opacity: 0.6;
}

.clip {
  display: block;
  padding: 0.06em 0.16em 0.1em;
  font-size: clamp(58px, 16.5vw, 250px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.clipInk {
  background: var(--ink);
  color: var(--paper);
}

.clipSignal {
  margin-left: auto;
  background: var(--signal);
  color: var(--ink);
}

.wave {
  width: 100%;
  min-width: 0;
  height: clamp(36px, 6vw, 60px);
  flex: 1;
  fill: var(--pine);
}

.lede {
  margin: 14px 0 0 var(--label);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section {
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
}

.heading {
  margin-bottom: 28px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
}

.work h3 {
  margin-top: 2px;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.work .tc {
  margin-top: 10px;
}

.frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--ink);
  border-block: 8px dotted var(--ink);
}

.frame img,
.aboutPhoto img {
  object-fit: cover;
}

.services {
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: var(--label) 1fr;
  gap: 8px 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.services h3 {
  font-size: clamp(40px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.services p:not(.tc) {
  grid-column: 2;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.45;
}

.about {
  display: grid;
  gap: 24px;
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  background: var(--pine);
  color: var(--paper);
}

.about h2 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.about p {
  max-width: 52ch;
  font-size: 19px;
  line-height: 1.5;
}

.aboutPhoto {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.about h2 + p {
  margin-top: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
  border-top: 1px solid rgb(243 238 228 / 35%);
  padding-top: 20px;
}

.stats dd {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats dt {
  margin-top: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.specialties {
  margin-left: var(--label);
  opacity: 0.7;
}

.contactMeta {
  margin-top: 10px;
  font-size: 17px;
}

.contact {
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  background: var(--signal);
}

.contact h2 {
  margin: 12px 0 24px;
  font-size: clamp(72px, 20vw, 300px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.contactLink {
  font-size: clamp(20px, 3vw, 34px);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.socials {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  text-decoration: underline;
}

.footer {
  padding: 18px var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  height: var(--dock);
  align-items: center;
  gap: 12px;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.dockTime {
  display: none;
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.dockTrack {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.dockClip {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
  overflow: hidden;
  padding: 0 4px;
  background: #322f27;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  transition: background 0.2s, color 0.2s;
}

.dockClip:hover,
.dockClip:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.playhead {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  width: 2px;
  background: var(--signal);
  pointer-events: none;
}

@media (min-width: 768px) {
  .workGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .workGrid.stagger .work:nth-child(even) {
    margin-top: 72px;
  }

  .services li {
    grid-template-columns: var(--label) minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }

  .services p:not(.tc) {
    grid-column: 3;
  }

  .about {
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 48px;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dockTime {
    display: block;
  }

  .dockClip {
    padding: 0 10px;
    font-size: 12px;
  }
}

/* WordPress templates */
.topNav { display: flex; gap: 18px; }
.topNav a:hover { color: var(--signal); }

.frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.aboutPhoto img { position: absolute; inset: 0; width: 100%; height: 100%; }
a.work { display: block; }
a.work:hover h3 { color: var(--signal); }

.button {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 22px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  cursor: pointer;
}
.button:hover { background: var(--pine); color: var(--paper); }

.pageHead { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 48px); }
.pageHead h1 { margin-top: 10px; font-size: clamp(48px, 11vw, 170px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.pageHead .intro { max-width: 56ch; margin-top: 18px; font-size: 19px; line-height: 1.5; }

.termBlock { padding: clamp(40px, 6vw, 80px) var(--gutter); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.termBlock h2 { font-size: clamp(34px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.termBlock h2 a:hover { color: var(--signal); }
.termBlock > p { max-width: 60ch; margin: 14px 0 24px; font-size: 18px; line-height: 1.5; }

.entry { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.entry > * + * { margin-top: 18px; }
.entry p, .entry li { max-width: 62ch; font-size: 18px; line-height: 1.55; }
.entry a { text-decoration: underline; }
.entry .wp-block-video:empty { display: none; }
.entry video { width: 100%; max-height: 82vh; height: auto; background: var(--ink); object-fit: contain; }
.backLink { display: inline-block; margin: 0 var(--gutter) 40px; text-decoration: underline; }
.featured { margin: 0 var(--gutter) 28px; max-width: 760px; }
.featured img { width: 100%; height: auto; }

.enquiry { display: grid; gap: 40px; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.details dt { margin-top: 16px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; opacity: 0.7; }
.details dd { font-size: 19px; overflow-wrap: anywhere; }
.details a { text-decoration: underline; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 12px; border: 1px solid var(--ink); border-radius: 0; background: #fbf8f1; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 17px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.form .button { justify-self: start; margin-top: 4px; }
.trap { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; font-size: 17px; }
.notice[data-state="sent"] { background: var(--pine); color: var(--paper); }
.notice[data-state="error"] { background: var(--signal); }

.igGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.igPost { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.igPost img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.igPost:hover img { transform: scale(1.04); }
.igTag { position: absolute; top: 8px; left: 8px; padding: 3px 7px; background: var(--signal); color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; }
.igFollow { display: inline-block; margin-top: 18px; text-decoration: underline; }

@media (min-width: 768px) {
  .igGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .termGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .enquiry { grid-template-columns: 2fr 3fr; }
  .entry { max-width: 1100px; }
  .entry:has(.wp-block-video) { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: none; }
  .entry:has(.wp-block-video) > * + * { margin-top: 0; }
}
