/*
Theme Name: DOYEJ TECH Coming Soon
Theme URI: https://doyejtech.com
Author: DOYEJ TECH
Author URI: https://doyejtech.com
Description: Single-page Coming Soon / Under Construction theme with a live animated Bangladeshi agricultural landscape on canvas, a full 24-hour day and night cycle, live clock and countdown. Every string, link and toggle is editable from the Customizer.
Version: 3.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doyejtech-comingsoon
Tags: one-column, custom-logo, full-width-template, translation-ready
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
*/

/* ==========================================================================
   Tokens
   The scene is graded down on the canvas, so this layer can stay quiet:
   warm neutrals, hairline rules, one restrained gold. No gradient text,
   no glass slabs, no second accent.
   ========================================================================== */
:root {
  /* Warm off-white reads richer than pure #fff against a landscape */
  --ink: #f7f3ea;
  --ink-soft: rgba(247, 243, 234, .62);
  --ink-faint: rgba(247, 243, 234, .38);
  --gold: #d8bd83;
  --rule: rgba(247, 243, 234, .16);
  --rule-soft: rgba(247, 243, 234, .09);

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type — a display face, a UI face, four sizes. That is the whole system. */
  --t-micro: .625rem;
  --t-small: .75rem;
  --t-body: clamp(.9375rem, .35vw + .85rem, 1.0625rem);
  --t-display: clamp(2.5rem, 7.4vw, 5.75rem);
  --t-numeral: clamp(1.875rem, 4.6vw, 3.25rem);

  --tracking-wide: .26em;
  --tracking-brand: .2em;

  --gutter: clamp(1.25rem, 3.4vw, 3rem);
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .875rem;
  --s-4: 1.25rem;
  --s-5: 2rem;
  --s-6: 3rem;

  --ease: cubic-bezier(.22, .78, .24, 1);
  --dur: 260ms;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: #0a0c12;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
li { list-style: none; }

:where(a, button):focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.ucs-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Scene
   ========================================================================== */
#ucsCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* A restrained pool behind the copy. The canvas grade does most of the
   contrast work, so this only has to finish the job — heavy scrims are
   what make a background image look like a mistake being covered up. */
.ucs-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56% 38% at 50% 40%, rgba(6, 8, 14, .40), rgba(6, 8, 14, 0) 72%),
    linear-gradient(180deg,
      rgba(6, 8, 14, .58) 0%,
      rgba(6, 8, 14, .30) 9%,
      rgba(6, 8, 14, .10) 17%,
      rgba(6, 8, 14, 0) 26%),
    /* Long, many-stopped falloff over the fields. Two stops band and read
       as a grey sheet; this reads as light leaving the frame. */
    linear-gradient(0deg,
      rgba(6, 8, 14, .90) 0%,
      rgba(6, 8, 14, .78) 10%,
      rgba(6, 8, 14, .60) 20%,
      rgba(6, 8, 14, .42) 30%,
      rgba(6, 8, 14, .26) 39%,
      rgba(6, 8, 14, .13) 48%,
      rgba(6, 8, 14, .05) 55%,
      rgba(6, 8, 14, 0) 63%);
}

/* ==========================================================================
   Shell
   ========================================================================== */
.ucs-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

/* ==========================================================================
   Header — wordmark left, time right
   ========================================================================== */
/* Grid items default to min-width:auto, which refuses to shrink below the
   content's min-content size — so without this a long wordmark widens the
   whole row and scrolls the page sideways, however hard the children try
   to ellipse. */
.ucs-shell > * { min-width: 0; }

.ucs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* min-width:0 and overflow:hidden at every level, or a long company name
   refuses to shrink and pushes the whole page sideways instead of
   ellipsing. */
.ucs-brand {
  display: inline-flex;
  align-items: center;
  gap: .6875rem;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ucs-brand__mark { display: flex; flex: 0 0 auto; }
.ucs-brand__mark img { max-height: 34px; width: auto; display: block; }
.ucs-brand__mark svg { display: block; }

.ucs-brand__name {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: var(--tracking-brand);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Live clock — a quiet timestamp, not a badge. No pill, no blink. */
.ucs-clock {
  display: inline-flex;
  align-items: baseline;
  gap: .1875rem;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--ink-soft);
  white-space: nowrap;
  flex: 0 0 auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}

.ucs-clock .ck-digit { font-weight: 450; letter-spacing: .02em; }
.ucs-clock .ck-sep { opacity: .45; }
.ucs-clock .ck-meta {
  margin-left: .4375rem;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   Main
   ========================================================================== */
/* Seated above centre, so the type and the countdown sit over open sky and
   the landscape keeps its lower half uncluttered — poster composition,
   rather than copy scattered across a busy field. */
.ucs-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1rem, 2.4vh, 1.625rem);
  padding-bottom: clamp(2rem, 15vh, 10rem);
}

/* Eyebrow, framed by two hairlines */
.ucs-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}

.ucs-eyebrow::before,
.ucs-eyebrow::after {
  content: "";
  width: clamp(1.5rem, 5vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule));
}
.ucs-eyebrow::after { background: linear-gradient(270deg, transparent, var(--rule)); }

