/* ===========================================================================
   Ian Thistleton — UGC portfolio
   Tokens, sizes and behaviour follow design_handoff_ugc_portfolio/README.md
   =========================================================================== */

:root{
  --ground:#EBF3F8;   --band:#DCEBF3;    --tint:#D3E7F1;   --circle:#D9EAF3;
  --ink:#0F2A3D;      --accent:#1F6E8C;  --hover:#14506B;  --body:#3A5566;
  --muted:#6B8598;    --foot:#547287;    --paper:#F4FAFD;
  --amber:#E39B4E;    --amber-on:#22160A;--rev:#B9D3E1;
  --card:#FFFFFF;     --card-bd:#DCE9F2; --rule:#CEE0EC;
  --bezel:#101A22;    --empty:#CFDFE8;   --slot:#EBF3F8;   --glyph:#8FB9CE;

  --sh-card:0 10px 26px rgba(15,42,61,.07);
  --sh-card-hi:0 10px 26px rgba(15,42,61,.13);
  --sh-phone:0 28px 54px rgba(15,42,61,.26);
  --sh-badge:0 10px 22px rgba(15,42,61,.3);
  --sh-circ:0 18px 38px rgba(15,42,61,.2);

  --serif:"Gloock",Georgia,serif;
  --sans:"Poppins",system-ui,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--ground); color:var(--body);
  font-family:var(--sans); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{background:#BEDDEC}
h1,h2,h3,h4{font-family:var(--serif); font-weight:400; color:var(--ink); margin:0}
p{margin:0}
img{max-width:100%; display:block}
a{color:var(--accent); text-decoration:none}
a:hover{color:var(--hover)}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:4px}

.wrap{max-width:1240px; margin:0 auto; padding-left:32px; padding-right:32px}
.center{text-align:center}

/* ── header ──────────────────────────────────────────────────────────── */
.site-head{
  position:sticky; top:0; z-index:60;
  background:rgba(235,243,248,.92); backdrop-filter:blur(10px);
}
.head-row{
  max-width:1240px; margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; gap:28px; flex-wrap:wrap; justify-content:flex-end;
}
.logotype{font-family:var(--serif); font-size:23px; letter-spacing:-.01em; color:var(--ink); margin-right:auto}
.nav{display:flex; gap:28px}
.nav a{font-size:14.5px; font-weight:500; color:var(--ink)}
.nav a:hover{color:var(--hover)}
.pill-dark{
  background:var(--ink); color:var(--ground); font-size:14px; font-weight:600;
  padding:11px 22px; border-radius:999px; white-space:nowrap; flex-shrink:0;
  transition:background .15s;
}
.pill-dark:hover{background:var(--hover); color:var(--ground)}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero{
  max-width:1240px; margin:0 auto; padding:64px 32px 104px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center;
}
.hero-text,.contact-text{position:relative}
.hero-inner{position:relative; z-index:1}
.blob{position:absolute; z-index:0; background:var(--tint)}
.blob-hero{
  left:-9%; top:-18%; width:104%; height:132%;
  border-radius:56% 44% 48% 52% / 44% 56% 44% 56%;
}
.blob-contact{
  left:-8%; top:-26%; width:110%; height:156%;
  border-radius:52% 48% 44% 56% / 50% 44% 56% 50%;
}
.social-row{display:flex; gap:12px; margin-bottom:26px}
.soc{
  width:38px; height:38px; border-radius:999px; background:var(--ink); color:var(--ground);
  display:grid; place-items:center; flex-shrink:0; transition:background .15s;
}
.soc:hover{background:var(--hover); color:var(--ground)}
.social-row.big{margin:26px 0 0}
.social-row.big .soc{width:42px; height:42px}

h1{font-size:clamp(50px,5.6vw,84px); line-height:.98; letter-spacing:-.02em}
.role{font-size:20px; font-weight:500; color:var(--ink); margin-top:14px}
.lede{font-size:18px; line-height:1.55; margin-top:16px; max-width:46ch}
.btn-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:30px}
.btn-solid{
  background:var(--accent); color:var(--paper); padding:15px 34px; border-radius:999px;
  font-weight:600; transition:background .15s;
}
.btn-solid:hover{background:var(--hover); color:var(--paper)}
.btn-outline{
  border:1.5px solid var(--ink); color:var(--ink); padding:15px 26px; font-weight:500;
  transition:background .15s,color .15s;
}
.btn-outline:hover{background:var(--ink); color:var(--ground)}
.btn-outline.big{display:inline-block; padding:18px 30px; font-size:17px; margin-top:26px}
.avail{display:flex; align-items:center; gap:9px; margin-top:24px; font-size:15px; color:var(--body)}
.dot{width:9px; height:9px; border-radius:999px; background:var(--amber); flex-shrink:0}

.hero-phone{position:relative; display:grid; place-items:center}
.circle-tint{
  position:absolute; width:118%; aspect-ratio:1; border-radius:999px;
  background:var(--circle); z-index:0;
}
.hero-phone>div{position:relative; z-index:1; width:78%; transform:rotate(-4deg)}

/* ── the phone component ─────────────────────────────────────────────── */
.phone{position:relative; background:var(--bezel); padding:10px; border-radius:42px; box-shadow:var(--sh-phone)}
.phone:not(.empty){transition:transform .3s cubic-bezier(.2,.8,.3,1.2), box-shadow .3s ease}
.phone:not(.empty):hover{transform:translateY(-10px) scale(1.03); box-shadow:0 40px 70px rgba(15,42,61,.34)}
@media (prefers-reduced-motion:reduce){.phone:not(.empty){transition:none} .phone:not(.empty):hover{transform:none}}
.hero-phone .phone{padding:9px; border-radius:38px}
.screen{
  position:relative; padding-bottom:177.78%;   /* true 9:16 — do not change */
  border-radius:33px; overflow:hidden; background:var(--empty); cursor:pointer;
}
.hero-phone .screen{border-radius:30px}
.screen video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; background:var(--bezel);
}
.screen video.landscape{object-fit:contain}
.screen .poster{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:2; pointer-events:none;
}
/* brand logo circle, centred on the phone's top edge (set `logo` in videos.js) */
.brand{
  position:absolute; top:0; left:50%; transform:translate(-50%,-60%);
  width:27%; max-width:128px; min-width:76px; aspect-ratio:1; border-radius:999px;
  background:#fff; border:4px solid #e6ecf0; padding:0 7px;   /* thin side padding: wordmarks need the width */
  box-shadow:0 6px 16px rgba(15,42,61,.18); z-index:5;
  display:grid; place-items:center; overflow:hidden;   /* nothing pokes past the rim */
  transition:transform .25s ease, box-shadow .25s ease;
}
.brand:hover{
  transform:translate(-50%,-66%) scale(1.08);
  box-shadow:0 12px 26px rgba(15,42,61,.3);
}
.brand img{width:100%; height:100%; object-fit:contain}
.glyph{
  position:absolute; top:38%; left:50%; transform:translate(-50%,-50%);
  width:56px; height:56px; border-radius:999px; background:rgba(16,26,34,.6);
  z-index:3; pointer-events:none; display:grid; place-items:center;
}
.glyph::before{
  content:""; border-left:20px solid var(--paper);
  border-top:13px solid transparent; border-bottom:13px solid transparent; margin-left:5px;
}
.phone.playing .glyph{opacity:0; transition:opacity .2s}
.phone.playing .glyph::before{
  border:0; margin:0; width:6px; height:20px; background:var(--paper);
  box-shadow:12px 0 0 var(--paper);
}
.screen:hover .glyph{opacity:1}

.vol{position:absolute; right:12px; bottom:64px; z-index:4; display:flex; flex-direction:column; align-items:center; gap:8px}
.vol input[type=range]{writing-mode:vertical-lr; direction:rtl; width:4px; height:78px; accent-color:var(--paper)}
.mute{
  background:none; border:0; color:var(--paper); cursor:pointer; padding:2px;
  font-size:13px; line-height:1; opacity:.9;
}
.seek{position:absolute; left:14px; right:14px; bottom:22px; z-index:4; width:calc(100% - 28px); accent-color:var(--paper)}