/* The subject of the page */
.ucs-title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.018em;
  max-width: 17ch;
  text-wrap: balance;
  /* A single unbroken word longer than the column would otherwise scroll
     the page sideways. */
  overflow-wrap: break-word;
  color: var(--ink);
  text-shadow: 0 1px 30px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .3);
}

.ucs-lede {
  max-width: 44ch;
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
  overflow-wrap: break-word;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   Countdown — hairline rules and light numerals.
   Slabs with bold fills read as a widget; this reads as a masthead.
   ========================================================================== */
.ucs-count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 30rem);
  margin-top: var(--s-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.ucs-count__cell {
  position: relative;
  padding: clamp(.875rem, 2.2vh, 1.375rem) .25rem;
}

.ucs-count__cell + .ucs-count__cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: var(--rule-soft);
}

.ucs-count__num {
  display: block;
  font-size: var(--t-numeral);
  font-weight: 250;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--ink);
  text-shadow: 0 1px 20px rgba(0, 0, 0, .45);
  transition: opacity 180ms var(--ease);
}

.ucs-count__num.is-turning { opacity: .32; }

.ucs-count__label {
  display: block;
  margin-top: .5rem;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  /* Sits near the horizon, the one band the scrim leaves brightest, so it
     needs more than the usual faint tone to stay crisp. */
  color: rgba(247, 243, 234, .56);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .65);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ucs-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  text-align: center;
}

.ucs-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-4);
  font-size: var(--t-small);
  color: rgba(247, 243, 234, .70);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}

.ucs-contact li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  max-width: 100%;
}

/* A long address has no break opportunity of its own */
.ucs-contact a,
.ucs-contact li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Hairline between items rather than a wide gap alone */
.ucs-contact li + li::before {
  content: "";
  width: 1px;
  height: .8125rem;
  margin-right: calc(var(--s-4) - .5rem);
  background: var(--rule);
}

.ucs-contact svg {
  width: .875em;
  height: .875em;
  fill: currentColor;
  opacity: .5;
  flex: 0 0 auto;
}

.ucs-contact a { transition: color var(--dur) var(--ease); }
.ucs-contact a:hover { color: var(--ink); }

.ucs-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
}

/* Bare icons. Bordered circles around every logo is a template tell. */
.ucs-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ucs-social a svg { width: 16px; height: 16px; fill: currentColor; }

.ucs-social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.ucs-legal {
  font-size: var(--t-micro);
  line-height: 1.8;
  letter-spacing: .06em;
  overflow-wrap: break-word;
  color: rgba(247, 243, 234, .48);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}

.ucs-legal a {
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}
.ucs-legal a:hover { color: var(--gold); }

.ucs-legal__sep {
  display: inline-block;
  width: 1px;
  height: .6875rem;
  margin: 0 .75rem;
  vertical-align: -1px;
  background: var(--rule);
}

/* ==========================================================================
   Entrance — one staggered rise, then still.
   ========================================================================== */
@keyframes ucs-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* `both` rather than a base opacity:0 plus `forwards`. If animations are
   ever disabled or unsupported, the content renders at its natural opacity
   instead of leaving a blank page. */
.ucs-rise {
  animation: ucs-rise .95s var(--ease) both;
}

.ucs-rise--1 { animation-delay: .05s; }
.ucs-rise--2 { animation-delay: .16s; }
.ucs-rise--3 { animation-delay: .27s; }
.ucs-rise--4 { animation-delay: .38s; }
.ucs-rise--5 { animation-delay: .49s; }
.ucs-rise--6 { animation-delay: .60s; }
.ucs-rise--7 { animation-delay: .70s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 46rem) {
  .ucs-head { align-items: flex-start; }
  .ucs-title { max-width: 14ch; }
}

@media (max-width: 32rem) {
  .ucs-brand__name { font-size: var(--t-micro); letter-spacing: .16em; }
  .ucs-clock { font-size: var(--t-micro); }
  .ucs-clock .ck-meta { display: none; }

  /* A tall, narrow viewport makes the 1fr row enormous; the desktop lift
     would strand the copy in the top third. */
  .ucs-main { padding-bottom: clamp(1rem, 5vh, 2.5rem); }

  .ucs-count { width: 100%; }
  .ucs-count__cell { padding: .9375rem .125rem; overflow: hidden; }
  .ucs-count__label { font-size: .5625rem; letter-spacing: .12em; margin-top: .4375rem; }

  /* Full-bleed prose at phone width reads badly; hold it to a shorter measure */
  .ucs-lede { max-width: 34ch; }

  .ucs-contact { flex-direction: column; gap: var(--s-2); }
  .ucs-contact li + li::before { display: none; }

  .ucs-social { gap: var(--s-5); }
}

/* Short landscape viewports: let it scroll rather than clip */
@media (max-height: 34rem) {
  .ucs-shell { min-height: auto; gap: 1.25rem; }
  .ucs-main { justify-content: flex-start; }
}

/* ==========================================================================
   Reduced motion — the canvas engine drops to a static render too.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ucs-rise { opacity: 1; animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