/* empty slot — a build-time marker, not something to ship live */
.phone.empty .screen{background:var(--empty); cursor:default}
.phone.empty .slot-note{
  position:absolute; inset:0; display:grid; place-items:center; text-align:center;
  color:var(--glyph); font-size:14px; font-weight:600; padding:20px;
}

/* ── work band ───────────────────────────────────────────────────────── */
.band{background:var(--band); padding:88px 32px 96px}
h2{font-size:clamp(40px,5vw,72px); line-height:1; letter-spacing:-.02em}
.section-lede{max-width:60ch; margin:18px auto 0}
.video-row{display:flex; flex-wrap:wrap; justify-content:center; gap:90px 56px; margin-top:100px} /* room for the brand circle above each phone */
.card{width:100%; max-width:330px}
.cap-pill{
  display:inline-block; font-family:var(--serif); font-size:18px;
  background:var(--ink); color:var(--paper); padding:12px 30px; border-radius:999px; margin-top:22px;
}
.cap{font-size:15.5px; line-height:1.6; margin-top:12px}

/* ── rates ───────────────────────────────────────────────────────────── */
.rates{margin-top:72px; padding-top:56px; border-top:1px solid var(--rule)}
h3{font-size:clamp(32px,3.6vw,50px); line-height:1; letter-spacing:-.02em}
.rate-grid{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px; align-items:start; margin-top:40px;
}
.rate-card{
  position:relative; background:var(--card); border:1px solid var(--card-bd);
  border-radius:22px; padding:34px 30px 32px; box-shadow:var(--sh-card);
  display:flex; flex-direction:column; transition:transform .15s,box-shadow .15s;
}
.rate-card:hover{transform:translateY(-3px); box-shadow:var(--sh-card-hi)}
.rate-card.featured{border:2px solid var(--accent); box-shadow:var(--sh-card-hi)}
.badge{
  position:absolute; top:-15px; left:50%; transform:translateX(-50%);
  background:var(--amber); color:var(--amber-on); font-size:13px; font-weight:600;
  padding:7px 18px; border-radius:999px; white-space:nowrap;
}
.rate-card h4{font-size:25px; line-height:1.15}
.price{font-family:var(--serif); font-size:44px; line-height:1; color:var(--ink); margin-top:10px}
.from{
  display:block; font-family:var(--sans); font-size:13px; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:2px;
}
.label{font-size:12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:22px}
.ticks{list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:11px; text-align:left}
.ticks li{display:flex; gap:10px; font-size:15.5px; line-height:1.5; color:#2E4757}
.ticks span{color:var(--accent); font-weight:700; flex-shrink:0}

.addons{margin-top:44px}
.chips{display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:14px}
.chip{
  background:var(--tint); color:var(--hover); font-size:14.5px; font-weight:600;
  padding:10px 20px; border-radius:999px;
}
.quote-bar{margin-top:40px; background:var(--ink); border-radius:22px; padding:34px 40px; text-align:center}
.quote-bar h3{font-size:24px; color:var(--paper)}
.quote-bar p{color:var(--rev); max-width:58ch; margin:11px auto 0}

/* ── photography ─────────────────────────────────────────────────────── */
.photo-head{background:var(--tint); padding:36px 32px; text-align:center}
.photo-head h2{font-size:clamp(36px,4.4vw,62px)}
.photo-panel{background:var(--card); padding:64px 32px}
.photo-grid{
  max-width:1240px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:26px;
}
.ph{position:relative; width:100%; padding-bottom:100%; background:var(--slot); border-radius:4px; overflow:hidden}
.ph img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.ph-text{display:grid; place-items:center; text-align:left}
.ph-text p{
  font-size:clamp(19px,1.7vw,25px); font-weight:700; line-height:1.2;
  letter-spacing:-.01em; text-transform:uppercase; color:var(--ink);
}

/* ── about ───────────────────────────────────────────────────────────── */
.about{padding-top:100px; padding-bottom:40px}
.pill-accent{
  display:inline-block; background:var(--accent); color:var(--paper);
  font-size:14px; font-weight:600; padding:11px 30px; border-radius:999px; margin-bottom:22px;
}
.about h2{font-size:clamp(46px,5.6vw,82px)}
.about-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; margin-top:48px}
.about-photo{
  position:relative; width:100%; padding-bottom:100%;
  border-radius:999px; overflow:hidden; background:var(--tint);
}
.about-photo img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.about-grid p{font-size:17.5px; line-height:1.65}
.about-grid p+p{margin-top:16px}
.about-grid .chips{justify-content:flex-start; margin-top:24px}

/* ── contact ─────────────────────────────────────────────────────────── */
.contact{padding-top:110px; padding-bottom:100px; display:grid; grid-template-columns:1fr .85fr; gap:56px; align-items:center}
.contact h2{font-size:clamp(46px,5.6vw,82px)}
.contact-text p{margin-top:18px; max-width:48ch}
.contact-circles{position:relative; width:88%; max-width:420px; aspect-ratio:1.55/1; margin:0 auto}
.circ{
  position:absolute; width:58%; aspect-ratio:1; border-radius:999px; overflow:hidden;
  background:var(--tint); border:6px solid var(--ground); box-shadow:var(--sh-circ);
}
.circ img{width:100%; height:100%; object-fit:cover}
.c1{left:0; top:0; z-index:1}
.c2{right:0; bottom:0; z-index:2}

footer{text-align:center; padding:34px 32px 46px; font-size:14px; color:var(--foot)}

/* ── copied-to-clipboard toast ───────────────────────────────────────── */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,12px);
  background:var(--ink); color:var(--paper); font-size:14px; font-weight:500;
  padding:12px 22px; border-radius:999px; box-shadow:var(--sh-badge);
  opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; z-index:90;
}
.toast.show{opacity:1; transform:translate(-50%,0)}

/* ── email chooser (Gmail / Outlook / mail app / copy) ───────────────── */
.mail-menu{
  position:fixed; z-index:95; min-width:210px; padding:6px;
  background:var(--card); border:1px solid var(--card-bd); border-radius:14px;
  box-shadow:var(--sh-badge); display:flex; flex-direction:column;
}
.mail-menu[hidden]{display:none}   /* display:flex above would otherwise beat [hidden] */
.mail-menu a,.mail-menu button{
  font:inherit; font-size:15px; font-weight:500; color:var(--ink); text-align:left;
  background:none; border:0; padding:10px 14px; border-radius:9px; cursor:pointer;
}
.mail-menu a:hover,.mail-menu button:hover,
.mail-menu a:focus-visible,.mail-menu button:focus-visible{background:var(--ground); color:var(--hover)}

/* ── responsive (the prototype was desktop-only) ─────────────────────── */
@media (max-width:1023px){
  .hero{grid-template-columns:1fr; gap:48px; padding-bottom:72px}
  /* width:100% is load-bearing — auto margins alone make a grid item
     shrink-to-fit, and the phone's width:100% then resolves to nothing */
  .hero-phone{width:100%; max-width:340px; margin:0 auto}
  .hero-phone>div{width:100%}
  .lede{max-width:none}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rate-card.featured{grid-column:1 / -1}
  .about-grid{grid-template-columns:1fr; gap:40px}
  .about-photo{max-width:320px; margin:0 auto}
  .about-grid .chips{justify-content:center}
  .contact{grid-template-columns:1fr; gap:48px}
  .contact-text{text-align:center}
  .contact-text p{margin-left:auto; margin-right:auto}
  .social-row{justify-content:center}
  .video-row{gap:90px 48px}
}
@media (max-width:639px){
  body{font-size:16px}
  .wrap,.head-row{padding-left:20px; padding-right:20px}
  .nav{display:none}                    /* logotype + "Let's connect" only */
  .hero{padding:36px 20px 56px}
  .band{padding:56px 20px 60px}
  .about{padding-top:60px}
  .contact{padding-top:64px; padding-bottom:60px}
  .photo-panel{padding:40px 20px}
  .photo-grid{gap:16px}
  .rate-grid{grid-template-columns:1fr}
  .rate-card.featured{grid-column:auto}
  .quote-bar{padding:28px 24px}
  .video-row{gap:90px 44px}
  .btn-row{gap:12px}
  .btn-solid,.btn-outline{padding:14px 26px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
}
